Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6102863imu; Wed, 30 Jan 2019 08:51:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN7uJQPFD2xqegxfh0hcEkDt2W5CjizuFAroUP7bLo6TmttXEJMiju6yCTiANQXSHutRbDSO X-Received: by 2002:a63:1e17:: with SMTP id e23mr27864847pge.130.1548867098055; Wed, 30 Jan 2019 08:51:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548867098; cv=none; d=google.com; s=arc-20160816; b=jOp9CrjrJBLZVPSwa8q59v+otjafDRZdMA7NL0eXP40VEZ3lAcaspH1+MHfRjxn7Ra 5baElqDgeXLURfVw5Gp11ko0YCO0ybKRjyiJwgbHggsrdlyAB+2ObGrTX6fOIzxf3EYi IHMDPztywZLChg9EtdJEI2N2b9QwXMUyWIxaClO1XZjeLcBkdN3rUzOTadEbQNsszEVs 9WWm0qlEsUEM+SjaNloYYCVOSY5IkjfDSSvETOKp6+IbwR/hEO8vR/tk5gpBW8Yx6akD ydG7L9ovkIHxSfZumAWQCLEJEIUrSB2hzHX6vPat44fvc8bK2nam9AduoVF2tUfm84xt Q/zg== 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; bh=tEm0J8Kge1NuyJMhPil+sEZetfNfj46JhAJCex0yErI=; b=Z/XmCeCF2RzXTrYUfva80weIIxjssv4gZiQu5Xja4HgBTg7ku1mB332Qpwgsw5iwyU CUqvUzCUcAo7xwylBwtiOyWa7zPpBetaWoOGcs8dXWyrR34cXKVEV32mu3viJqN5w1n3 +xseEawEuFwHiYgvbHa3YNsPYR0qYokAjz6E7UE1NKNZKh17gYzEUzyL8kyfRILGIy4Q 5BhM7P2+G4QaG9KiaRjjFHhiUtuW74SMKUAB/Ev4iovPqiRQCjXKTbazj+Oau8K0gjsk F2FXCBOrjp1BjMt2SIvCMgfHr4KYN9feAeYoqBXKV7bLY7HWHzJUgbIsK5W7p9NOX3bC D/Sg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si1866012plt.44.2019.01.30.08.51.23; Wed, 30 Jan 2019 08:51:38 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732199AbfA3QvC (ORCPT + 99 others); Wed, 30 Jan 2019 11:51:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:34700 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728469AbfA3QvB (ORCPT ); Wed, 30 Jan 2019 11:51:01 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 42860AFCE; Wed, 30 Jan 2019 16:51:00 +0000 (UTC) Date: Wed, 30 Jan 2019 17:50:58 +0100 From: Michal Hocko To: Tejun Heo Cc: Johannes Weiner , Chris Down , Andrew Morton , Roman Gushchin , Dennis Zhou , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, kernel-team@fb.com Subject: Re: [PATCH 2/2] mm: Consider subtrees in memory.events Message-ID: <20190130165058.GA18811@dhcp22.suse.cz> References: <20190128125151.GI18811@dhcp22.suse.cz> <20190128142816.GM50184@devbig004.ftw2.facebook.com> <20190128145210.GM18811@dhcp22.suse.cz> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190129145240.GX50184@devbig004.ftw2.facebook.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 29-01-19 06:52:40, Tejun Heo wrote: > Hello, > > On Tue, Jan 29, 2019 at 03:43:06PM +0100, Michal Hocko wrote: > > All memcg events are represented non-hierarchical AFAICS > > memcg_memory_event() simply accounts at the level when it happens. Or do > > I miss something? Or are you talking about .events files for other > > controllers? > > 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. > If you aren't willing to change your mind, the only option seems to be > introducing a mount option to gate the flip and additions of local > files. Most likely, userspace will enable the option by default > everywhere, so the end result will be exactly the same but I guess > it'll better address your concern. How does the consumer of the API learns about the mount type? -- Michal Hocko SUSE Labs