mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm: vmstat: add pageoutclean
vmstat events currently count pgpgout, but that includes only the writebacks, and not the reclaim of clean pages. Add an event to count clean page evictions. This is helpful to evaluate page thrashing cases. Change-Id: Icfb797877a544a58c289074bdc290dfbc1384514 Signed-off-by: Vinayak Menon <[email protected]> Signed-off-by: Charan Teja Reddy <[email protected]> [[email protected]: Add Kconfig entry to prevent ABI breakages in GKI] Signed-off-by: Isaac J. Manjarres <[email protected]>
This commit is contained in:
parent
13879ddd57
commit
75258ab7ca
4 changed files with 35 additions and 3 deletions
12
init/Kconfig
12
init/Kconfig
|
|
@ -1779,6 +1779,18 @@ config VM_EVENT_COUNTERS
|
|||
on EXPERT systems. /proc/vmstat will only show page counts
|
||||
if VM event counters are disabled.
|
||||
|
||||
config VM_EVENT_COUNT_CLEAN_PAGE_RECLAIM
|
||||
bool "Track the number of clean pages reclaimed from the page cache"
|
||||
depends on VM_EVENT_COUNTERS
|
||||
help
|
||||
VM event counters currently maintain a count of the pages that
|
||||
get dropped from the page cache as a part of memory reclaim.
|
||||
However, this count only tracks the number of dirty pages that
|
||||
get dropped, and does not account for the clean pages that get
|
||||
dropped as well. Enable this to also account for the clean pages
|
||||
that get dropped as part of memory reclaim to get a more holistic
|
||||
view of what is happening during memory reclaim.
|
||||
|
||||
config SLUB_DEBUG
|
||||
default y
|
||||
bool "Enable SLUB debugging support" if EXPERT
|
||||
|
|
|
|||
Loading…
Reference in a new issue