[Devel] Re: [RFC][PATCH] memory controller per zone patches take 2 [9/10] per-zone-lru for memory cgroup
Balbir Singh
balbir at linux.vnet.ibm.com
Sat Nov 17 09:51:22 PST 2007
KAMEZAWA Hiroyuki wrote:
> This patch implements per-zone lru for memory cgroup.
> This patch makes use of mem_cgroup_per_zone struct for per zone lru.
>
> LRU can be accessed by
>
> mz = mem_cgroup_zoneinfo(mem_cgroup, node, zone);
> &mz->active_list
> &mz->inactive_list
>
> or
> mz = page_cgroup_zoneinfo(page_cgroup, node, zone);
> &mz->active_list
> &mz->inactive_list
>
>
> Changelog v1->v2
> - merged to mem_cgroup_per_zone struct.
> - handle page migraiton.
>
> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
>
Thanks, this has been a long pending TODO. What is pending now on my
plate is re-organizing res_counter to become aware of the filesystem
hierarchy. I want to split out the LRU lists from the memory controller
and resource counters.
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list