Re: [PATCH v2] mm: terminate the reclaim early when direct reclaiming

2018-07-31 Thread Johannes Weiner
On Tue, Jul 31, 2018 at 07:09:28PM +0800, Zhaoyang Huang wrote: > This patch try to let the direct reclaim finish earlier than it used > to be. The problem comes from We observing that the direct reclaim > took a long time to finish when memcg is enabled. By debugging, we > find that the reason is

Re: [PATCH v2] mm: terminate the reclaim early when direct reclaiming

2018-07-31 Thread Michal Hocko
On Tue 31-07-18 19:58:20, Zhaoyang Huang wrote: > On Tue, Jul 31, 2018 at 7:19 PM Michal Hocko wrote: > > > > On Tue 31-07-18 19:09:28, Zhaoyang Huang wrote: > > > This patch try to let the direct reclaim finish earlier than it used > > > to be. The problem comes from We observing that the direct

Re: [PATCH v2] mm: terminate the reclaim early when direct reclaiming

2018-07-31 Thread Zhaoyang Huang
On Tue, Jul 31, 2018 at 7:19 PM Michal Hocko wrote: > > On Tue 31-07-18 19:09:28, Zhaoyang Huang wrote: > > This patch try to let the direct reclaim finish earlier than it used > > to be. The problem comes from We observing that the direct reclaim > > took a long time to finish when memcg is enabl

Re: [PATCH v2] mm: terminate the reclaim early when direct reclaiming

2018-07-31 Thread Michal Hocko
On Tue 31-07-18 19:09:28, Zhaoyang Huang wrote: > This patch try to let the direct reclaim finish earlier than it used > to be. The problem comes from We observing that the direct reclaim > took a long time to finish when memcg is enabled. By debugging, we > find that the reason is the softlimit is

[PATCH v2] mm: terminate the reclaim early when direct reclaiming

2018-07-31 Thread Zhaoyang Huang
This patch try to let the direct reclaim finish earlier than it used to be. The problem comes from We observing that the direct reclaim took a long time to finish when memcg is enabled. By debugging, we find that the reason is the softlimit is too low to meet the loop end criteria. So we add two ba