Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6267488imu; Wed, 30 Jan 2019 11:40:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN76pRYlCURZHbqY5z2DrrbXV7y/eFm2/5Z/E7soYu3WAf6BKuLbWoxOTPYOa27gj1KLfyPC X-Received: by 2002:a65:5c4b:: with SMTP id v11mr28660381pgr.333.1548877203569; Wed, 30 Jan 2019 11:40:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548877203; cv=none; d=google.com; s=arc-20160816; b=cH4eeNLdiKLkQlI3PKtsajA9ITI7k0kY9k8KyIV8d2MiEBIjzwatyAoWfB2t72IQQn 4kqckOtC2ZFQIE0BcYzB1aN0kBZfgKi/27qFfB87wt4fHTL/t2V6I6D735zs5mTCNngd WWTlJqpauBV2DcOLgKa0rLYuEdPwVlzyrvSFGr26E0IeVq+Rn5tdx1hL6QO09pn96MGa oUiaw4kD/TRZkxPK+oOJnhbzJMPP5Dvh6VEjxgH0qoz694BYER7mzB1ETHQVHnIQGzsS tY779XjGy2ZiOLFekpYBqW/cr/p7/kehaUzejQ3DmmLDXvM27RRyH/TttKrSHwcZb7vG zBwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ynztbY1mL0CpFlAEvrgll//q6zMLgn4eN+pIRdt4AAk=; b=ssOa6/J0O8DBX8DpuUI2T1nMTj586LY5r4rN+Gi7S4icl5nfhe26XftRg10mw/kTSh /cBJC0QdmWXjjDeLdwdG7wD/9dmgGJ+Z9sW9wdFWD8o7+mMGrXDT6madSFDbF/57IwxG htEOSkQtwJtIuP0sxRAHfYLn4ZaZ5MnbMq10cEmUtcKlp4lHStW9eEJM50FTvuFhvpjt mikoE+VElIs76283LbqkLasNawOz/QwlF5wLDWNubltC5XzIMYXluQcmKg+cqutnBN6F XiOdElrA/EEDX0VjwMmeGBqkaSfeN8qswi1KORBEoPf4pBGXdd54elvYRhDpYEV1VEfw KEGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hEKKgLcC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si2126998plt.356.2019.01.30.11.39.47; Wed, 30 Jan 2019 11:40:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hEKKgLcC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387696AbfA3Thz (ORCPT + 99 others); Wed, 30 Jan 2019 14:37:55 -0500 Received: from mail-yb1-f194.google.com ([209.85.219.194]:39956 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387654AbfA3Thy (ORCPT ); Wed, 30 Jan 2019 14:37:54 -0500 Received: by mail-yb1-f194.google.com with SMTP id y13so301379ybr.7 for ; Wed, 30 Jan 2019 11:37:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ynztbY1mL0CpFlAEvrgll//q6zMLgn4eN+pIRdt4AAk=; b=hEKKgLcCzb2TF8FQN9P2G70rLcqxOf+LMks/+bF+A75PISRGD8IJ9dC5LM2uk05Xwq 55VsBJhulcECv3kpovgOaIni5zJcPfJUS59855DCJ7ExDIP5ewLYj3ZjEVsiCG6PTEPM Zqiv5d0Kub8BDoQ50wztXVuUhutgHbqGzcZzom1m9me6gBYX7Vl5RrUWDnYxTiznNLZs gSZPPN52kSVg6gWY1zJ5H1OUEUDHNjAOiFC+pL2T/p3giL4aVbqLAjXkrufL5hGaOC6Z tlCSEkC13nHm6KoldXcMhad4Ey3Nrts77/IJMgMhS0kiTkyCLuCCX209hI2fh1TRz8xD uO7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ynztbY1mL0CpFlAEvrgll//q6zMLgn4eN+pIRdt4AAk=; b=Wtf89BX/eyX7ykexIZ3Au3Kcn4Vou38Coa5MqOdWM3OYQkH6N+9lR1B3LXpILKD48v 7cl6MzHz7Z90ubsePGCf4TkohVMF/9Zr50pvvdu/gQpAYof+uCyons/YSbFFBkQKn70K 48OVOiGeVN+XD/BW4zDJYSMVBijHiZO1ysmDkyy2G/36/ZVfiUawjR8fFpfqPu8kjyHJ oQZU+Uuw+U+oA+S7jM3Ye6/RDUx3AIMExkXXWuEPeS8zqfNLQsUU9HPksobrYNvBZxeG xXeIPTOsYEM3KEkH2bq6+z3KQ30Ws//GSflxoUMgjGgSEapCdPvz1pr03MBRNW5liZBy x8EQ== X-Gm-Message-State: AJcUukfzWhBXSimmUV4d8kWRU4RsHp0qJO9q3bqQ/s3Le3Yco+vg9WbG 6IinGw8T49B7QPyZ5DhKx2Zkn2jCDkvYTKR09XHYzg== X-Received: by 2002:a25:6f8b:: with SMTP id k133mr29688224ybc.496.1548877073376; Wed, 30 Jan 2019 11:37:53 -0800 (PST) MIME-Version: 1.0 References: <20190128151859.GO18811@dhcp22.suse.cz> <20190128154150.GQ50184@devbig004.ftw2.facebook.com> <20190128170526.GQ18811@dhcp22.suse.cz> <20190128174905.GU50184@devbig004.ftw2.facebook.com> <20190129144306.GO18811@dhcp22.suse.cz> <20190129145240.GX50184@devbig004.ftw2.facebook.com> <20190130165058.GA18811@dhcp22.suse.cz> <20190130170658.GY50184@devbig004.ftw2.facebook.com> <20190130192712.GA21279@cmpxchg.org> <20190130193026.GA21410@cmpxchg.org> In-Reply-To: <20190130193026.GA21410@cmpxchg.org> From: Shakeel Butt Date: Wed, 30 Jan 2019 11:37:41 -0800 Message-ID: Subject: Re: [PATCH 2/2] mm: Consider subtrees in memory.events To: Johannes Weiner Cc: Tejun Heo , Michal Hocko , Chris Down , Andrew Morton , Roman Gushchin , Dennis Zhou , LKML , Cgroups , Linux MM , kernel-team@fb.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 30, 2019 at 11:30 AM Johannes Weiner wrote: > > On Wed, Jan 30, 2019 at 02:27:12PM -0500, Johannes Weiner wrote: > > On Wed, Jan 30, 2019 at 11:11:44AM -0800, Shakeel Butt wrote: > > > Hi Tejun, > > > > > > On Wed, Jan 30, 2019 at 9:07 AM Tejun Heo wrote: > > > > > > > > Hello, Michal. > > > > > > > > On Wed, Jan 30, 2019 at 05:50:58PM +0100, Michal Hocko wrote: > > > > > > Yeah, cgroup.events and .stat files as some of the local stats would > > > > > > be useful too, so if we don't flip memory.events we'll end up with sth > > > > > > like cgroup.events.local, memory.events.tree and memory.stats.local, > > > > > > which is gonna be hilarious. > > > > > > > > > > Why cannot we simply have memory.events_tree and be done with it? Sure > > > > > the file names are not goin to be consistent which is a minus but that > > > > > ship has already sailed some time ago. > > > > > > > > Because the overall cost of shitty interface will be way higher in the > > > > longer term. cgroup2 interface is far from perfect but is way better > > > > than cgroup1 especially for the memory controller. Why do you think > > > > that is? > > > > > > > > > > I thought you are fine with the separate interface for the hierarchical events. > > > > Every other file in cgroup2 is hierarchical, but for recursive > > memory.events you'd need to read memory.events_tree? > > > > Do we hate our users that much? :( > > FTR, I would be okay with adding .local versions to existing files > where such a behavior could be useful. But that seems to be a separate > discussion from fixing memory.events here. Oh ok, the dispute is on the name of the interface. I am fine with whatever the decision is made as we (Google) are still not using these interfaces. However what's the way forward here? thanks, Shakeel