Re: [PATCH v2] mm, oom: Tolerate processes sharing mm with different view of oom_score_adj.

2019-02-11 Thread Michal Hocko
On Sat 02-02-19 20:06:07, Tetsuo Handa wrote: > int main(int argc, char *argv[]) > { > printf("PID=%d\n", getpid()); > if (vfork() == 0) { > clone(thread1, malloc(8192) + 8192, > CLONE_VM | CLONE_FS | CLONE_FILES, NULL); > sleep(1); >

Re: [PATCH v2] mm, oom: Tolerate processes sharing mm with different view of oom_score_adj.

2019-02-02 Thread Tetsuo Handa
On 2019/02/01 18:14, Michal Hocko wrote: > On Fri 01-02-19 05:59:55, Tetsuo Handa wrote: >> On 2019/01/31 16:11, Michal Hocko wrote: >>> This is really ridiculous. I have already nacked the previous version >>> and provided two ways around. The simplest one is to drop the printk. >>> The second one

Re: [PATCH v2] mm, oom: Tolerate processes sharing mm with different view of oom_score_adj.

2019-02-01 Thread Michal Hocko
On Fri 01-02-19 05:59:55, Tetsuo Handa wrote: > On 2019/01/31 16:11, Michal Hocko wrote: > > On Thu 31-01-19 07:49:35, Tetsuo Handa wrote: > >> This patch reverts both commit 44a70adec910d692 ("mm, oom_adj: make sure > >> processes sharing mm have same view of oom_score_adj") and commit > >> 97fd49

Re: [PATCH v2] mm, oom: Tolerate processes sharing mm with different view of oom_score_adj.

2019-01-31 Thread Tetsuo Handa
On 2019/01/31 16:11, Michal Hocko wrote: > On Thu 31-01-19 07:49:35, Tetsuo Handa wrote: >> This patch reverts both commit 44a70adec910d692 ("mm, oom_adj: make sure >> processes sharing mm have same view of oom_score_adj") and commit >> 97fd49c2355ffded ("mm, oom: kill all tasks sharing the mm") in

Re: [PATCH v2] mm, oom: Tolerate processes sharing mm with different view of oom_score_adj.

2019-01-30 Thread Michal Hocko
On Thu 31-01-19 07:49:35, Tetsuo Handa wrote: > This patch reverts both commit 44a70adec910d692 ("mm, oom_adj: make sure > processes sharing mm have same view of oom_score_adj") and commit > 97fd49c2355ffded ("mm, oom: kill all tasks sharing the mm") in order to > close a race and reduce the latenc

[PATCH v2] mm, oom: Tolerate processes sharing mm with different view of oom_score_adj.

2019-01-30 Thread Tetsuo Handa
This patch reverts both commit 44a70adec910d692 ("mm, oom_adj: make sure processes sharing mm have same view of oom_score_adj") and commit 97fd49c2355ffded ("mm, oom: kill all tasks sharing the mm") in order to close a race and reduce the latency at __set_oom_adj(), and reduces the warning at __oom