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-20 18:51:09 -03:00
2011-05-24 16:39:23 -07:00
2011-05-19 00:59:55 -07:00
2011-05-24 00:06:26 -07:00
2011-05-16 11:32:26 -04:00
2011-05-24 11:51:26 -07:00
2011-05-12 08:28:56 -07:00
2011-05-20 13:43:21 -07:00
2011-05-23 12:33:02 -07:00
2011-05-19 16:55:27 +09:30
2011-05-24 22:55:24 +10:00
2011-05-19 14:24:16 +02:00
2011-05-23 18:04:51 +01:00
2011-05-13 11:45:33 -07:00
2011-05-19 18:24:11 -07:00
2011-05-23 10:47:06 -05:00
2011-05-14 21:36:55 +01:00
2011-05-13 14:37:28 -04:00
2011-05-12 07:37:51 -07:00
2011-05-22 21:01:22 -04:00
2011-05-15 10:22:10 -07:00
2011-05-18 19:22:52 -04:00
2011-05-11 18:50:45 -07:00
2011-05-23 13:59:54 +02:00
2011-05-24 22:55:24 +10:00
2011-05-16 14:46:30 -04:00
2011-05-18 14:59:08 +02:00
2011-05-20 09:30:46 -03:00
2011-05-18 15:29:51 -04:00
2011-05-24 22:55:24 +10:00
2011-05-23 15:39:34 -07:00
2011-05-22 08:47:53 -04:00
2011-05-19 20:50:53 -04:00
2011-05-24 14:33:35 +02:00
2011-05-19 14:15:29 -07:00
2011-05-25 08:39:03 -07:00
2011-05-19 16:55:27 +09:30
2011-05-19 16:55:25 +09:30
2011-05-20 00:33:18 -04:00
2011-05-11 22:52:13 -04:00
2011-05-16 19:32:19 -04:00
2011-05-23 11:58:59 +02:00
2011-05-22 21:01:19 -04:00
2011-05-18 12:32:23 -06:00
2011-05-23 10:24:31 +02:00
2011-05-23 15:39:34 -07:00
2011-05-21 12:16:44 -07:00
2011-05-24 12:06:40 -07:00
2011-05-16 20:17:47 +02:00
2011-05-17 23:26:21 +02:00
2011-05-18 02:55:24 -07:00
2011-05-16 11:05:00 -07:00
2011-05-13 16:31:00 -07:00
2011-05-19 14:15:29 -07:00
2011-05-12 08:28:47 -07:00
2011-05-23 12:53:48 -07:00
2011-05-12 12:13:43 +02:00
2011-05-19 16:51:01 -07:00
2011-05-19 16:51:02 -07:00
2011-05-19 08:19:36 -07:00
2011-05-20 13:33:21 -07:00
2011-05-23 08:39:24 -07:00
2011-05-21 12:53:53 +03:00
2011-05-20 12:51:07 -07:00
2011-05-19 16:55:28 +09:30
2011-05-13 16:05:51 -07:00
2011-05-23 13:59:54 +02:00
2011-05-23 13:59:53 +02:00
2011-05-23 13:59:53 +02:00
2011-05-20 13:33:21 -07:00
2011-05-13 16:31:00 -07:00
2011-05-20 09:30:46 -03:00
2011-05-20 11:28:49 -03:00
2011-05-20 12:17:35 -03:00
2011-05-25 08:39:07 -07:00