Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3552982imu; Mon, 28 Jan 2019 06:54:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN4zmOk/E4mLbF63mz5XMKLVy1Qt+qyybPXnh9ymVdchcQxTLqIQ2/GfQeU8Ngiu4B31oxdi X-Received: by 2002:a63:e80e:: with SMTP id s14mr20082767pgh.30.1548687284068; Mon, 28 Jan 2019 06:54:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548687284; cv=none; d=google.com; s=arc-20160816; b=vIq9KqNIHkU00L9sQWaXJ7f/LCA7M8v5ntx/0+IjNtBK1/3WRNfjwKy1BlYqtTQbr8 XaoZj25WjvC8yD+Q21nDZh2MiYxDNMZefyh99UU6Z+Hy05JtjeXknVzwdxlGjUH8ybtO q9/Rn30Tmzw1D2Ot2o6/ZEoAn42x5Gz0zDdrbIIn4wrXudQXCSPWBOOTgLuEgT3fIeW/ Qd8scb3kEghFjxgczCT/SbqAm2vCo2iIKMhEcnHvwSF0qGqVxljOpfMBOd8llsI2QiNw fEVp3tUNMGM59qtKWXvn7YJCuC0XVxRt4bnEJwLuyshlJhcReNqPzjmKy2yELiuuZ+nq zlpw== 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=RNZJDYS78cHBuBaASjYOvQ9Ko3WT0Xjzjo+ql6w9VUw=; b=fDEA/T96GLuyzMir/gAVaogdhuUZaat2EfIcVTSKttwhBloBjBimUyCqIho8WkLbQR dWdsjVBzArZtbMseissuyBXD3yneAMAJHGCht6tN8IDyaNtB99JGmz8rp+j3ePXpPl0R ezh9s/Kr9JuCMmesElaUvbxnQ+Yuv2GgD+hDv8FROmxPAOkGvlTfFvicBomzgUpLu3IE s8R90jOgbte2gr7RvePFDGUzdYopRVX193sVNFkHsGYRECMjzi87WsCWyn1wkc/pCxzn a7A7lb4ZoW2ag7vMPVMDY43s4sphyrZhDmQcKRTa+7ac8CQWuumzSj7S7ztHt5QdAUWe ESAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sFfs8X5e; 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 f90si11387055plb.362.2019.01.28.06.54.28; Mon, 28 Jan 2019 06:54:44 -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=fail header.i=@gmail.com header.s=20161025 header.b=sFfs8X5e; 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 S1726974AbfA1OyM (ORCPT + 99 others); Mon, 28 Jan 2019 09:54:12 -0500 Received: from mail-yw1-f66.google.com ([209.85.161.66]:46640 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbfA1OyL (ORCPT ); Mon, 28 Jan 2019 09:54:11 -0500 Received: by mail-yw1-f66.google.com with SMTP id t13so6790242ywe.13; Mon, 28 Jan 2019 06:54:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RNZJDYS78cHBuBaASjYOvQ9Ko3WT0Xjzjo+ql6w9VUw=; b=sFfs8X5eh/vbWdDTgYPX+K1Lc3aACjsLcTgKaKaELGUI/YJdjtQfD3PP7Thcc8I+V0 VzvrPsx8aPUiZuMdPbmsQKTQlm8B5OwonaiKVCdWYLbtgD20G4MhYNB23vFBBaEZ3Yjy O7rNEQ5dHJSgThfW3GS1ZTUurT9bKKgGyEuWjSF/XaUjdZDETAiUkfA8YuAb2Jy7AQ3N xigKZoDcaSrYEvLmSuUXxyk9Fhlcz/yi8g1+noTMBfJIQcGC+0oAbl/fKUkgHlAuSG/f aB8QarYqlDA3BD/YlMPr+U6FC+gkq8JQi14bksz0cPljK/Ai2pQvV8FEdhh7XENOHITM xTSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=RNZJDYS78cHBuBaASjYOvQ9Ko3WT0Xjzjo+ql6w9VUw=; b=IjujJZkLQHLJX+2AkfleK3t9vMV3m4Znr83ia/x2j18GtYVhwk1dcIQ1owT11T9Lf/ RQX1YKGDX9LvivX3dINtmrW+eegOmAqdzhXj2LAwZP2klB5QkUYR9ypV5zWU/y2p7YAt g6hGrAp1M2HgdfD7BeiGO/TowBSeumJjDUSDQL/LBCZXx1FilqcEXkMsITMvMRy+ftDf EgRukw7bswAIHpEVby8ysLW2BtE9QVRknJXzVFzJHfYaqRS8Faa4NreSzog6WohZLmk0 dksPRFphdfofuTWPLS0kP+ooPoB/tz2yIFwqtj9QwLuhTfEOk+2p107dDaEQhPR6poKc tuQA== X-Gm-Message-State: AJcUukc7smfvneLgJ1bezSICV2UKp2CWioHYVYHZ2qHeviHoVBdrAzDP LQMHNYxFuLO6Z2ND4GyOf+3/e9Hx X-Received: by 2002:a81:ad5a:: with SMTP id l26mr20917165ywk.58.1548687250695; Mon, 28 Jan 2019 06:54:10 -0800 (PST) Received: from localhost ([2620:10d:c091:200::7:a62a]) by smtp.gmail.com with ESMTPSA id p11sm12053273ywm.60.2019.01.28.06.54.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 06:54:09 -0800 (PST) Date: Mon, 28 Jan 2019 06:54:07 -0800 From: Tejun Heo To: Michal Hocko 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: <20190128145407.GP50184@devbig004.ftw2.facebook.com> References: <20190124160009.GA12436@cmpxchg.org> <20190124170117.GS4087@dhcp22.suse.cz> <20190124182328.GA10820@cmpxchg.org> <20190125074824.GD3560@dhcp22.suse.cz> <20190125165152.GK50184@devbig004.ftw2.facebook.com> <20190125173713.GD20411@dhcp22.suse.cz> <20190125182808.GL50184@devbig004.ftw2.facebook.com> <20190128125151.GI18811@dhcp22.suse.cz> <20190128142816.GM50184@devbig004.ftw2.facebook.com> <20190128145210.GM18811@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190128145210.GM18811@dhcp22.suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Mon, Jan 28, 2019 at 03:52:10PM +0100, Michal Hocko wrote: > > All .events files generate aggregated stateful notifications. For > > anyone to do anything, they'd have to remember the previous state to > > identify what actually happened. Being hierarchical, it'd of course > > need to walk down when an event triggers. > > And how do you do that in a raceless fashion? Hmm... I'm having trouble imagining why this would be a problem. How would it race? Thanks. -- tejun