From: Michal Hocko <mhocko@kernel.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: akpm@linux-foundation.org, rientjes@google.com, linux-mm@kvack.org
Subject: Re: [PATCH] mm,oom: Hold oom_victims counter while OOM reaping.
Date: Thu, 26 May 2016 13:58:00 +0200 [thread overview]
Message-ID: <20160526115759.GB23675@dhcp22.suse.cz> (raw)
In-Reply-To: <201605262047.JAB39598.OFOtQJVSFFOLMH@I-love.SAKURA.ne.jp>
On Thu 26-05-16 20:47:47, Tetsuo Handa wrote:
> Continued from http://lkml.kernel.org/r/201605252330.IAC82384.OOSQHVtFFFLOMJ@I-love.SAKURA.ne.jp :
> > > I do not think we want to wait inside the oom_lock as it is a global
> > > lock shared by all OOM killer contexts. Another option would be to use
> > > the oom_lock inside __oom_reap_task. It is not super cool either because
> > > now we have a dependency on the lock but looks like reasonably easy
> > > solution.
> >
> > It would be nice if we can wait until memory reclaimed from the OOM victim's
> > mm is queued to freelist for allocation. But I don't have idea other than
> > oomkiller_holdoff_timer.
> >
> > I think this problem should be discussed another day in a new thread.
> >
>
> Can we use per "struct signal_struct" oom_victims instead of global oom_lock?
The problem with signal_struct is that we will not help if the task gets
unhashed from the task list which usually happens quite early after
exit_mm. The oom_lock will keep other OOM killer activity away until we
reap the address space and free up the memory so it would cover that
case. So I think the oom_lock is a more robust solution. I plan to post
the patch with the full changelog soon I just wanted to finish the other
pile before.
--
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>
prev parent reply other threads:[~2016-05-26 11:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-26 11:47 Tetsuo Handa
2016-05-26 11:58 ` Michal Hocko [this message]
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=20160526115759.GB23675@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