Re: [patch 00/10] memcg naturalization -rc4
From: Johannes Weiner
Date: Tue Oct 04 2011 - 03:48:14 EST
On Mon, Oct 03, 2011 at 04:11:49PM -0700, Andrew Morton wrote:
> On Thu, 29 Sep 2011 23:00:54 +0200
> Johannes Weiner <jweiner@xxxxxxxxxx> wrote:
> > this is the fourth revision of the memory cgroup naturalization
> > series.
> The patchset removes 20 lines from include/linux/*.h and removes
> exactly zero lines from mm/*.c. Freaky.
It adds 42 lines more comments than it deletes.
The diffstat looked better when this series included the soft limit
reclaim rework, which depends on global reclaim doing hierarchy walks.
I plan to do this next, it deletes ~500 lines.
> If we were ever brave/stupid emough to make
> CONFIG_CGROUP_MEM_RES_CTLR=y unconditional, how much could we simplify
There will always be a remaining part that is only of interest to
people with memory cgroups, but that doesn't mean we can't shrink this
part to an adequate size.
> We are adding bits of overhead to the CONFIG_CGROUP_MEM_RES_CTLR=n case
> all over the place. This patchset actually decreases the size of allnoconfig
> mm/built-in.o by 1/700th.
Most of the memcg code should be completely optimized away with =n,
except for some on-stack data structures that have a struct mem_cgroup
In the meantime, major distros started to =y per default and people
are complaining that memcg functions show up in the profiles of their
non-memcg workload. This one worries me more.
> A "struct mem_cgroup" sometimes gets called "mem", sometimes "memcg",
> sometimes "mem_cont". Any more candidates? Is there any logic to
I used memcg throughout except for two patches that I fixed up. I
don't think there is any reason to keep them different, so I'll send a
fix to rename the remaining ones to memcg.
> Anyway... it all looks pretty sensible to me, but the timing (at
> -rc8!) is terrible. Please keep this material maintained for -rc1, OK?
Thanks, and yeah, the timing is ambitious, I hoped that the deferred
release and merge window could make it possible.
I'll keep it uptodate.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/