From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"balbir@linux.vnet.ibm.com" <balbir@linux.vnet.ibm.com>
Subject: Re: [BUGFIX][PATCH] memcg fix wake up in oom wait queue
Date: Fri, 4 Jun 2010 10:22:46 +0900 [thread overview]
Message-ID: <20100604102246.c37858fb.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <20100604100811.31c45828.nishimura@mxp.nes.nec.co.jp>
On Fri, 4 Jun 2010 10:08:11 +0900
Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> wrote:
> On Thu, 3 Jun 2010 17:23:53 +0900, KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> > Very sorry that my test wasn't enough and delayed.
> >
> > ==
> > From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> >
> > OOM-waitqueue should be waken up when oom_disable is canceled.
> > This is a fix for
> > memcg-oom-kill-disable-and-oom-status.patch
> >
> > How to test:
> > Create a cgroup A...
> > 1. set memory.limit and memory.memsw.limit to be small value
> > 2. echo 1 > /cgroup/A/memory.oom_control, this disables oom-kill.
> > 3. run a program which must cause OOM.
> >
> > A program executed in 3 will sleep by oom_waiqueue in memcg.
> > Then, how to wake it up is problem.
> >
> > 1. echo 0 > /cgroup/A/memory.oom_control (enable OOM-killer)
> > 2. echo big mem > /cgroup/A/memory.memsw.limit_in_bytes(allow more swap)
> > etc..
> >
> > Without the patch, a task in slept can not be waken up.
> >
>
> Acked-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
>
Thanks. I'll try to rebase this onto the latest mmotm.
-Kame
--
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-06-04 1:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-03 8:23 KAMEZAWA Hiroyuki
2010-06-04 1:08 ` Daisuke Nishimura
2010-06-04 1:22 ` KAMEZAWA Hiroyuki [this message]
2010-06-04 2:58 ` KAMEZAWA Hiroyuki
2010-06-04 8:07 ` KAMEZAWA Hiroyuki
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=20100604102246.c37858fb.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nishimura@mxp.nes.nec.co.jp \
/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