From: Michal Hocko <mhocko@kernel.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-mm@kvack.org, rientjes@google.com, akpm@linux-foundation.org
Subject: Re: [PATCH] mm,oom: Re-enable OOM killer using timeout.
Date: Wed, 27 Apr 2016 13:11:47 +0200 [thread overview]
Message-ID: <20160427111147.GI2179@dhcp22.suse.cz> (raw)
In-Reply-To: <201604271943.GAC60432.FFJHtFVSOQOOLM@I-love.SAKURA.ne.jp>
On Wed 27-04-16 19:43:08, Tetsuo Handa wrote:
> Michal Hocko wrote:
> > On Mon 25-04-16 11:55:08, Michal Hocko wrote:
> > > On Sun 24-04-16 23:19:03, Tetsuo Handa wrote:
> > > > Michal Hocko wrote:
> > > > > I have seen that patch. I didn't get to review it properly yet as I am
> > > > > still travelling. From a quick view I think it is conflating two things
> > > > > together. I could see arguments for the panic part but I do not consider
> > > > > the move-to-kill-another timeout as justified. I would have to see a
> > > > > clear indication this is actually useful for real life usecases.
> > > >
> > > > You admit that it is possible that the TIF_MEMDIE thread is blocked at
> > > > unkillable wait (due to memory allocation requests by somebody else) but
> > > > the OOM reaper cannot reap the victim's memory (due to holding the mmap_sem
> > > > for write), don't you?
> > >
> > > I have never said this to be impossible.
> >
> > And just to clarify. I consider unkillable sleep while holding mmap_sem
> > for write to be a _bug_ which should be fixed rather than worked around
> > by some timeout based heuristics.
>
> Excuse me, but I think that it is difficult to fix.
> Since currently it is legal to block kswapd from memory reclaim paths
> ( http://lkml.kernel.org/r/20160211225929.GU14668@dastard ) and there
> are allocation requests with mmap_sem held for write, you will need to
> make memory reclaim paths killable. (I wish memory reclaim paths being
> completely killable because fatal_signal_pending(current) check done in
> throttle_direct_reclaim() is racy.)
Be it difficult or not it is something that should be fixed.
--
Michal Hocko
SUSE Labs
--
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:[~2016-04-27 11:11 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-19 15:06 [PATCH] mm,oom: Re-enable OOM killer using timeout Tetsuo Handa
2016-04-19 20:07 ` Michal Hocko
2016-04-19 21:55 ` Tetsuo Handa
2016-04-20 10:37 ` [PATCH v2] " Tetsuo Handa
2016-04-25 11:47 ` Michal Hocko
2016-04-26 14:00 ` Tetsuo Handa
2016-04-26 14:31 ` Michal Hocko
2016-04-27 10:43 ` Tetsuo Handa
2016-04-20 14:47 ` [PATCH] " Michal Hocko
2016-04-21 11:49 ` Tetsuo Handa
2016-04-21 13:07 ` Michal Hocko
2016-04-24 14:19 ` Tetsuo Handa
2016-04-25 9:55 ` Michal Hocko
2016-04-26 13:54 ` Michal Hocko
2016-04-27 10:43 ` Tetsuo Handa
2016-04-27 11:11 ` Michal Hocko [this message]
2016-05-14 0:39 ` Tetsuo Handa
2016-05-16 14:18 ` Michal Hocko
2016-05-17 11:08 ` Tetsuo Handa
2016-05-17 12:51 ` Michal Hocko
2016-04-26 14:00 ` Tetsuo Handa
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=20160427111147.GI2179@dhcp22.suse.cz \
--to=mhocko@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--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).