* [PATCH] mm: oom: Remove thread group leader check in oom_evaluate_task().
@ 2019-06-18 10:20 Tetsuo Handa
2019-06-18 12:14 ` Michal Hocko
0 siblings, 1 reply; 3+ messages in thread
From: Tetsuo Handa @ 2019-06-18 10:20 UTC (permalink / raw)
To: Andrew Morton
Cc: linux-mm, Tetsuo Handa, David Rientjes, Greg Thelen,
Johannes Weiner, KAMEZAWA Hiroyuki, Michal Hocko
Since mem_cgroup_scan_tasks() uses CSS_TASK_ITER_PROCS, only thread group
leaders will be scanned (unless dying leaders with live threads). Thus,
commit d49ad9355420c743 ("mm, oom: prefer thread group leaders for display
purposes") makes little sense.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: David Rientjes <rientjes@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Greg Thelen <gthelen@google.com>
---
mm/oom_kill.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 32abc7a..09a5116 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -348,9 +348,6 @@ static int oom_evaluate_task(struct task_struct *task, void *arg)
if (!points || points < oc->chosen_points)
goto next;
- /* Prefer thread group leaders for display purposes */
- if (points == oc->chosen_points && thread_group_leader(oc->chosen))
- goto next;
select:
if (oc->chosen)
put_task_struct(oc->chosen);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mm: oom: Remove thread group leader check in oom_evaluate_task().
2019-06-18 10:20 [PATCH] mm: oom: Remove thread group leader check in oom_evaluate_task() Tetsuo Handa
@ 2019-06-18 12:14 ` Michal Hocko
2019-06-18 13:23 ` Tetsuo Handa
0 siblings, 1 reply; 3+ messages in thread
From: Michal Hocko @ 2019-06-18 12:14 UTC (permalink / raw)
To: Tetsuo Handa
Cc: Andrew Morton, linux-mm, David Rientjes, Greg Thelen,
Johannes Weiner, KAMEZAWA Hiroyuki
On Tue 18-06-19 19:20:57, Tetsuo Handa wrote:
> Since mem_cgroup_scan_tasks() uses CSS_TASK_ITER_PROCS, only thread group
> leaders will be scanned (unless dying leaders with live threads). Thus,
> commit d49ad9355420c743 ("mm, oom: prefer thread group leaders for display
> purposes") makes little sense.
This can be folded into mm-memcontrol-use-css_task_iter_procs-at-mem_cgroup_scan_tasks.patch
right?
> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
> Cc: David Rientjes <rientjes@google.com>
> Cc: Johannes Weiner <hannes@cmpxchg.org>
> Cc: Michal Hocko <mhocko@suse.cz>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> Cc: Greg Thelen <gthelen@google.com>
> ---
> mm/oom_kill.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/mm/oom_kill.c b/mm/oom_kill.c
> index 32abc7a..09a5116 100644
> --- a/mm/oom_kill.c
> +++ b/mm/oom_kill.c
> @@ -348,9 +348,6 @@ static int oom_evaluate_task(struct task_struct *task, void *arg)
> if (!points || points < oc->chosen_points)
> goto next;
>
> - /* Prefer thread group leaders for display purposes */
> - if (points == oc->chosen_points && thread_group_leader(oc->chosen))
> - goto next;
> select:
> if (oc->chosen)
> put_task_struct(oc->chosen);
> --
> 1.8.3.1
--
Michal Hocko
SUSE Labs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mm: oom: Remove thread group leader check in oom_evaluate_task().
2019-06-18 12:14 ` Michal Hocko
@ 2019-06-18 13:23 ` Tetsuo Handa
0 siblings, 0 replies; 3+ messages in thread
From: Tetsuo Handa @ 2019-06-18 13:23 UTC (permalink / raw)
To: Michal Hocko
Cc: Andrew Morton, linux-mm, David Rientjes, Greg Thelen,
Johannes Weiner, KAMEZAWA Hiroyuki
On 2019/06/18 21:14, Michal Hocko wrote:
> On Tue 18-06-19 19:20:57, Tetsuo Handa wrote:
>> Since mem_cgroup_scan_tasks() uses CSS_TASK_ITER_PROCS, only thread group
>> leaders will be scanned (unless dying leaders with live threads). Thus,
>> commit d49ad9355420c743 ("mm, oom: prefer thread group leaders for display
>> purposes") makes little sense.
>
> This can be folded into mm-memcontrol-use-css_task_iter_procs-at-mem_cgroup_scan_tasks.patch
> right?
Yes, if we want to do so.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-18 14:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-18 10:20 [PATCH] mm: oom: Remove thread group leader check in oom_evaluate_task() Tetsuo Handa
2019-06-18 12:14 ` Michal Hocko
2019-06-18 13:23 ` Tetsuo Handa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).