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>
Thu, 30 Sep 2010 00:49:34 +0000 (17:49 -0700)
commit28633d10f9a9a0b9c315d244f2402c53375f77db
tree77224ec257e00f85bc799502e7281afc5440f3f1
parent16483f51c75c493f3016c0c3681b354a9d58872f
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