Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6259111imu; Wed, 30 Jan 2019 11:31:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN64aTQuXeVaFPPqo+zBnKVYjl9Yb1BFDKb0/T8UL4YH0G0P+9ddv9Ou6fYayF6h+HHv8GgT X-Received: by 2002:a17:902:9006:: with SMTP id a6mr31179521plp.334.1548876662203; Wed, 30 Jan 2019 11:31:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548876662; cv=none; d=google.com; s=arc-20160816; b=nW9I28vaaMw2FgnOFL/6YZRK0GUv9VFL7MCJ4UodYrjdHqfeVJOMDg1MNp/dR2TYLd fGz5IqkN+I4TS+kYnjKXn975RD2x0dNwaRIWGEj4j8N2zJ+rcOms4OEqdor00ZfZYi+N 1yPxQsCkMiVnXqd4/T0gsNEzCjpX/Qlh4IIALovfC23VIIg/HVXe9xaLAhlyEtZz6LRr tiopNEzqklS8wyHXDcaGJD1V4A5pIlXW6IQXPKRDtBf/gxc6km71DdoT0nqAT/FoMAYG tzarV2mYvBNQsBFGbFAz5SoBKj1ikNs07GBm6SgpuzhSA8xTCUaeEazv/UPRPu2htIm0 Bexw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u4lGJa1eqm311IjOZIxyEEk5pH4RS2fwSIKRlT/c2bc=; b=g0HYi4u5jQa3ofCuksYYXzdxPwLbJ6Ace7H7qwqedpOxbBUNIbVhZGuSGilpe+8yOF UJiCVe21GO0gfMHSR71nJ8ne61Ji1NmntvqFgdCw25/wY/VZaY9gVZbtYOQM5yNgjDqW UF/l32s6eu1ItBu8zAsvL5JKCYQH7bfRKwUulI4fQmwQPl2FfiK7MerP9uhFTzvLTy53 R8UevwzpL0KxLad7sCgLm32crfYpxkflSzvYTr6frsJ7vr6D89MOAqDbbrpVVGb43YHH IWAojUEJu9eUKT9D/ZoJ58DYq67PYtkiGU+n4El+M3QSHcaNmiCqKDBd9Asu6s/a8+X1 FHeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=MBC71ieo; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s80si2230122pfa.130.2019.01.30.11.30.46; Wed, 30 Jan 2019 11:31:02 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=MBC71ieo; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387621AbfA3Tae (ORCPT + 99 others); Wed, 30 Jan 2019 14:30:34 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:33013 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387575AbfA3Tae (ORCPT ); Wed, 30 Jan 2019 14:30:34 -0500 Received: by mail-yb1-f196.google.com with SMTP id m132so316244ybf.0 for ; Wed, 30 Jan 2019 11:30:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=u4lGJa1eqm311IjOZIxyEEk5pH4RS2fwSIKRlT/c2bc=; b=MBC71ieoROyzpJYMm/RoM48yebOSHThzuo7d3oPiagXJfjLAD5AOCg12b0GXqJMHgo byQdg6fKygYXahH3gh70/beX8rcnd9A2w876UhzSUZRp1EC54kTTM02cUEIHzQF34GZP 9/ViuRdoaByPgSw4yx6n4p8Dlns+T5Pw4L87bee6Hw8nuxjJXB+l8mHHb+lYM9bSEsYh p5FehOxBq3izQVdqa3zLxdA2sCUSafZvMUY7D91qtNGspuKGT1tm/XhwTSyKShEMwbNq n0dQ3h57xSEY0s45uLv7teLyVuciOaDK0y8LFHR9WeANLuoFKihiVwRYKw4TT3+TpzQm g2Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=u4lGJa1eqm311IjOZIxyEEk5pH4RS2fwSIKRlT/c2bc=; b=R7H73/HSX7C3lfnNK56M2aT5jd8wn4e6xWCwY/boNZaUb0I5It/Rg0EiyKG4ivNb57 mcigafHUXoohdV0FQ1bApf5TpCEhMiHzRAi/dFU7G0YgjBZeJ0JR3rUIAFojZkcKiup+ aAI8Btp3rQiXXCffslmv1iiUGqisVdxg/ydchjPjE20z3Iv4JQZja0ksaBO9FO5dj57r iMJ4VG5dKcFE1bhWXHCJNommbDB0kVvnynIgZXuxT1wbUn/gs8wQzs/QfNzSJfO8pyMQ 0IOJ/vKSRAx3JRCgpWoLtBlYFpKTOl6GW3grhfcX3L3/5GEhT7EuNDuJV5tYTbBNT1fw uX3Q== X-Gm-Message-State: AJcUukfHNyY3L+CeryC0voVseGUhfnvT1r9Ik0NEphCHQ5SlHdS18a03 YgCBUrbPPlUkD3qeoVAOO8C4tg== X-Received: by 2002:a25:9001:: with SMTP id s1mr29449505ybl.493.1548876628452; Wed, 30 Jan 2019 11:30:28 -0800 (PST) Received: from localhost ([2620:10d:c091:200::5:6c95]) by smtp.gmail.com with ESMTPSA id c127sm789304ywb.67.2019.01.30.11.30.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 11:30:27 -0800 (PST) Date: Wed, 30 Jan 2019 14:30:26 -0500 From: Johannes Weiner To: Shakeel Butt Cc: Tejun Heo , Michal Hocko , Chris Down , Andrew Morton , Roman Gushchin , Dennis Zhou , LKML , Cgroups , Linux MM , kernel-team@fb.com Subject: Re: [PATCH 2/2] mm: Consider subtrees in memory.events Message-ID: <20190130193026.GA21410@cmpxchg.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190130192712.GA21279@cmpxchg.org> User-Agent: Mutt/1.11.2 (2019-01-07) 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 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.