Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6257170imu; Wed, 30 Jan 2019 11:29:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN6YyTU4ULcHXi4kBIN75ajLOLRUR3BIwR1g4elYD/nNF7vEOGoxude7N2yErNa9zZ9O1y4m X-Received: by 2002:a63:c848:: with SMTP id l8mr28388044pgi.78.1548876544853; Wed, 30 Jan 2019 11:29:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548876544; cv=none; d=google.com; s=arc-20160816; b=nFI8mLtfzSZT77swdX5NxvasIiD4XjGADcWz4nPlzA/sm16AhKsmc4LkqY15Bws8Mo +9S4vnreJnaigWvpx2g1U6zWacdgzHDEgPyZZ7eJfh/ciTl5sXSLrQBIhi+zV4vlac9m a3ITEX5BzscHhMqP2rui1e4xEd8yjGW8b3TlCdEQj+VpoP5YjpTR1eh62gT/3UdmLd9f f3oClCv3AiTCGfKwwYoDFuFBI25VDnm9wotRHBQ9+L4WBjL8qU4dnTyZeSwEpUM/X0e7 5+z+IOVYqG9LDnQenMLCvcvdjYV925EFZ3fkbY5rk+fhx/AM/ccHDmkitjR/iwjSl9X6 cIFw== 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=lCaOFzEC9GUOriuVkX8NdFG1tjkodE5DqXV/LschmsI=; b=E70eZGf5f9thxPklwHEQSfV/bFmHzXDwv0B8+02y/BGHlpVbF0b91Z2VKdGO2Zc3e9 flzjDLe6MhFTsKHbYD+laWjOuEsdQ26sgya0t6nGUKgllOhapzzn6PkCgd53nDATVLdM lGFB3KP5G0yPYwgYZMdgF3HkO770i2KMO4Qz0ojEDf8cT1TuC4PrQXj1hs/aC2+S125f D0H6YSUHs77YvauCu1l2BIfMzzgRg8n7nG+FcvLFLlzVVo9RHYx4PY8CjpCZi/CN8W4G my95290xAB/GswiGi/L1mUSt2zZyZr70VZIGyOJsmwACe/EHhsHTTV1UmA3nX1tZZEb1 iq1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=ZohvWTSu; 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 v5si2204505plg.318.2019.01.30.11.28.48; Wed, 30 Jan 2019 11:29:04 -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=ZohvWTSu; 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 S2387634AbfA3T1P (ORCPT + 99 others); Wed, 30 Jan 2019 14:27:15 -0500 Received: from mail-yb1-f181.google.com ([209.85.219.181]:40448 "EHLO mail-yb1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727114AbfA3T1P (ORCPT ); Wed, 30 Jan 2019 14:27:15 -0500 Received: by mail-yb1-f181.google.com with SMTP id y13so287038ybr.7 for ; Wed, 30 Jan 2019 11:27:14 -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=lCaOFzEC9GUOriuVkX8NdFG1tjkodE5DqXV/LschmsI=; b=ZohvWTSuJ0FjLHNrBU/NhCidpuP6uTp++17i5m8r0Y4BdXn5gysuarYBmwXmDnXh2E 5q1Zg6iKy575V4xaQ+3m+w3YaXK2epGUUWapRT4Qk1pYbJ8e24CWTlXowEvP0d0EY1gj VGdefopA01lh0af6fU5Lw/yDe5q6HouSDwamc8EyJLf8rHD0F+4MvHD+Rji3pspKlXkr R6EGixTm/VAe72WpuMNrIokMPUZJvqGh3qMbrMlYCi/rzPY0ozgqJnu4a8UmGQDrTYkI couibxZPlwtjEDeLQU1PlYXif1ZmmnuJtzPzfiRz4zqRA+irU0fT/tlOc4Upb6sHSWXJ 0PAw== 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=lCaOFzEC9GUOriuVkX8NdFG1tjkodE5DqXV/LschmsI=; b=Nw7+8v7yiJyQb7yRz16+apKhlz9mBwXBMKOelFr2GHD0JaM+WnF4tseolCBaOK0PZg sWiSx2NT7nE5S7P+Pfdi0v0QZizIxS67TxIR2G39mMYLZQTWSF/M2TTXBCp6iJ2crgAa oaDnO9/5yvcwTM+1h2U4h5b6sa1eLPXxtqZuCjTwHIl3jzE+CqiOsD5pBvi0XV3q1COO gn2LGzx/9Te0LKD4jZsyM7ehn5jJZbH97fCUQwy+OyAevtIrdxnDT2FyiTksYdJV0mvK mBiNhdJfi0O8G+aRrV1PcviP0VCEgFZhyEx7oe6YduBoFDDkoDKfSGr7bGC3nyZGYj16 5J6Q== X-Gm-Message-State: AJcUukdh66oRaV58Yakm8xiTUO9yJWG3fvRbxudNyFtSCC/Hl0LAACrR KVshO0Xi1RxgECxvu5ZUvkXLKA== X-Received: by 2002:a25:5e03:: with SMTP id s3mr29744932ybb.8.1548876433952; Wed, 30 Jan 2019 11:27:13 -0800 (PST) Received: from localhost ([2620:10d:c091:200::5:6c95]) by smtp.gmail.com with ESMTPSA id k83sm781960ywe.90.2019.01.30.11.27.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 11:27:13 -0800 (PST) Date: Wed, 30 Jan 2019 14:27:12 -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: <20190130192712.GA21279@cmpxchg.org> References: <20190128145407.GP50184@devbig004.ftw2.facebook.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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? :(