From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Hocko Subject: Re: memcg Can't context between v1 and v2 because css->refcnt not released Date: Thu, 10 Aug 2017 10:19:21 +0200 Message-ID: <20170810081920.GG23863@dhcp22.suse.cz> References: <20170810071059.GC23863@dhcp22.suse.cz> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: wang Yu Cc: Johannes Weiner , Tejun Heo , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org [Please do not top-post] On Thu 10-08-17 16:10:45, wang Yu wrote: > at first ,thanks for your reply. > but i also tested what you said, the problem is also. > force_empty only call try_to_free_pages, not all the pages remove > because mem_cgroup_reparent_charges moved Right. An alternative would be dropping the page cache globaly via /proc/sys/vm/drop_caches. Not an ideal solution but it should help. -- Michal Hocko SUSE Labs