OSDN Git Service

mm: vmscan: Add a debug file for shrinkers
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 12 Dec 2014 15:42:38 +0000 (23:42 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 13 Dec 2014 15:13:55 +0000 (23:13 +0800)
commit40ad193921468fd5415edbfc9eb541e6c6a5119a
tree8a68f8f9637912741f031ca8adb7f051ffa07879
parent60a6f6279c30d3683764ffcbb434a85413692f2a
mm: vmscan: Add a debug file for shrinkers

This patch adds a debugfs file called "shrinker" when read this calls
all the shrinkers in the system with nr_to_scan set to zero and prints
the result.  These results are the number of objects the shrinkers have
available and can thus be used an indication of the total memory
that would be availble to the system if a shrink occurred.

Change-Id: Ied0ee7caff3d2fc1cb4bb839aaafee81b5b0b143
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
mm/vmscan.c