staging: android: lowmemkiller: Substantially reduce overhead during reclaim
authorSan Mehat <san@google.com>
Wed, 5 May 2010 18:38:42 +0000 (11:38 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:05:20 +0000 (12:05 -0800)
commitcff3e596a521a3b87c3be9bf88cd3edd647311f6
tree0d5f34fc8065f4896508021c7296177612e7a222
parentdf15a8e92b7f0b36c9da17a9535e77bbd0221f7a
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