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)
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>

No differences found