staging: android: lowmemkiller: Substantially reduce overhead during reclaim
authorSan Mehat <san@google.com>
Wed, 5 May 2010 18:38:42 +0000 (11:38 -0700)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 25 Apr 2012 22:23:30 +0000 (01:23 +0300)
commit88df4ffa5932ed9b019792b22c3f074d2261fca4
tree896f7bfa9437028feb6e8cff424a2f71ebd18dd5
parent60798570ce10cd5b56ed382af1e118c72f77487c
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/android/lowmemorykiller.c