mm,vmacache: count number of system-wide flushes
Subsystems (2)
PATCH 1/1 mm,vmacache: count number of system-wide flushes
These flushes deal with sequence number overflows, such as for long lived threads. These are rare, but interesting from a debugging PoV. As such, display the number of flushes when vmacache debugging is enabled.
Signed-off-by Davidlohr Bueso <[email protected]>
--- include/linux/vm_event_item.h | 1 + mm/vmacache.c | 2 ++ mm/vmstat.c | 1 + 3 files changed, 4 insertions(+)
include/linux/vm_event_item.h +1 -0
@@ -90,6 +90,7 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT,#ifdef CONFIG_DEBUG_VM_VMACACHE VMACACHE_FIND_CALLS ,VMACACHE_FIND_HITS , +VMACACHE_FULL_FLUSHES , #endifNR_VM_EVENT_ITEMS };
mm/vmacache.c +2 -0
@@ -17,6 +17,8 @@ void vmacache_flush_all(struct mm_struct *mm) {struct task_struct *g, *p; +count_vm_vmacache_event (VMACACHE_FULL_FLUSHES ); +/* * Single threaded tasks need not iterate the entire * list of process. We can avoid the flushing as well
mm/vmstat.c +1 -0
@@ -898,6 +898,7 @@ const char * const vmstat_text[] = { #ifdef CONFIG_DEBUG_VM_VMACACHE "vmacache_find_calls", "vmacache_find_hits", + "vmacache_full_flushes", #endif #endif /* CONFIG_VM_EVENTS_COUNTERS */ };
Signature · 9 lines
1.8.4.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>