From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751562AbdLSPYv (ORCPT ); Tue, 19 Dec 2017 10:24:51 -0500 Received: from mail-qt0-f182.google.com ([209.85.216.182]:39334 "EHLO mail-qt0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750801AbdLSPYr (ORCPT ); Tue, 19 Dec 2017 10:24:47 -0500 X-Google-Smtp-Source: ACJfBosIQi4sS/cZqjy0VhPnsZga6f8uDfsePK+rm5PY6NmzAArUUXOinDYmHrbOWm0AXHk34ULAfw== Date: Tue, 19 Dec 2017 07:24:44 -0800 From: Tejun Heo 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 Subject: Re: [RFC PATCH] mm: memcontrol: memory+swap accounting for cgroup-v2 Message-ID: <20171219152444.GP3919388@devbig577.frc2.facebook.com> References: <20171219000131.149170-1-shakeelb@google.com> <20171219124908.GS2787@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, Dec 19, 2017 at 07:12:19AM -0800, Shakeel Butt wrote: > Yes, there are pros & cons, therefore we should give users the option > to select the API that is better suited for their use-cases and Heh, that's not how API decisions should be made. The long term outcome would be really really bad. > environment. Both approaches are not interchangeable. We use memsw > internally for use-cases I mentioned in commit message. This is one of > the main blockers for us to even consider cgroup-v2 for memory > controller. Let's concentrate on the use case. I couldn't quite understand what was missing from your description. You said that it'd make things easier for the centralized monitoring system which isn't really a description of a use case. Can you please go into more details focusing on the eventual goals (rather than what's currently implemented)? Thanks. -- tejun