From: Michal Hocko <mhocko@kernel.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org
Subject: Re: [PATCH] mm, oom: Remove redundant OOM score normalization at select_bad_process().
Date: Wed, 19 Jun 2019 07:35:52 +0200 [thread overview]
Message-ID: <20190619053552.GC2968@dhcp22.suse.cz> (raw)
In-Reply-To: <1560853435-15575-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp>
On Tue 18-06-19 19:23:55, Tetsuo Handa wrote:
> Since commit bbbe48029720d2c6 ("mm, oom: remove 'prefer children over
> parent' heuristic") removed
>
> "%s: Kill process %d (%s) score %u or sacrifice child\n"
>
> line, oc->chosen_points is no longer used after select_bad_process().
Well spotted. I am still trying to understand how that was supposed to
work before that commit as oom_badness() already provides a normalized
value so we have normalized it for the second time. But that is largely
irrelevant for this patch.
> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Michal Hocko <mhocko@suse.com>
Thanks!
> ---
> mm/oom_kill.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/mm/oom_kill.c b/mm/oom_kill.c
> index 09a5116..789a1bc 100644
> --- a/mm/oom_kill.c
> +++ b/mm/oom_kill.c
> @@ -380,8 +380,6 @@ static void select_bad_process(struct oom_control *oc)
> break;
> rcu_read_unlock();
> }
> -
> - oc->chosen_points = oc->chosen_points * 1000 / oc->totalpages;
> }
>
> static int dump_task(struct task_struct *p, void *arg)
> --
> 1.8.3.1
--
Michal Hocko
SUSE Labs
prev parent reply other threads:[~2019-06-19 5:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-18 10:23 Tetsuo Handa
2019-06-19 5:35 ` Michal Hocko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190619053552.GC2968@dhcp22.suse.cz \
--to=mhocko@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox