Re: [PATCH v5] mm/vmscan: more restrictive condition for retry in do_try_to_free_pages

2017-03-22 Thread Michal Hocko
On Wed 22-03-17 22:11:33, Yisheng Xie wrote: > From: Yisheng Xie > > By reviewing code, I find that when enter do_try_to_free_pages, the > may_thrash is always clear, and it will retry shrink zones to tap > cgroup's reserves memory by setting may_thrash when the former > shrink_zones reclaim noth

Re: [PATCH v5] mm/vmscan: more restrictive condition for retry in do_try_to_free_pages

2017-03-22 Thread Johannes Weiner
On Wed, Mar 22, 2017 at 10:11:33PM +0800, Yisheng Xie wrote: > From: Yisheng Xie > > By reviewing code, I find that when enter do_try_to_free_pages, the > may_thrash is always clear, and it will retry shrink zones to tap > cgroup's reserves memory by setting may_thrash when the former > shrink_zo

[PATCH v5] mm/vmscan: more restrictive condition for retry in do_try_to_free_pages

2017-03-22 Thread Yisheng Xie
From: Yisheng Xie By reviewing code, I find that when enter do_try_to_free_pages, the may_thrash is always clear, and it will retry shrink zones to tap cgroup's reserves memory by setting may_thrash when the former shrink_zones reclaim nothing. However, when memcg is disabled or on legacy hierar