From 71d958095f2d301daa07f0a0870ef8bd5b3557b4 Mon Sep 17 00:00:00 2001 From: albert <> Date: Sun, 15 Dec 2002 06:30:04 +0000 Subject: [PATCH] just checking --- proc/sysinfo.c | 49 ++++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/proc/sysinfo.c b/proc/sysinfo.c index 4fe6eb8d..fd5bfe8a 100644 --- a/proc/sysinfo.c +++ b/proc/sysinfo.c @@ -436,29 +436,31 @@ static int compare_vm_table_structs(const void *a, const void *b){ return strcmp(((const vm_table_struct*)a)->name,((const vm_table_struct*)b)->name); } -unsigned vm_nr_dirty; -unsigned vm_nr_writeback; -unsigned vm_nr_pagecache; -unsigned vm_nr_page_table_pages; -unsigned vm_nr_reverse_maps; -unsigned vm_nr_mapped; -unsigned vm_nr_slab; -unsigned vm_pgpgin; -unsigned vm_pgpgout; -unsigned vm_pswpin; /* same as 1st num on /proc/stat swap line */ -unsigned vm_pswpout; /* same as 2nd num on /proc/stat swap line */ -unsigned vm_pgalloc; -unsigned vm_pgfree; -unsigned vm_pgactivate; -unsigned vm_pgdeactivate; -unsigned vm_pgfault; -unsigned vm_pgmajfault; -unsigned vm_pgscan; -unsigned vm_pgrefill; -unsigned vm_pgsteal; -unsigned vm_kswapd_steal; -unsigned vm_pageoutrun; -unsigned vm_allocstall; +unsigned vm_nr_dirty; // dirty writable pages +unsigned vm_nr_writeback; // pages under writeback +unsigned vm_nr_pagecache; // pages in pagecache +unsigned vm_nr_page_table_pages;// pages used for pagetables +unsigned vm_nr_reverse_maps; // includes PageDirect +unsigned vm_nr_mapped; // mapped into pagetables +unsigned vm_nr_slab; // in slab +unsigned vm_pgpgin; // disk reads (same as 1st num on /proc/stat page line) +unsigned vm_pgpgout; // disk writes (same as 2nd num on /proc/stat page line) +unsigned vm_pswpin; // swap reads (same as 1st num on /proc/stat swap line) +unsigned vm_pswpout; // swap writes (same as 2nd num on /proc/stat swap line) +unsigned vm_pgalloc; // page allocations +unsigned vm_pgfree; // page freeings +unsigned vm_pgactivate; // pages moved inactive -> active +unsigned vm_pgdeactivate; // pages moved active -> inactive +unsigned vm_pgfault; // total faults (major+minor) +unsigned vm_pgmajfault; // major faults +unsigned vm_pgscan; // pages scanned by page reclaim +unsigned vm_pgrefill; // inspected by refill_inactive_zone +unsigned vm_pgsteal; // total pages reclaimed +unsigned vm_kswapd_steal; // pages reclaimed by kswapd +// next 3 as defined by the 2.5.52 kernel +unsigned vm_pageoutrun; // times kswapd ran page reclaim +unsigned vm_allocstall; // times a page allocator ran direct reclaim +unsigned vm_pgrotated; // pages rotated to the tail of the LRU for immediate reclaim void vminfo(void){ char namebuf[16]; /* big enough to hold any row name */ @@ -486,6 +488,7 @@ void vminfo(void){ {"pgpgin", &vm_pgpgin}, {"pgpgout", &vm_pgpgout}, {"pgrefill", &vm_pgrefill}, + {"pgrotated", &vm_pgrotated}, {"pgscan", &vm_pgscan}, {"pgsteal", &vm_pgsteal}, {"pswpin", &vm_pswpin},