staging: android: lowmemkiller: Substantially reduce overhead during reclaim
authorSan Mehat <san@google.com>
Wed, 5 May 2010 18:38:42 +0000 (11:38 -0700)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:30 +0000 (09:09 -0700)
commitf665be65af9d530812f7ce5bd1831e3a785e3db5
treebca2b5ce7883454723142949432024fb2125174c
parent076f80cb854992a6731e20058ddb0e2ba10220aa
staging: android: lowmemkiller: Substantially reduce overhead during reclaim

This patch optimizes lowmemkiller to not do any work when it has an outstanding
kill-request. This greatly reduces the pressure on the task_list lock
(improving interactivity), as well as improving the vmscan performance
when under heavy memory pressure (by up to 20x in tests).

Note: For this enhancement to work, you need CONFIG_PROFILING

Signed-off-by: San Mehat <san@google.com>
drivers/staging/android/lowmemorykiller.c