From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: balbir@linux.vnet.ibm.com
Cc: David Rientjes <rientjes@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>,
Divyesh Shah <dpshah@google.com>,
linux-mm@kvack.org
Subject: Re: [patch v3] memcg: add oom killer delay
Date: Thu, 6 Jan 2011 14:52:01 +0900 [thread overview]
Message-ID: <20110106145201.dab01250.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <20110106054600.GH3722@balbir.in.ibm.com>
On Thu, 6 Jan 2011 11:16:00 +0530
Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
> * KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> [2011-01-06 10:53:15]:
>
> > > Kamezawa-San, not sure if your comment is clear, are you suggesting
> > >
> > > Since memcg is the root of a hierarchy, we need to use hierarchical
> > > locking before changing the value of the root oom_delay?
> > >
> >
> > No. mem_cgroup_oom_lock() is a lock for hierarchy, not for a group.
> >
> > For example,
> >
> > A
> > / \
> > B C
> >
> > In above hierarchy, when C is in OOM, A's OOM will be blocked by C's OOM.
> > Because A's OOM can be fixed by C's oom-kill.
> > This means oom_delay for A should be for C (and B), IOW, for hierarchy.
> >
> >
> > A and B, C should have the same oom_delay, oom_disable value.
> >
>
> Why so? You already mentioned that A's OOM will be blocked by C's OOM?
> If we keep that behaviour, if C has a different oom_delay value, it
> won't matter, since we'll never go up to A.
When C's oom_delay is 10min and A's oom_delay is 1min, A can be blocked
for 10min even if it has 1min delay.
I don't want this complex rule.
> If the patch breaks that
> behaviour then we are in trouble. With hierarchy we need to ensure
> that if A has a oom_delay set and C does not, A's setting takes
> precendence. In the absence of that logic what you say makes sense.
>
His implemenation doesn't do that and I want a simple one even if I have
to make an Ack to a feature which seems of-no-use to me.
Thanks,
-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/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2011-01-06 5:58 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-22 7:27 [patch] " David Rientjes
2010-12-22 7:59 ` Andrew Morton
2010-12-22 8:17 ` KAMEZAWA Hiroyuki
2010-12-22 8:31 ` KOSAKI Motohiro
2010-12-22 8:48 ` David Rientjes
2010-12-22 8:48 ` KAMEZAWA Hiroyuki
2010-12-22 8:55 ` KAMEZAWA Hiroyuki
2010-12-22 9:21 ` David Rientjes
2010-12-27 1:47 ` KAMEZAWA Hiroyuki
2010-12-22 9:04 ` David Rientjes
2010-12-22 8:42 ` David Rientjes
2010-12-22 22:45 ` [patch v2] " David Rientjes
2010-12-27 0:52 ` KAMEZAWA Hiroyuki
2010-12-28 5:22 ` David Rientjes
2010-12-28 6:29 ` [patch v3] " David Rientjes
2011-01-04 1:41 ` KAMEZAWA Hiroyuki
2011-01-04 3:59 ` Balbir Singh
2011-01-06 1:53 ` KAMEZAWA Hiroyuki
2011-01-06 5:46 ` Balbir Singh
2011-01-06 5:52 ` KAMEZAWA Hiroyuki [this message]
2010-12-25 10:47 ` [patch] " Balbir Singh
2010-12-26 20:35 ` David Rientjes
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=20110106145201.dab01250.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=dpshah@google.com \
--cc=linux-mm@kvack.org \
--cc=nishimura@mxp.nes.nec.co.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