public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: Hugh Dickins <hugh@veritas.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Andi Kleen <andi@firstfloor.org>,
	menage@google.com, xemul@openvz.org, shiwh@cn.fujitsu.com,
	mel@csn.ul.ie, linux-kernel@vger.kernel.org
Subject: Re: -mm merge plans for 2.6.26 (memcgroup)
Date: Mon, 21 Apr 2008 17:11:59 +0530	[thread overview]
Message-ID: <480C7D87.5060909@linux.vnet.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0804211158001.10521@blonde.site>

Hugh Dickins wrote:
> On Mon, 21 Apr 2008, Balbir Singh wrote:
>> * Balbir Singh <balbir@linux.vnet.ibm.com> [2008-04-21 12:14:28]:
>>> Andrew Morton wrote:
>>>>> On Mon, 21 Apr 2008 09:30:59 +0900 KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
>>>>> On Mon, 21 Apr 2008 00:51:30 +0100 (BST)
>>>>> Hugh Dickins <hugh@veritas.com> wrote:
>>>>>>>  disable-the-memory-controller-by-default-v3.patch
>>>>>>>  disable-the-memory-controller-by-default-v3-fix.patch
>>>>>> If those are to go in, then the sooner the better, yes.
>>>>>>
>>>>>> But though I argued for cgroup_disable=memory (or some such),
>>>>>> I think myself that taking it even further now (requiring an
>>>>>> additional cgroup_enable=memory at boottime to get the memcg
>>>>>> stuff you chose with CGROUP_MEM_RES_CTLR=y at build time) is
>>>>>> confusing overkill, just messing around.
>>>> Yes, it does sound a bit silly.  I'd say just enable it, and provide a
>>>> cgroup_disable.
> 
> And 2.6.25 does already have that cgroup_disable=memory bootoption to
> disable the config-enabled MEM_RES_CTLR and almost all of its overhead
> (just leaving the extra pointer in struct page).
> 
>> OK, fair enough. Andi Kleen spoke about the overhead and how distros would
>> be impacted if they enabled CONFIG_MEM_RES_CTLR and it was not disabled by
>> default. I think the enable/disable is good. I just need to turn on/off
>> mem_cgroup_subsys.disabled. The patch is as simple as
>>  
>> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
> 
> That's a simple patch on top of:
> disable-the-memory-controller-by-default-v3.patch
> disable-the-memory-controller-by-default-v3-fix.patch
> 

Yes, which are in 2.6.25-mm1. I don't mean to sneak these patches in, just
pointing out an approach to solving that problem. I am not against removing the
patches mentioned above either. Your point of the overheads and the boot option
and the memory control being enabled by default in 2.6.25 is valid (we already
have those in).

> But even simpler is just to drop those patches, yes?

Yes

> What's the point of adding cgroup_enable if nothing uses it?
> And especially not for going into -stable.
> 

Yes, true

> I've added Andi to the Cc's, I don't want to sneak away something
> he's expecting there.  If 2.6.25 had gone out with a convention that
> controller infrastructure gets compiled in, but has then to be enabled
> at boottime or runtime, okay; but switching back and forth between
> defaults of enabled and disabled between releases (and between
> controllers, as you seem to envisage) bothers me.
> 

I am not trying to sneak anything in. We have two different view points on
enabling/disabling by default. I just wanted to show that making the change to
enable/disable is easy -- the patch was not meant for inclusion. The patch is
easy, but the decision needs more discussion.

> The config helptext (along with some misinformation) does conclude
> 	  Only enable when you're ok with these trade offs and really
> 	  sure you need the memory resource controller.
> so I don't see why we now need to switch to disabled by default both
> in config and at bootime - too many hurdles to my mind.

We do have differing opinions on this one. I think one of Andi's points was that
if a distro were to pick up 2.6.25 and they enabled CONFIG_CGROUPS_MEM_RES_CTLR
they would have several complaints of the overhead from users. I am open to what
is the best solution for such a situation. More opinions and brain-storming will
help.

-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL

  parent reply	other threads:[~2008-04-21 11:45 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-20 14:20 -mm merge plans for 2.6.26 Andrew Morton
2008-04-20 15:51 ` Jiri Slaby
2008-04-20 23:51 ` -mm merge plans for 2.6.26 (memcgroup) Hugh Dickins
2008-04-21  0:30   ` KAMEZAWA Hiroyuki
2008-04-21  6:24     ` Andrew Morton
     [not found]       ` <480C347C.6060702@linux.vnet.ibm.com>
2008-04-21  6:47         ` Balbir Singh
2008-04-21  9:42           ` Peter Zijlstra
2008-04-21 10:21             ` Balbir Singh
2008-04-21 10:40               ` KAMEZAWA Hiroyuki
2008-04-21 15:48             ` Paul Menage
2008-04-21 11:22           ` Hugh Dickins
2008-04-21 11:41             ` Andi Kleen
2008-04-21 12:13               ` Hugh Dickins
2008-04-21 13:31                 ` kamezawa.hiroyu
2008-04-21 11:41             ` Balbir Singh [this message]
2008-05-17  0:03 ` -mm merge plans for 2.6.26 Randy Dunlap
2008-05-17  0:28   ` Andrew Morton
2008-05-17  2:07     ` Randy Dunlap
2008-05-17  4:30       ` Randy Dunlap
2008-05-19 20:26         ` Randy Dunlap
2008-05-19 20:38           ` Andrew Morton
2008-05-19 20:44             ` Sam Ravnborg
2008-05-23  8:05               ` Andrew Morton

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=480C7D87.5060909@linux.vnet.ibm.com \
    --to=balbir@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=andi@firstfloor.org \
    --cc=hugh@veritas.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mel@csn.ul.ie \
    --cc=menage@google.com \
    --cc=shiwh@cn.fujitsu.com \
    --cc=xemul@openvz.org \
    /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