staging: android: lowmemkiller: Substantially reduce overhead during reclaim
authorSan Mehat <san@google.com>
Wed, 5 May 2010 18:38:42 +0000 (11:38 -0700)
committerSan Mehat <san@google.com>
Wed, 5 May 2010 19:11:41 +0000 (12:11 -0700)
commit3508951576473670d90e65562a9140d8dff93386
tree6727df269613212340058d2161bc0794a9f29b96
parent7bc14acfbb86b00a93ddb1c40d9d2050cd7188fe
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