KOSAKI Motohiro
fa25c503df
mm: per-node vmstat: show proper vmstats
...
commit 2ac390370a ("writeback: add
/sys/devices/system/node/<node>/vmstat") added vmstat entry. But
strangely it only show nr_written and nr_dirtied.
# cat /sys/devices/system/node/node20/vmstat
nr_written 0
nr_dirtied 0
Of course, It's not adequate. With this patch, the vmstat show all vm
stastics as /proc/vmstat.
# cat /sys/devices/system/node/node0/vmstat
nr_free_pages 899224
nr_inactive_anon 201
nr_active_anon 17380
nr_inactive_file 31572
nr_active_file 28277
nr_unevictable 0
nr_mlock 0
nr_anon_pages 17321
nr_mapped 8640
nr_file_pages 60107
nr_dirty 33
nr_writeback 0
nr_slab_reclaimable 6850
nr_slab_unreclaimable 7604
nr_page_table_pages 3105
nr_kernel_stack 175
nr_unstable 0
nr_bounce 0
nr_vmscan_write 0
nr_writeback_temp 0
nr_isolated_anon 0
nr_isolated_file 0
nr_shmem 260
nr_dirtied 1050
nr_written 938
numa_hit 962872
numa_miss 0
numa_foreign 0
numa_interleave 8617
numa_local 962872
numa_other 0
nr_anon_transparent_hugepages 0
[akpm@linux-foundation.org: no externs in .c files]
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Michael Rubin <mrubin@google.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-05-25 08:39:07 -07:00
..
2011-05-17 23:26:21 +02:00
2010-03-27 15:15:24 -04:00
2011-05-11 21:37:15 +02:00
2011-01-13 10:05:56 -08:00
2010-11-17 14:21:08 -08:00
2011-04-22 17:06:30 -07:00
2010-05-21 09:37:28 -07:00
2011-05-19 18:24:11 -07:00
2010-03-30 22:02:32 +09:00
2010-10-29 04:16:28 -04:00
2010-08-05 13:53:33 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2011-05-17 23:19:17 +02:00
2008-01-24 20:40:23 -08:00
2008-01-24 20:40:15 -08:00
2009-09-15 09:50:49 -07:00
2010-03-07 18:01:13 +01:00
2009-04-07 08:31:12 -07:00
2011-05-11 21:37:15 +02:00
2011-03-15 00:43:46 +01:00
2011-05-23 09:12:26 -07:00
2010-05-21 09:37:29 -07:00
2011-05-25 08:39:07 -07:00
2011-05-19 18:24:11 -07:00
2011-05-11 21:37:15 +02:00
2011-04-20 00:36:11 +02:00
2010-09-09 20:41:25 +02:00
2008-04-19 19:10:33 -07:00