From: Greg Thelen <gthelen@google.com>
To: Michal Hocko <mhocko@suse.cz>
Cc: lsf-pc@lists.linux-foundation.org, linux-mm@kvack.org
Subject: Re: [LSF/MM TOPIC ATTEND]
Date: Tue, 06 Jan 2015 15:27:27 -0800 [thread overview]
Message-ID: <xr93k30zij6o.fsf@gthelen.mtv.corp.google.com> (raw)
In-Reply-To: <20150106161435.GF20860@dhcp22.suse.cz>
On Tue, Jan 06 2015, Michal Hocko wrote:
> - As it turned out recently GFP_KERNEL mimicing GFP_NOFAIL for !costly
> allocation is sometimes kicking us back because we are basically
> creating an invisible lock dependencies which might livelock the whole
> system under OOM conditions.
> That leads to attempts to add more hacks into the OOM killer
> which is tricky enough as is. Changing the current state is
> quite risky because we do not really know how many places in the
> kernel silently depend on this behavior. As per Johannes attempt
> (http://marc.info/?l=linux-mm&m=141932770811346) it is clear that
> we are not yet there! I do not have very good ideas how to deal with
> this unfortunatelly...
We've internally been fighting similar deadlocks between memcg kmem
accounting and memcg oom killer. I wouldn't call it a very good idea,
because it falls in the realm of further complicating the oom killer,
but what about introducing an async oom killer which runs outside of the
context of the current task. An async killer won't hold any locks so it
won't block the indented oom victim from terminating. After queuing a
deferred oom kill the allocating thread would then be able to dip into
memory reserves to satisfy its too-small-to-fail allocation.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2015-01-06 23:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-06 16:14 Michal Hocko
2015-01-06 23:27 ` Greg Thelen [this message]
2015-01-07 14:28 ` Michal Hocko
2015-01-07 18:54 ` Greg Thelen
2015-01-07 19:00 ` Greg Thelen
2015-01-14 21:27 ` Andrea Arcangeli
2015-01-15 14:06 ` Michal Hocko
2015-01-15 20:58 ` Andrea Arcangeli
2015-01-07 8:58 ` Vladimir Davydov
2015-01-07 14:38 ` Michal Hocko
2015-01-08 8:33 ` Vladimir Davydov
2015-01-08 9:09 ` Michal Hocko
2015-02-02 8:37 ` [LSF/MM TOPIC ATTEND] - THP benefits Vlastimil Babka
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=xr93k30zij6o.fsf@gthelen.mtv.corp.google.com \
--to=gthelen@google.com \
--cc=linux-mm@kvack.org \
--cc=lsf-pc@lists.linux-foundation.org \
--cc=mhocko@suse.cz \
/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