Skip to content

Instantly share code, notes, and snippets.

View hiboma's full-sized avatar

Hiroya Ito hiboma

View GitHub Profile
personality 19 arch/alpha/include/asm/processor.h (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL)
personality 27 arch/alpha/include/asm/processor.h ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
personality 1306 arch/alpha/kernel/osf_sys.c if (current->personality & ADDR_LIMIT_32BIT)
personality 1368 arch/alpha/kernel/osf_sys.c if (unlikely(personality(current->personality) == PER_OSF4))
personality 1380 arch/alpha/kernel/osf_sys.c if (unlikely(personality(current->personality) == PER_OSF4))
personality 165 arch/arm/include/asm/page.h (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
personality 19 arch/arm/include/asm/processor.h #define STACK_TOP ((current->personality & ADDR_LIMIT_32BIT) ? \
personality 62 arch/arm/include/asm/processor.h current->personality & FDPIC_FUNCPTRS) { \
personality 69 arch/arm/include/asm/processor.h if (current->personality & ADDR_LIMIT_32BIT)
@hiboma
hiboma / sun.md
Last active December 9, 2019 04:28

突然のホストダウンで /proc/meminfo の Dirty ページがディスクに同期されず揮発するかどうかの検証

Dirty ページの書き出しを抑えるめちゃくちゃ設定をする

sudo sysctl -w vm.dirty_writeback_centisecs=1000000 # 単位は ms
sudo sysctl -w    vm.dirty_expire_centisecs=1000000 # 単位は ms
sudo sysctl -w    vm.dirty_background_ratio=99
sudo sysctl -w               vm.dirty_ratio=99
```
/**
* kthread_stop - stop a thread created by kthread_create().
* @k: thread created by kthread_create().
*
* Sets kthread_should_stop() for @k to return true, wakes it, and
* waits for it to exit. This can also be called after kthread_create()
* instead of calling wake_up_process(): the thread will exit without
* calling threadfn().
*
* If threadfn() may call do_exit() itself, the caller must ensure
#!/usr/bin/perl
use strict;
use warnings;
use IO::Socket;
my %to_be_aggregated = (
'unicorn' => 'unicorn_worker',
'perl-fcgi' => 'perl-fcgi',
'mogilefsd' => 'mogilefsd',
#!/usr/bin/perl
use strict;
use warnings;
::main(@ARGV);
sub print_config {
printf <<"....";
--- /tmp/1.txt 2015-08-28 19:10:53.000000000 +0900
+++ /tmp/2.txt 2015-08-28 19:11:05.000000000 +0900
@@ -1,9 +1,5 @@
aa/01.jpg
aa/02.jpg
aa/03.jpg
-aa/bb/01.jpg
-aa/bb/02.jpg
-aa/bb/03.jpg
-aa/cc/01.jpg
--- /tmp/1.txt 2015-08-28 19:10:53.000000000 +0900
+++ /tmp/2.txt 2015-08-28 19:11:05.000000000 +0900
@@ -1,9 +1,5 @@
aa/01.jpg
aa/02.jpg
aa/03.jpg
-aa/bb/01.jpg
-aa/bb/02.jpg
-aa/bb/03.jpg
-aa/cc/01.jpg