diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2009-09-21 20:01:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:27 -0400 |
commit | 4a0aa73f1d613bf19bc8610bf090c941ef49d720 (patch) | |
tree | 5b6ae69c182e65e9711864cff150536a2a216bfb /mm/page_alloc.c | |
parent | 3b2b9a875ddcbf9fcd667db9f961a6a163bd083f (diff) |
mm: oom analysis: add per-zone statistics to show_free_areas()
show_free_areas() displays only a limited amount of zone counters. This
patch includes additional counters in the display to allow easier
debugging. This may be especially useful if an OOM is due to running out
of DMA memory.
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
Acked-by: Wu Fengguang <fengguang.wu@intel.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index bdf12f36bae0..8fbf5a4f5cf7 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2170,6 +2170,16 @@ void show_free_areas(void) | |||
2170 | " inactive_file:%lukB" | 2170 | " inactive_file:%lukB" |
2171 | " unevictable:%lukB" | 2171 | " unevictable:%lukB" |
2172 | " present:%lukB" | 2172 | " present:%lukB" |
2173 | " mlocked:%lukB" | ||
2174 | " dirty:%lukB" | ||
2175 | " writeback:%lukB" | ||
2176 | " mapped:%lukB" | ||
2177 | " slab_reclaimable:%lukB" | ||
2178 | " slab_unreclaimable:%lukB" | ||
2179 | " pagetables:%lukB" | ||
2180 | " unstable:%lukB" | ||
2181 | " bounce:%lukB" | ||
2182 | " writeback_tmp:%lukB" | ||
2173 | " pages_scanned:%lu" | 2183 | " pages_scanned:%lu" |
2174 | " all_unreclaimable? %s" | 2184 | " all_unreclaimable? %s" |
2175 | "\n", | 2185 | "\n", |
@@ -2184,6 +2194,16 @@ void show_free_areas(void) | |||
2184 | K(zone_page_state(zone, NR_INACTIVE_FILE)), | 2194 | K(zone_page_state(zone, NR_INACTIVE_FILE)), |
2185 | K(zone_page_state(zone, NR_UNEVICTABLE)), | 2195 | K(zone_page_state(zone, NR_UNEVICTABLE)), |
2186 | K(zone->present_pages), | 2196 | K(zone->present_pages), |
2197 | K(zone_page_state(zone, NR_MLOCK)), | ||
2198 | K(zone_page_state(zone, NR_FILE_DIRTY)), | ||
2199 | K(zone_page_state(zone, NR_WRITEBACK)), | ||
2200 | K(zone_page_state(zone, NR_FILE_MAPPED)), | ||
2201 | K(zone_page_state(zone, NR_SLAB_RECLAIMABLE)), | ||
2202 | K(zone_page_state(zone, NR_SLAB_UNRECLAIMABLE)), | ||
2203 | K(zone_page_state(zone, NR_PAGETABLE)), | ||
2204 | K(zone_page_state(zone, NR_UNSTABLE_NFS)), | ||
2205 | K(zone_page_state(zone, NR_BOUNCE)), | ||
2206 | K(zone_page_state(zone, NR_WRITEBACK_TEMP)), | ||
2187 | zone->pages_scanned, | 2207 | zone->pages_scanned, |
2188 | (zone_is_all_unreclaimable(zone) ? "yes" : "no") | 2208 | (zone_is_all_unreclaimable(zone) ? "yes" : "no") |
2189 | ); | 2209 | ); |