lkml.org 
[lkml]   [2008]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] [5/13] Add mask allocator statistics to vmstat.[ch]
Date

They are a bit on the extensive side now, but I figured out more data
is better for now.

The actual counts are added in the new files.

Signed-off-by: Andi Kleen <ak@suse.de>

---
include/linux/vmstat.h | 4 ++++
mm/vmstat.c | 10 ++++++++++
2 files changed, 14 insertions(+)

Index: linux/include/linux/vmstat.h
===================================================================
--- linux.orig/include/linux/vmstat.h
+++ linux/include/linux/vmstat.h
@@ -37,6 +37,10 @@ enum vm_event_item { PGPGIN, PGPGOUT, PS
FOR_ALL_ZONES(PGSCAN_DIRECT),
PGINODESTEAL, SLABS_SCANNED, KSWAPD_STEAL, KSWAPD_INODESTEAL,
PAGEOUTRUN, ALLOCSTALL, PGROTATED,
+#ifdef CONFIG_MASK_ALLOC
+ MASK_ALLOC, MASK_FREE, MASK_BITMAP_SKIP, MASK_WAIT,
+ MASK_HIGHER, MASK_LOW_WASTE, MASK_HIGH_WASTE,
+#endif
NR_VM_EVENT_ITEMS
};

Index: linux/mm/vmstat.c
===================================================================
--- linux.orig/mm/vmstat.c
+++ linux/mm/vmstat.c
@@ -644,6 +644,16 @@ static const char * const vmstat_text[]
"allocstall",

"pgrotated",
+
+#ifdef CONFIG_MASK_ALLOC
+ "mask_alloc",
+ "mask_free",
+ "mask_bitmap_skip",
+ "mask_wait",
+ "mask_higher",
+ "mask_low_waste",
+ "mask_high_waste",
+#endif
#endif
};


\
 
 \ /
  Last update: 2008-03-07 10:13    [W:0.200 / U:1.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site