From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f200.google.com (mail-qk0-f200.google.com [209.85.220.200]) by kanga.kvack.org (Postfix) with ESMTP id 1BF556B0038 for ; Tue, 19 Dec 2017 12:33:58 -0500 (EST) Received: by mail-qk0-f200.google.com with SMTP id b65so4070395qkc.5 for ; Tue, 19 Dec 2017 09:33:58 -0800 (PST) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id j184sor10133487qkc.47.2017.12.19.09.33.57 for (Google Transport Security); Tue, 19 Dec 2017 09:33:57 -0800 (PST) Date: Tue, 19 Dec 2017 09:33:54 -0800 From: Tejun Heo Subject: Re: [RFC PATCH] mm: memcontrol: memory+swap accounting for cgroup-v2 Message-ID: <20171219173354.GQ3919388@devbig577.frc2.facebook.com> References: <20171219000131.149170-1-shakeelb@google.com> <20171219124908.GS2787@dhcp22.suse.cz> <20171219152444.GP3919388@devbig577.frc2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Shakeel Butt Cc: Michal Hocko , Li Zefan , Roman Gushchin , Vladimir Davydov , Greg Thelen , Johannes Weiner , Hugh Dickins , Andrew Morton , Linux MM , LKML , Cgroups , linux-doc@vger.kernel.org Hello, On Tue, Dec 19, 2017 at 09:23:29AM -0800, Shakeel Butt wrote: > To provide consistent memory usage history using the current > cgroup-v2's 'swap' interface, an additional metric expressing the > intersection of memory and swap has to be exposed. Basically memsw is > the union of memory and swap. So, if that additional metric can be Exposing anonymous pages with swap backing sounds pretty trivial. > used to find the union. However for consistent memory limit > enforcement, I don't think there is an easy way to use current 'swap' > interface. Can you please go into details on why this is important? I get that you can't do it as easily w/o memsw but I don't understand why this is a critical feature. Why is that? Thanks. -- tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org