From: Yafang Shao <laoar.shao@gmail.com>
To: akpm@linux-foundation.org
Cc: shakeelb@google.com, hannes@cmpxchg.org, mhocko@kernel.org,
guro@fb.com, gthelen@google.com, linux-mm@kvack.org,
Yafang Shao <laoar.shao@gmail.com>
Subject: [PATCH 0/2] memcg oom: don't try to kill a process if there is no process
Date: Sat, 2 May 2020 10:34:50 -0400 [thread overview]
Message-ID: <20200502143452.7640-1-laoar.shao@gmail.com> (raw)
Recently Shakeel reported a issue which also confused me serveral months
earlier that it still try to kill a process even if there is no process.
If a memcg is not populated, it is useless to try to kill a process.
mem_cgroup_out_of_memory() is renamed to mem_cgroup_oom_kill() for better
understanding.
Yafang Shao (2):
mm, memcg: better name mem_cgroup_out_of_memory()
mm, memcg: don't try to kill a process if memcg is not populated
mm/memcontrol.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
--
2.18.2
next reply other threads:[~2020-05-02 14:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-02 14:34 Yafang Shao [this message]
2020-05-02 14:34 ` [PATCH 1/2] mm, memcg: better name mem_cgroup_out_of_memory() Yafang Shao
2020-05-03 22:20 ` Shakeel Butt
2020-05-02 14:34 ` [PATCH 2/2] mm, memcg: don't try to kill a process if memcg is not populated Yafang Shao
2020-05-03 22:59 ` Shakeel Butt
2020-05-04 3:03 ` Yafang Shao
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=20200502143452.7640-1-laoar.shao@gmail.com \
--to=laoar.shao@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=gthelen@google.com \
--cc=guro@fb.com \
--cc=hannes@cmpxchg.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=shakeelb@google.com \
/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