From: Peter Zijlstra <peterz@infradead.org>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Michel Lespinasse <walken@google.com>,
linux-mm <linux-mm@kvack.org>,
LKML <linux-kernel@vger.kernel.org>,
Divyesh Shah <dpshah@google.com>, Ingo Molnar <mingo@elte.hu>
Subject: Re: FYI: mmap_sem OOM patch
Date: Thu, 08 Jul 2010 13:02:01 +0200 [thread overview]
Message-ID: <1278586921.1900.67.camel@laptop> (raw)
In-Reply-To: <20100708195421.CD48.A69D9226@jp.fujitsu.com>
On Thu, 2010-07-08 at 19:57 +0900, KOSAKI Motohiro wrote:
> > On Thu, 2010-07-08 at 03:39 -0700, Michel Lespinasse wrote:
> > >
> > >
> > > One way to fix this is to have T4 wake from the oom queue and return an
> > > allocation failure instead of insisting on going oom itself when T1
> > > decides to take down the task.
> > >
> > > How would you have T4 figure out the deadlock situation ? T1 is taking down T2, not T4...
> >
> > If T2 and T4 share a mmap_sem they belong to the same process. OOM takes
> > down the whole process by sending around signals of sorts (SIGKILL?), so
> > if T4 gets a fatal signal while it is waiting to enter the oom thingy,
> > have it abort and return an allocation failure.
> >
> > That alloc failure (along with a pending fatal signal) will very likely
> > lead to the release of its mmap_sem (if not, there's more things to
> > cure).
> >
> > At which point the cycle is broken an stuff continues as it was
> > intended.
>
> Now, I've reread current code. I think mmotm already have this.
<snip code>
[ small note on that we really should kill __GFP_NOFAIL, its utter
deadlock potential ]
> Thought?
So either its not working or google never tried that code?
--
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:[~2010-07-08 11:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-07 23:11 FYI: mmap_sem OOM patch Michel Lespinasse
2010-07-08 0:16 ` KOSAKI Motohiro
2010-07-08 1:11 ` KOSAKI Motohiro
2010-07-08 9:02 ` Peter Zijlstra
2010-07-08 9:24 ` KOSAKI Motohiro
2010-07-08 9:35 ` Peter Zijlstra
2010-07-08 9:51 ` KOSAKI Motohiro
2010-07-08 10:30 ` Peter Zijlstra
[not found] ` <AANLkTimLSnNot2byTWYuIHE8rhGLXbl1zKsQQhmci1Do@mail.gmail.com>
2010-07-08 10:49 ` Peter Zijlstra
2010-07-08 10:57 ` KOSAKI Motohiro
2010-07-08 11:02 ` Peter Zijlstra [this message]
2010-07-08 11:06 ` KOSAKI Motohiro
2010-07-08 11:23 ` Peter Zijlstra
2010-07-09 1:31 ` KOSAKI Motohiro
2010-07-12 21:47 ` David Rientjes
2010-07-13 0:14 ` KOSAKI Motohiro
2010-07-13 21:08 ` David Rientjes
[not found] ` <AANLkTimArLPHrxHNEejiXKNYk9To6qsjglbgzyypXP-c@mail.gmail.com>
2010-07-08 12:43 ` Peter Zijlstra
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=1278586921.1900.67.camel@laptop \
--to=peterz@infradead.org \
--cc=dpshah@google.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
--cc=walken@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).