diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2009-09-21 20:01:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:29 -0400 |
commit | a731286de62294b63d8ceb3c5914ac52cc17e690 (patch) | |
tree | c321e14500ec264e37fd103ffa71c7b133088010 /mm/vmstat.c | |
parent | b35ea17b7bbf5dea35faa0de11030acc620c3197 (diff) |
mm: vmstat: add isolate pages
If the system is running a heavy load of processes then concurrent reclaim
can isolate a large number of pages from the LRU. /proc/vmstat and the
output generated for an OOM do not show how many pages were isolated.
This has been observed during process fork bomb testing (mstctl11 in LTP).
This patch shows the information about isolated pages.
Reproduced via:
-----------------------
% ./hackbench 140 process 1000
=> OOM occur
active_anon:146 inactive_anon:0 isolated_anon:49245
active_file:79 inactive_file:18 isolated_file:113
unevictable:0 dirty:0 writeback:0 unstable:0 buffer:39
free:370 slab_reclaimable:309 slab_unreclaimable:5492
mapped:53 shmem:15 pagetables:28140 bounce:0
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Wu Fengguang <fengguang.wu@intel.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r-- | mm/vmstat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 7214a4511257..c81321f9feec 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -644,6 +644,8 @@ static const char * const vmstat_text[] = { | |||
644 | "nr_bounce", | 644 | "nr_bounce", |
645 | "nr_vmscan_write", | 645 | "nr_vmscan_write", |
646 | "nr_writeback_temp", | 646 | "nr_writeback_temp", |
647 | "nr_isolated_anon", | ||
648 | "nr_isolated_file", | ||
647 | "nr_shmem", | 649 | "nr_shmem", |
648 | #ifdef CONFIG_NUMA | 650 | #ifdef CONFIG_NUMA |
649 | "numa_hit", | 651 | "numa_hit", |