Re: [PATCH] mm: avoid the unnecessary waiting when force empty a cgroup

2018-04-03 Thread Michal Hocko
.org; linux...@kvack.org; > > linux-kernel@vger.kernel.org > > 主题: Re: [PATCH] mm: avoid the unnecessary waiting when force empty a > > cgroup > > > > On Tue 03-04-18 15:12:09, Li RongQing wrote: > > > The number of writeback and dirty page can be read out from memcg, the

re: [PATCH] mm: avoid the unnecessary waiting when force empty a cgroup

2018-04-03 Thread Li,Rongqing
> -邮件原件- > 发件人: Michal Hocko [mailto:mho...@kernel.org] > 发送时间: 2018年4月3日 16:05 > 收件人: Li,Rongqing > 抄送: han...@cmpxchg.org; vdavydov@gmail.com; > cgro...@vger.kernel.org; linux...@kvack.org; > linux-kernel@vger.kernel.org > 主题: Re: [PATCH] mm: avoid the

Re: [PATCH] mm: avoid the unnecessary waiting when force empty a cgroup

2018-04-03 Thread Michal Hocko
On Tue 03-04-18 15:12:09, Li RongQing wrote: > The number of writeback and dirty page can be read out from memcg, > the unnecessary waiting can be avoided by these counts This changelog doesn't explain the problem and how the patch fixes it. Why do wee another throttling when we do already throttl

[PATCH] mm: avoid the unnecessary waiting when force empty a cgroup

2018-04-03 Thread Li RongQing
The number of writeback and dirty page can be read out from memcg, the unnecessary waiting can be avoided by these counts Signed-off-by: Li RongQing --- mm/memcontrol.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 9ec024b862a