[PATCH] lowmemorykiller: Avoid excessive/redundant calling of LMK

2015-01-12 Thread Chintan Pandya
cycle waste. Fix that by giving excessively large batch size so that lowmem_shrink will be called just once and in the same try LMK does the needful. Signed-off-by: Chintan Pandya --- drivers/staging/android/lowmemorykiller.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a

Re: [PATCH] lowmemorykiller: Avoid excessive/redundant calling of LMK

2015-01-12 Thread Chintan Pandya
Please ignore this patch. My extreme bad that I merged commit messages applicable to some very old kernel into this patch. Updating shortly. On 01/12/2015 09:38 PM, Chintan Pandya wrote: The global shrinker will invoke lowmem_shrink in a loop. The loop will be run (total_scan_pages/batch_size

[PATCH] lowmemorykiller: Avoid excessive/redundant calling of LMK

2015-01-12 Thread Chintan Pandya
cycle waste. Fix that by returning to the shrinker with SHRINK_STOP when LMK doesn't find any more work to do. The deciding factor here is, no process found in the selected LMK bucket or memory conditions are sane. Signed-off-by: Chintan Pandya --- drivers/staging/android/lowmemorykiller.