Re: [RFC v2 PATCH] mm: vmscan: do not iterate all mem cgroups for global direct reclaim

2019-01-30 Thread Michal Hocko
On Wed 30-01-19 06:11:17, Yang Shi wrote: > In current implementation, both kswapd and direct reclaim has to iterate > all mem cgroups. It is not a problem before offline mem cgroups could > be iterated. But, currently with iterating offline mem cgroups, it > could be very time consuming. In

Re: [RFC v2 PATCH] mm: vmscan: do not iterate all mem cgroups for global direct reclaim

2019-01-29 Thread Johannes Weiner
On Wed, Jan 30, 2019 at 06:11:17AM +0800, Yang Shi wrote: > In current implementation, both kswapd and direct reclaim has to iterate > all mem cgroups. It is not a problem before offline mem cgroups could > be iterated. But, currently with iterating offline mem cgroups, it > could be very time

[RFC v2 PATCH] mm: vmscan: do not iterate all mem cgroups for global direct reclaim

2019-01-29 Thread Yang Shi
In current implementation, both kswapd and direct reclaim has to iterate all mem cgroups. It is not a problem before offline mem cgroups could be iterated. But, currently with iterating offline mem cgroups, it could be very time consuming. In our workloads, we saw over 400K mem cgroups