From: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
To: Michal Hocko <mhocko@kernel.org>
Cc: Yafang Shao <laoar.shao@gmail.com>,
David Rientjes <rientjes@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linux MM <linux-mm@kvack.org>
Subject: Re: [PATCH] mm, oom: don't invoke oom killer if current has been reapered
Date: Tue, 14 Jul 2020 09:15:26 +0900 [thread overview]
Message-ID: <89f091d3-2398-f3c7-94ae-b0172115ac25@i-love.sakura.ne.jp> (raw)
In-Reply-To: <20200713190538.GG16783@dhcp22.suse.cz>
On 2020/07/14 4:05, Michal Hocko wrote:
> Another alternative would be to check mem_cgroup_margin after the lock
> is taken but it would be better to keep in sync with the global case as
> much as possible unless there is a good reason to differ.
>
If mem_cgroup_margin() is something what zone_watermark_ok() from
get_page_from_freelist() will do, checking mem_cgroup_margin() with
oom_lock held will make more keep in sync with the global case
(i.e. calling __alloc_pages_may_oom() with oom_lock held).
next prev parent reply other threads:[~2020-07-14 0:15 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-11 3:18 [PATCH] mm, oom: don't invoke oom killer if current has been reapered Yafang Shao
2020-07-11 5:37 ` Yafang Shao
2020-07-13 6:01 ` Michal Hocko
2020-07-13 6:21 ` Michal Hocko
2020-07-13 12:24 ` Yafang Shao
2020-07-13 12:45 ` Michal Hocko
2020-07-13 13:11 ` Yafang Shao
2020-07-13 19:05 ` Michal Hocko
2020-07-14 0:15 ` Tetsuo Handa [this message]
2020-07-14 0:18 ` Tetsuo Handa
2020-07-14 2:09 ` Yafang Shao
2020-07-13 23:50 ` Tetsuo Handa
2020-07-14 2:13 ` Yafang Shao
2020-07-14 2:42 ` Tetsuo Handa
2020-07-14 2:58 ` Yafang Shao
2020-07-14 4:06 ` Tetsuo Handa
2020-07-14 5:03 ` Yafang Shao
2020-07-14 6:51 ` Michal Hocko
2020-07-14 6:43 ` Michal Hocko
2020-07-14 9:30 ` 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=89f091d3-2398-f3c7-94ae-b0172115ac25@i-love.sakura.ne.jp \
--to=penguin-kernel@i-love.sakura.ne.jp \
--cc=akpm@linux-foundation.org \
--cc=laoar.shao@gmail.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=rientjes@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;
as well as URLs for NNTP newsgroup(s).