lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100604102246.c37858fb.kamezawa.hiroyu@jp.fujitsu.com>
Date:	Fri, 4 Jun 2010 10:22:46 +0900
From:	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To:	Daisuke Nishimura <nishimura@....nes.nec.co.jp>
Cc:	"linux-mm@...ck.org" <linux-mm@...ck.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
	"balbir@...ux.vnet.ibm.com" <balbir@...ux.vnet.ibm.com>
Subject: Re: [BUGFIX][PATCH] memcg fix wake up in oom wait queue

On Fri, 4 Jun 2010 10:08:11 +0900
Daisuke Nishimura <nishimura@....nes.nec.co.jp> wrote:

> On Thu, 3 Jun 2010 17:23:53 +0900, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com> wrote:
> > Very sorry that my test wasn't enough and delayed.
> > 
> > ==
> > From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...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@....nes.nec.co.jp>
> 
Thanks. I'll try to rebase this onto the latest mmotm.

-Kame

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ