aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorLee Schermerhorn <Lee.Schermerhorn@hp.com>2008-10-18 23:26:40 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-20 11:50:26 -0400
commit7b854121eb3e5ba0241882ff939e2c485228c9c5 (patch)
treee553bc3b3c2be3b36cfcce5219b2ef85646ea495 /mm/page_alloc.c
parentbbfd28eee9fbd73e780b19beb3dc562befbb94fa (diff)
Unevictable LRU Page Statistics
Report unevictable pages per zone and system wide. Kosaki Motohiro added support for memory controller unevictable statistics. [riel@redhat.com: fix printk in show_free_areas()] [akpm@linux-foundation.org: fix units in /proc/vmstats] Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com> Signed-off-by: Rik van Riel <riel@redhat.com> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Debugged-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.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.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 79c0981b1d32..4125230a1b2c 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1864,13 +1864,21 @@ void show_free_areas(void)
1864 } 1864 }
1865 } 1865 }
1866 1866
1867 printk("Active_anon:%lu active_file:%lu inactive_anon%lu\n" 1867 printk("Active_anon:%lu active_file:%lu inactive_anon:%lu\n"
1868 " inactive_file:%lu dirty:%lu writeback:%lu unstable:%lu\n" 1868 " inactive_file:%lu"
1869//TODO: check/adjust line lengths
1870#ifdef CONFIG_UNEVICTABLE_LRU
1871 " unevictable:%lu"
1872#endif
1873 " dirty:%lu writeback:%lu unstable:%lu\n"
1869 " free:%lu slab:%lu mapped:%lu pagetables:%lu bounce:%lu\n", 1874 " free:%lu slab:%lu mapped:%lu pagetables:%lu bounce:%lu\n",
1870 global_page_state(NR_ACTIVE_ANON), 1875 global_page_state(NR_ACTIVE_ANON),
1871 global_page_state(NR_ACTIVE_FILE), 1876 global_page_state(NR_ACTIVE_FILE),
1872 global_page_state(NR_INACTIVE_ANON), 1877 global_page_state(NR_INACTIVE_ANON),
1873 global_page_state(NR_INACTIVE_FILE), 1878 global_page_state(NR_INACTIVE_FILE),
1879#ifdef CONFIG_UNEVICTABLE_LRU
1880 global_page_state(NR_UNEVICTABLE),
1881#endif
1874 global_page_state(NR_FILE_DIRTY), 1882 global_page_state(NR_FILE_DIRTY),
1875 global_page_state(NR_WRITEBACK), 1883 global_page_state(NR_WRITEBACK),
1876 global_page_state(NR_UNSTABLE_NFS), 1884 global_page_state(NR_UNSTABLE_NFS),
@@ -1897,6 +1905,9 @@ void show_free_areas(void)
1897 " inactive_anon:%lukB" 1905 " inactive_anon:%lukB"
1898 " active_file:%lukB" 1906 " active_file:%lukB"
1899 " inactive_file:%lukB" 1907 " inactive_file:%lukB"
1908#ifdef CONFIG_UNEVICTABLE_LRU
1909 " unevictable:%lukB"
1910#endif
1900 " present:%lukB" 1911 " present:%lukB"
1901 " pages_scanned:%lu" 1912 " pages_scanned:%lu"
1902 " all_unreclaimable? %s" 1913 " all_unreclaimable? %s"
@@ -1910,6 +1921,9 @@ void show_free_areas(void)
1910 K(zone_page_state(zone, NR_INACTIVE_ANON)), 1921 K(zone_page_state(zone, NR_INACTIVE_ANON)),
1911 K(zone_page_state(zone, NR_ACTIVE_FILE)), 1922 K(zone_page_state(zone, NR_ACTIVE_FILE)),
1912 K(zone_page_state(zone, NR_INACTIVE_FILE)), 1923 K(zone_page_state(zone, NR_INACTIVE_FILE)),
1924#ifdef CONFIG_UNEVICTABLE_LRU
1925 K(zone_page_state(zone, NR_UNEVICTABLE)),
1926#endif
1913 K(zone->present_pages), 1927 K(zone->present_pages),
1914 zone->pages_scanned, 1928 zone->pages_scanned,
1915 (zone_is_all_unreclaimable(zone) ? "yes" : "no") 1929 (zone_is_all_unreclaimable(zone) ? "yes" : "no")