Re: [RFC PATCH 2/2] mm: drain memcg stocks on css offlining

2018-08-15 Thread Michal Hocko
On Tue 14-08-18 17:36:20, Roman Gushchin wrote: > Memcg charge is batched using per-cpu stocks, so an offline memcg > can be pinned by a cached charge up to a moment, when a process > belonging to some other cgroup will charge some memory on the same > cpu. In other words, cached charges can preven

Re: [RFC PATCH 2/2] mm: drain memcg stocks on css offlining

2018-08-14 Thread Shakeel Butt
On Tue, Aug 14, 2018 at 5:36 PM Roman Gushchin wrote: > > Memcg charge is batched using per-cpu stocks, so an offline memcg > can be pinned by a cached charge up to a moment, when a process > belonging to some other cgroup will charge some memory on the same > cpu. In other words, cached charges c

[RFC PATCH 2/2] mm: drain memcg stocks on css offlining

2018-08-14 Thread Roman Gushchin
Memcg charge is batched using per-cpu stocks, so an offline memcg can be pinned by a cached charge up to a moment, when a process belonging to some other cgroup will charge some memory on the same cpu. In other words, cached charges can prevent a memory cgroup from being reclaimed for some time, wi