Re: [RFC][PATCH] Remove cgroup member from struct page (v3)

From: KAMEZAWA Hiroyuki
Date: Thu Sep 18 2008 - 00:55:34 EST


On Wed, 17 Sep 2008 20:57:54 -0700
Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> wrote:

> Andrew Morton wrote:

> > someone somewhere decided that (Aa + Bb) / Cc < 1.0. What are the values
> > of A, B and C and where did they come from? ;)
> >
> > (IOW, your changelog is in the category "sucky", along with 90% of the others)
>
> Yes, I agree, to be honest we discussed the reasons on the mailing list and
> those should go to the changelog. I'll do that in the next version of the
> patches. These are early RFC patches, but the changelog does suck.
>
IIRC, (Aa + Bb) / Cc < 1.0 discussion was following.

Because we have to maintain pointer to page_cgroup in radix-tree (ZONE_NORMAL)

1. memory usage will increase when memory cgroup is enabled.
The amount memory usage increase just depends on the height of radix-tree.

2. memory usage will decrease when memory cgroup is disabled.
This saves 4bytes per 4096bytes. (on x86-32)

Thanks,
-Kame

--
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/