Re: [PATCH v4 03/11] memcg: create extensible page stat update routines

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg Thelen
Date: Sunday, October 31, 2010 - 1:11 pm

Ciju Rajan K <ciju@linux.vnet.ibm.com> writes:


mem_cgroup_update_file_mapped() was renamed to
mem_cgroup_update_file_stat() in
http://userweb.kernel.org/~akpm/mmotm/broken-out/memcg-generic-filestat-update-interfa...

I also do not see this in the mmotm git repo.  However, if I manually
apply the mmotm patches to v2.6.36 using quilt then I see the expected
patched memcontrol.c.  I am not sure why the zen-kernel.org git mmotm
repo differs from a mmotm patched mainline 2.6.36.

Here is my procedure using quilt to patch mainline:

# Checkout 2.6.36 mainline
$ git checkout v2.6.36

# Confirm mainline 2.6.36 does not have mem_cgroup_update_file_stat()
$ grep mem_cgroup_update_file_stat -r mm

# Apply patches
$ curl http://userweb.kernel.org/~akpm/mmotm/broken-out.tar.gz | tar -xzf -
$ export QUILT_PATCHES=broken-out
$ quilt push -aq
...
Now at patch memblock-add-input-size-checking-to-memblock_find_region-fix.patch

# Now the memcontrol contains mem_cgroup_update_file_stat()
$ grep mem_cgroup_update_file_stat -r mm
mm/memcontrol.c:static void mem_cgroup_update_file_stat(struct page *page, int idx, int val)
mm/memcontrol.c:        mem_cgroup_update_file_stat(page, MEM_CGROUP_STAT_FILE_MAPPED, val);

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v4 05/11] writeback: create dirty_info structure, Greg Thelen, (Fri Oct 29, 12:09 am)
[PATCH v4 08/11] memcg: add dirty limits to mem_cgroup, Greg Thelen, (Fri Oct 29, 12:09 am)
[PATCH v4 09/11] memcg: CPU hotplug lockdep warning fix, Greg Thelen, (Fri Oct 29, 12:09 am)
Re: [PATCH v4 08/11] memcg: add dirty limits to mem_cgroup, KAMEZAWA Hiroyuki, (Fri Oct 29, 12:41 am)
Re: [PATCH v4 10/11] memcg: add cgroupfs interface to memc ..., KAMEZAWA Hiroyuki, (Fri Oct 29, 12:43 am)
Re: [PATCH v4 11/11] memcg: check memcg dirty limits in pa ..., KAMEZAWA Hiroyuki, (Fri Oct 29, 12:48 am)
Re: [PATCH v4 05/11] writeback: create dirty_info structure, KAMEZAWA Hiroyuki, (Fri Oct 29, 12:50 am)
Re: [PATCH v4 06/11] memcg: add dirty page accounting infr ..., KAMEZAWA Hiroyuki, (Fri Oct 29, 4:17 am)
Re: [PATCH v4 03/11] memcg: create extensible page stat up ..., Greg Thelen, (Sun Oct 31, 1:11 pm)