Re: [PATCH RFC] mm: reset pages_scanned only when free pages are above high watermark

2015-03-18 Thread Konstantin Khlebnikov
On 18.03.2015 16:48, Vlastimil Babka wrote: On 03/11/2015 07:30 PM, Konstantin Khlebnikov wrote: Technically, this counter works as OOM-countdown. Let's reset it only when zone is completely recovered and ready to handle any allocations. Otherwise system could never recover and stuck in

Re: [PATCH RFC] mm: reset pages_scanned only when free pages are above high watermark

2015-03-18 Thread Vlastimil Babka
On 03/11/2015 07:30 PM, Konstantin Khlebnikov wrote: Technically, this counter works as OOM-countdown. Let's reset it only when zone is completely recovered and ready to handle any allocations. Otherwise system could never recover and stuck in livelock. Signed-off-by: Konstantin Khlebnikov

Re: [PATCH RFC] mm: reset pages_scanned only when free pages are above high watermark

2015-03-18 Thread Vlastimil Babka
On 03/11/2015 07:30 PM, Konstantin Khlebnikov wrote: Technically, this counter works as OOM-countdown. Let's reset it only when zone is completely recovered and ready to handle any allocations. Otherwise system could never recover and stuck in livelock. Signed-off-by: Konstantin Khlebnikov

Re: [PATCH RFC] mm: reset pages_scanned only when free pages are above high watermark

2015-03-18 Thread Konstantin Khlebnikov
On 18.03.2015 16:48, Vlastimil Babka wrote: On 03/11/2015 07:30 PM, Konstantin Khlebnikov wrote: Technically, this counter works as OOM-countdown. Let's reset it only when zone is completely recovered and ready to handle any allocations. Otherwise system could never recover and stuck in

[PATCH RFC] mm: reset pages_scanned only when free pages are above high watermark

2015-03-11 Thread Konstantin Khlebnikov
Technically, this counter works as OOM-countdown. Let's reset it only when zone is completely recovered and ready to handle any allocations. Otherwise system could never recover and stuck in livelock. Signed-off-by: Konstantin Khlebnikov --- mm/page_alloc.c |6 -- 1 file changed, 4

[PATCH RFC] mm: reset pages_scanned only when free pages are above high watermark

2015-03-11 Thread Konstantin Khlebnikov
Technically, this counter works as OOM-countdown. Let's reset it only when zone is completely recovered and ready to handle any allocations. Otherwise system could never recover and stuck in livelock. Signed-off-by: Konstantin Khlebnikov khlebni...@yandex-team.ru --- mm/page_alloc.c |6