Re: [PATCH] bugfix oom kill init lead panic

2015-12-01 Thread David Rientjes
On Mon, 30 Nov 2015, chenj...@huawei.com wrote: > From: chenjie > > when oom happened we can see: > Out of memory: Kill process 9134 (init) score 3 or sacrifice child > > Killed process 9134 (init) total-vm:1868kB, anon-rss:84kB, file-rss:572kB > Kill process 1 (init) sharing

Re: [PATCH] bugfix oom kill init lead panic

2015-12-01 Thread David Rientjes
On Mon, 30 Nov 2015, chenj...@huawei.com wrote: > From: chenjie > > when oom happened we can see: > Out of memory: Kill process 9134 (init) score 3 or sacrifice child > > Killed process 9134 (init) total-vm:1868kB, anon-rss:84kB, file-rss:572kB > Kill

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread Chenjie (K)
Please ignore the last email. This is log , kill pid 9134: Mem-info: Normal per-cpu: CPU0: hi: 90, btch: 15 usd: 0 CPU1: hi: 90, btch: 15 usd: 0 active_anon:997 inactive_anon:36468 isolated_anon:0 active_file:1 inactive_file:0 isolated_file:0 unevictable:10743 dirty:0

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread Chenjie (K)
Thank you reply, we run a test case. A new log: Out of memory: Kill process 8520 (sshd) score 11 or sacrifice child Killed process 8520 (sshd) total-vm:5812kB, anon-rss:404kB, file-rss:2132kB [RSM][SIG]Kernel:dd(pid:8612|tid:8612) send SIG[9] to sshd(pid:8520|tid:8520). CPU: 0 PID: 8612

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread David Rientjes
On Mon, 30 Nov 2015, Chenjie (K) wrote: > My kernel version is 3.10 ,but the 4.3 is the same > and the newest code is > > for_each_process(p) { > if (!process_shares_mm(p, mm)) > continue; > if (same_thread_group(p, victim)) >

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread David Rientjes
On Mon, 30 Nov 2015, Chenjie (K) wrote: > My kernel version is 3.10 ,but the 4.3 is the same > and the newest code is > > for_each_process(p) { > if (!process_shares_mm(p, mm)) > continue; > if (same_thread_group(p, victim)) >

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread Chenjie (K)
Thank you reply, we run a test case. A new log: Out of memory: Kill process 8520 (sshd) score 11 or sacrifice child Killed process 8520 (sshd) total-vm:5812kB, anon-rss:404kB, file-rss:2132kB [RSM][SIG]Kernel:dd(pid:8612|tid:8612) send SIG[9] to sshd(pid:8520|tid:8520). CPU: 0 PID: 8612

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread Chenjie (K)
Please ignore the last email. This is log , kill pid 9134: Mem-info: Normal per-cpu: CPU0: hi: 90, btch: 15 usd: 0 CPU1: hi: 90, btch: 15 usd: 0 active_anon:997 inactive_anon:36468 isolated_anon:0 active_file:1 inactive_file:0 isolated_file:0 unevictable:10743 dirty:0

Re: [PATCH] bugfix oom kill init lead panic

2015-11-29 Thread Chenjie (K)
My kernel version is 3.10 ,but the 4.3 is the same and the newest code is for_each_process(p) { if (!process_shares_mm(p, mm)) continue; if (same_thread_group(p, victim)) continue; if

Re: [PATCH] bugfix oom kill init lead panic

2015-11-29 Thread Andrew Morton
On Mon, 30 Nov 2015 18:54:29 +0800 wrote: > From: chenjie > > when oom happened we can see: > Out of memory: Kill process 9134 (init) score 3 or sacrifice child > > Killed process 9134 (init) total-vm:1868kB, anon-rss:84kB, file-rss:572kB > Kill process 1 (init) sharing same

[PATCH] bugfix oom kill init lead panic

2015-11-29 Thread chenjie6
From: chenjie when oom happened we can see: Out of memory: Kill process 9134 (init) score 3 or sacrifice child Killed process 9134 (init) total-vm:1868kB, anon-rss:84kB, file-rss:572kB Kill process 1 (init) sharing same memory ... Kernel panic - not syncing: Attempted to kill

[PATCH] bugfix oom kill init lead panic

2015-11-29 Thread chenjie6
From: chenjie when oom happened we can see: Out of memory: Kill process 9134 (init) score 3 or sacrifice child Killed process 9134 (init) total-vm:1868kB, anon-rss:84kB, file-rss:572kB Kill process 1 (init) sharing same memory ... Kernel panic - not

Re: [PATCH] bugfix oom kill init lead panic

2015-11-29 Thread Chenjie (K)
My kernel version is 3.10 ,but the 4.3 is the same and the newest code is for_each_process(p) { if (!process_shares_mm(p, mm)) continue; if (same_thread_group(p, victim)) continue; if

Re: [PATCH] bugfix oom kill init lead panic

2015-11-29 Thread Andrew Morton
On Mon, 30 Nov 2015 18:54:29 +0800 wrote: > From: chenjie > > when oom happened we can see: > Out of memory: Kill process 9134 (init) score 3 or sacrifice child > > Killed process 9134 (init) total-vm:1868kB, anon-rss:84kB,