diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2008-04-30 03:54:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:50 -0400 |
commit | fc3ba692a4d19019387c5acaea63131f9eab05dd (patch) | |
tree | c86e025cb8f79c7ffc479029989b7378bcb9f285 /drivers/base/node.c | |
parent | dd5656e59ca7b25fb60a22f9079905ed0da5ed0c (diff) |
mm: Add NR_WRITEBACK_TEMP counter
Fuse will use temporary buffers to write back dirty data from memory mappings
(normal writes are done synchronously). This is needed, because there cannot
be any guarantee about the time in which a write will complete.
By using temporary buffers, from the MM's point if view the page is written
back immediately. If the writeout was due to memory pressure, this
effectively migrates data from a full zone to a less full zone.
This patch adds a new counter (NR_WRITEBACK_TEMP) for the number of pages used
as temporary buffers.
[Lee.Schermerhorn@hp.com: add vmstat_text for NR_WRITEBACK_TEMP]
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/base/node.c')
-rw-r--r-- | drivers/base/node.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index 12fde2d03d69..39f3d1b3a213 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c | |||
@@ -77,6 +77,7 @@ static ssize_t node_read_meminfo(struct sys_device * dev, char * buf) | |||
77 | "Node %d PageTables: %8lu kB\n" | 77 | "Node %d PageTables: %8lu kB\n" |
78 | "Node %d NFS_Unstable: %8lu kB\n" | 78 | "Node %d NFS_Unstable: %8lu kB\n" |
79 | "Node %d Bounce: %8lu kB\n" | 79 | "Node %d Bounce: %8lu kB\n" |
80 | "Node %d WritebackTmp: %8lu kB\n" | ||
80 | "Node %d Slab: %8lu kB\n" | 81 | "Node %d Slab: %8lu kB\n" |
81 | "Node %d SReclaimable: %8lu kB\n" | 82 | "Node %d SReclaimable: %8lu kB\n" |
82 | "Node %d SUnreclaim: %8lu kB\n", | 83 | "Node %d SUnreclaim: %8lu kB\n", |
@@ -99,6 +100,7 @@ static ssize_t node_read_meminfo(struct sys_device * dev, char * buf) | |||
99 | nid, K(node_page_state(nid, NR_PAGETABLE)), | 100 | nid, K(node_page_state(nid, NR_PAGETABLE)), |
100 | nid, K(node_page_state(nid, NR_UNSTABLE_NFS)), | 101 | nid, K(node_page_state(nid, NR_UNSTABLE_NFS)), |
101 | nid, K(node_page_state(nid, NR_BOUNCE)), | 102 | nid, K(node_page_state(nid, NR_BOUNCE)), |
103 | nid, K(node_page_state(nid, NR_WRITEBACK_TEMP)), | ||
102 | nid, K(node_page_state(nid, NR_SLAB_RECLAIMABLE) + | 104 | nid, K(node_page_state(nid, NR_SLAB_RECLAIMABLE) + |
103 | node_page_state(nid, NR_SLAB_UNRECLAIMABLE)), | 105 | node_page_state(nid, NR_SLAB_UNRECLAIMABLE)), |
104 | nid, K(node_page_state(nid, NR_SLAB_RECLAIMABLE)), | 106 | nid, K(node_page_state(nid, NR_SLAB_RECLAIMABLE)), |