From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
hugh@veritas.com, 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 12:17:25 +0530 [thread overview]
Message-ID: <20080421064725.GA32214@balbir.in.ibm.com> (raw)
In-Reply-To: <480C347C.6060702@linux.vnet.ibm.com>
* 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.
> >
>
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>
---
mm/memcontrol.c | 1 -
1 file changed, 1 deletion(-)
diff -puN mm/memcontrol.c~memcg-dont-disable-by-default mm/memcontrol.c
--- linux-2.6.25/mm/memcontrol.c~memcg-dont-disable-by-default 2008-04-21 12:11:31.000000000 +0530
+++ linux-2.6.25-balbir/mm/memcontrol.c 2008-04-21 12:11:40.000000000 +0530
@@ -1108,5 +1108,4 @@ struct cgroup_subsys mem_cgroup_subsys =
.populate = mem_cgroup_populate,
.attach = mem_cgroup_move_task,
.early_init = 0,
- .disabled = 1,
};
_
This would enable the memory controller by default, it can be disabled
using cgroup_disable=memory at boot time.
> >>> Others think differently. A compromise would be to improve the
> >>> helptext for CGROUP_MEM_RES_CTLR (some of it is presently nonsense,
> >>> isn't it? Certainly there's a significant overhead, but it's the
> >>> 32-bit struct page not the 64-bit which then suffers from crossing
> >>> cacheline boundaries). Not much point in mentioning
> >>> cgroup_disable=memory if those patches go in, but needs to say
> >>> cgroup_enable=memory bootoption also needed.
> >>>
> >> My concern around this is "default" action of cgroups may be different
> >> from each otther. It's confusing...
> >>
> >>
> >>>> memcgroup-check-and-initialize-page-cgroup-in-memmap_init_zone.patch
> >>> No, it was a good find from Shi, but you were right to think the patch
> >>> fishy, and Kame put in lots of work (thank you!) to identify the actual
> >>> culprit: he and Mel are discussing what the actual fix should be; and
> >>> we might want to choose a different fix for stable than for 2.6.26.
> >>>
> >>> I think you should drop that memmap_init_zone patch: the cgroup
> >>> pointer is not the only field we assume is zeroed, both flags and
> >>> mapping can cause trouble if they were not originally zeroed.
> >>> Re-zero the whole struct page? No, far better to fix the
> >>> root of the corruption, that Kame and Mel are working on.
> >>>
> >> I'll test and repodt Mel's patch later. I think Shi's patch will be
> >> unnecessary.
> >
> > OK, I'll drop that one.
> >
> > Thanks - it helps.
> >
Thanks. I've not been able to reproduce Shi's problem. I should find
an IA64 box and try and reproduce it. Since KAME is well on top of it,
I've been just listening in and reading the code.
>
>
> --
> Warm Regards,
> Balbir Singh
> Linux Technology Center
> IBM, ISTL
>
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
next prev parent reply other threads:[~2008-04-21 6:51 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 [this message]
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
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=20080421064725.GA32214@balbir.in.ibm.com \
--to=balbir@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.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
all inboxes | Powered by JetHome®