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

2015-01-29 Thread Rom Lemarchand
On Thu, Jan 29, 2015 at 4:44 PM, John Stultz wrote: > On Thu, Jan 15, 2015 at 9:03 AM, Michal Hocko wrote: >> On Mon 12-01-15 21:49:14, Chintan Pandya wrote: >>> The global shrinker will invoke lowmem_shrink in a loop. >>> The loop will be run (total_scan_pages/batch_size) times. >>> The default

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

2015-01-29 Thread John Stultz
On Thu, Jan 15, 2015 at 9:03 AM, Michal Hocko wrote: > On Mon 12-01-15 21:49:14, Chintan Pandya wrote: >> The global shrinker will invoke lowmem_shrink in a loop. >> The loop will be run (total_scan_pages/batch_size) times. >> The default batch_size will be 128 which will make >> shrinker invoking

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

2015-01-15 Thread Michal Hocko
On Mon 12-01-15 21:49:14, Chintan Pandya wrote: > The global shrinker will invoke lowmem_shrink in a loop. > The loop will be run (total_scan_pages/batch_size) times. > The default batch_size will be 128 which will make > shrinker invoking 100s of times. LMK does meaningful > work only during first

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

2015-01-12 Thread Chintan Pandya
The global shrinker will invoke lowmem_shrink in a loop. The loop will be run (total_scan_pages/batch_size) times. The default batch_size will be 128 which will make shrinker invoking 100s of times. LMK does meaningful work only during first 2-3 times and then rest of the invocations are just CPU c

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
The global shrinker will invoke lowmem_shrink in a loop. The loop will be run (total_scan_pages/batch_size) times. The default batch_size will be 128 which will make shrinker invoking 100s of times. LMK does meaningful work only during first 2-3 times and then rest of the invocations are just CPU c