diff options
author | Jan Blunck <jblunck@suse.de> | 2009-01-07 18:07:53 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-08 08:31:04 -0800 |
commit | c8dad2bb6307f5b00f804a686917105206a4d5c9 (patch) | |
tree | 5f1b7dd1fc4ae5789e35e5d0dade0d37be9fe52e /mm/shmem.c | |
parent | f817ed48535ac6510ebae7c4116f24a5f9268834 (diff) | |
download | op-kernel-dev-c8dad2bb6307f5b00f804a686917105206a4d5c9.zip op-kernel-dev-c8dad2bb6307f5b00f804a686917105206a4d5c9.tar.gz |
memcg: reduce size of mem_cgroup by using nr_cpu_ids
As Jan Blunck <jblunck@suse.de> pointed out, allocating per-cpu stat for
memcg to the size of NR_CPUS is not good.
This patch changes mem_cgroup's cpustat allocation not based on NR_CPUS
but based on nr_cpu_ids.
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions