From: Yafang Shao <laoar.shao@gmail.com>
To: Michal Hocko <mhocko@kernel.org>
Cc: David Hildenbrand <david@redhat.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Vladimir Davydov <vdavydov.dev@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linux MM <linux-mm@kvack.org>
Subject: Re: [PATCH v2] mm, memcg: avoid oom if cgroup is not populated
Date: Wed, 27 Nov 2019 19:55:53 +0800 [thread overview]
Message-ID: <CALOAHbCsusGcDFLyr_ZAqBFDn-WDfDfc-4gBt1xPoKxVUsuO8Q@mail.gmail.com> (raw)
In-Reply-To: <20191127114125.GO20912@dhcp22.suse.cz>
On Wed, Nov 27, 2019 at 7:41 PM Michal Hocko <mhocko@kernel.org> wrote:
>
> On Wed 27-11-19 12:11:24, David Hildenbrand wrote:
> [...]
> > 4. This patch on its own (if there are no processes, there is nothing to
> > kill) does not sound too wrong to me. Instead of an endless loop
> > (besides signals) where we can't make any progress, we exit right away.
>
> mem_cgroup_out_of_memory returns false when there is no oom victim
> selected and then we break out.
>
> My main objection to the patch is that it adds a subtle inconsitency.
I don't want to argue inconsitency or consitency with you.
> Admins are simply not going to see that the memcg was OOM due to the
> limit change and OOM killer cannot do anything about that.
Printing something like "OOM and no tasks" can esily fix this issue,
if you insist that we should print something.
You can ignore my feedback if you would like to.
> No tasks vs.
> no killable task doesn't make any real difference. There is simply no
> way to get out of that situation.
Well, I don't want to argue with you again.
Thanks
Yafang
next prev parent reply other threads:[~2019-11-27 11:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-27 1:28 Yafang Shao
2019-11-27 8:54 ` Michal Hocko
2019-11-27 9:17 ` Yafang Shao
2019-11-27 9:33 ` Yafang Shao
2019-11-27 11:11 ` David Hildenbrand
2019-11-27 11:35 ` Yafang Shao
2019-11-27 11:58 ` Michal Hocko
2019-11-27 12:01 ` Yafang Shao
2019-11-27 11:41 ` Michal Hocko
2019-11-27 11:55 ` Yafang Shao [this message]
2019-11-27 11:57 ` David Hildenbrand
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=CALOAHbCsusGcDFLyr_ZAqBFDn-WDfDfc-4gBt1xPoKxVUsuO8Q@mail.gmail.com \
--to=laoar.shao@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=vdavydov.dev@gmail.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