View gist:3d13bcd16a7d758e680e2515b972daf8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
View gist:9a6bd9373f100d94df1f76977e2619d9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sun 元気〜? |
View fsnotify-race.md
Introdcution
fsnotify: Fix fsnotify_mark_connector race
Description
CentOS7.5 + nginx + td-agent + in_tail plugin is able to reproduce this bug
Steps to repdocution
View proc-meminfo-dirty.md
突然のホストダウンで /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
```
View thread.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
View mogilefs_cpu_usage.pl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use IO::Socket; | |
my %to_be_aggregated = ( | |
'unicorn' => 'unicorn_worker', | |
'perl-fcgi' => 'perl-fcgi', | |
'mogilefsd' => 'mogilefsd', |
View mogilefs_queryworker.pl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
::main(@ARGV); | |
sub print_config { | |
printf <<"...."; |
View hoge.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /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 |
View diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /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 |
NewerOlder