[RFC] [PATCH 0/6 v3] memcg: page cgroup diet

From: KAMEZAWA Hiroyuki
Date: Mon Feb 06 2012 - 05:07:56 EST



Here is my page_cgroup diet series v3. Since v2, "remove PCG_CACHE" is alread
merged.

This series changes page-stat-accounting per memcg

from:
if (change page's state)
mem_cgroup_update_page_state()

to:
mem_cgroup_begin_update_page_state()
if (change page's state)
mem_cgroup_update_page_state()
mem_cgroup_end_update_page_state()

(see patch 4 for details.) This allows us not to duplicate page struct's
information in page_cgroup's flag field.

Because above sequence adds 2 extra calls to hot-path, performance will be problem.
Patch 6 is a fix for performance, and I don't see performance regression in my
small test. (see patch 6 for details.)

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/