Re: [PATCH] mm: fix condition for throttle_direct_reclaim

2017-03-13 Thread Shakeel Butt
On Mon, Mar 13, 2017 at 12:58 PM, Johannes Weiner wrote: > Hi Shakeel, > > On Fri, Mar 10, 2017 at 11:46:20AM -0800, Shakeel Butt wrote: >> Recently kswapd has been modified to give up after MAX_RECLAIM_RETRIES >> number of unsucessful iterations. Before going to sleep, kswapd thread >> will uncon

Re: [PATCH] mm: fix condition for throttle_direct_reclaim

2017-03-13 Thread Johannes Weiner
Hi Shakeel, On Fri, Mar 10, 2017 at 11:46:20AM -0800, Shakeel Butt wrote: > Recently kswapd has been modified to give up after MAX_RECLAIM_RETRIES > number of unsucessful iterations. Before going to sleep, kswapd thread > will unconditionally wakeup all threads sleeping on pfmemalloc_wait. > Howev

Re: [PATCH] mm: fix condition for throttle_direct_reclaim

2017-03-13 Thread Shakeel Butt
On Mon, Mar 13, 2017 at 8:46 AM, Michal Hocko wrote: > On Mon 13-03-17 08:07:15, Shakeel Butt wrote: >> On Mon, Mar 13, 2017 at 2:02 AM, Michal Hocko wrote: >> > On Fri 10-03-17 11:46:20, Shakeel Butt wrote: >> >> Recently kswapd has been modified to give up after MAX_RECLAIM_RETRIES >> >> number

Re: [PATCH] mm: fix condition for throttle_direct_reclaim

2017-03-13 Thread Michal Hocko
On Mon 13-03-17 08:07:15, Shakeel Butt wrote: > On Mon, Mar 13, 2017 at 2:02 AM, Michal Hocko wrote: > > On Fri 10-03-17 11:46:20, Shakeel Butt wrote: > >> Recently kswapd has been modified to give up after MAX_RECLAIM_RETRIES > >> number of unsucessful iterations. Before going to sleep, kswapd th

Re: [PATCH] mm: fix condition for throttle_direct_reclaim

2017-03-13 Thread Shakeel Butt
On Mon, Mar 13, 2017 at 2:02 AM, Michal Hocko wrote: > On Fri 10-03-17 11:46:20, Shakeel Butt wrote: >> Recently kswapd has been modified to give up after MAX_RECLAIM_RETRIES >> number of unsucessful iterations. Before going to sleep, kswapd thread >> will unconditionally wakeup all threads sleepi

Re: [PATCH] mm: fix condition for throttle_direct_reclaim

2017-03-13 Thread Michal Hocko
On Fri 10-03-17 11:46:20, Shakeel Butt wrote: > Recently kswapd has been modified to give up after MAX_RECLAIM_RETRIES > number of unsucessful iterations. Before going to sleep, kswapd thread > will unconditionally wakeup all threads sleeping on pfmemalloc_wait. > However the awoken threads will re

[PATCH] mm: fix condition for throttle_direct_reclaim

2017-03-10 Thread Shakeel Butt
Recently kswapd has been modified to give up after MAX_RECLAIM_RETRIES number of unsucessful iterations. Before going to sleep, kswapd thread will unconditionally wakeup all threads sleeping on pfmemalloc_wait. However the awoken threads will recheck the watermarks and wake the kswapd thread and sl