]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/page_alloc.c
mm: oom analysis: Show kernel stack usage in /proc/meminfo and OOM log output
[net-next-2.6.git] / mm / page_alloc.c
index 494c09196c30a07ca6b690844933a3d7a5b1a41c..4e050f325ebd8ca1ed49362d390e747ea02bd6f0 100644 (file)
@@ -2177,6 +2177,7 @@ void show_free_areas(void)
                        " mapped:%lukB"
                        " slab_reclaimable:%lukB"
                        " slab_unreclaimable:%lukB"
+                       " kernel_stack:%lukB"
                        " pagetables:%lukB"
                        " unstable:%lukB"
                        " bounce:%lukB"
@@ -2201,6 +2202,8 @@ void show_free_areas(void)
                        K(zone_page_state(zone, NR_FILE_MAPPED)),
                        K(zone_page_state(zone, NR_SLAB_RECLAIMABLE)),
                        K(zone_page_state(zone, NR_SLAB_UNRECLAIMABLE)),
+                       zone_page_state(zone, NR_KERNEL_STACK) *
+                               THREAD_SIZE / 1024,
                        K(zone_page_state(zone, NR_PAGETABLE)),
                        K(zone_page_state(zone, NR_UNSTABLE_NFS)),
                        K(zone_page_state(zone, NR_BOUNCE)),