aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-09-27 04:50:00 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-27 11:26:12 -0400
commite129b5c23c2b471d47f1c5d2b8b193fc2034af43 (patch)
tree78232266849d0f04b056b0f44554bcb476f0b8e1 /include
parentfb01439c5b778d5974a488c5d4fe85e6d0e18a68 (diff)
[PATCH] vm: add per-zone writeout counter
The VM is supposed to minimise the number of pages which get written off the LRU (for IO scheduling efficiency, and for high reclaim-success rates). But we don't actually have a clear way of showing how true this is. So add `nr_vmscan_write' to /proc/vmstat and /proc/zoneinfo - the number of pages which have been written by the vm scanner in this zone and globally. Cc: Christoph Lameter <clameter@engr.sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mmzone.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 7fa1cbe9fa7a..1b0680cd84d2 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -58,6 +58,7 @@ enum zone_stat_item {
58 NR_WRITEBACK, 58 NR_WRITEBACK,
59 NR_UNSTABLE_NFS, /* NFS unstable pages */ 59 NR_UNSTABLE_NFS, /* NFS unstable pages */
60 NR_BOUNCE, 60 NR_BOUNCE,
61 NR_VMSCAN_WRITE,
61#ifdef CONFIG_NUMA 62#ifdef CONFIG_NUMA
62 NUMA_HIT, /* allocated in intended node */ 63 NUMA_HIT, /* allocated in intended node */
63 NUMA_MISS, /* allocated in non intended node */ 64 NUMA_MISS, /* allocated in non intended node */