mm,vmacache: add debug data
Introduce a CONFIG_DEBUG_VM_VMACACHE option to enable counting the cache hit rate -- exported in /proc/vmstat. Any updates to the caching scheme needs this kind of data, thus it can save some work re-implementing the counting all the time. Signed-off-by:Davidlohr Bueso <davidlohr@hp.com> Cc: Aswin Chandramouleeswaran <aswin@hp.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- include/linux/vm_event_item.h 4 additions, 0 deletionsinclude/linux/vm_event_item.h
- include/linux/vmstat.h 6 additions, 0 deletionsinclude/linux/vmstat.h
- lib/Kconfig.debug 10 additions, 0 deletionslib/Kconfig.debug
- mm/vmacache.c 10 additions, 2 deletionsmm/vmacache.c
- mm/vmstat.c 4 additions, 0 deletionsmm/vmstat.c
Loading
Please register or sign in to comment