Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3705319imu; Mon, 28 Jan 2019 09:20:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN6a5FMC5Ykxht22NPFKQqfIjDgUX+smgDEGMWiBX/6MXfljJi1pqQa8gXgpbCFwy/XJOLE2 X-Received: by 2002:a65:6542:: with SMTP id a2mr20332773pgw.389.1548696027721; Mon, 28 Jan 2019 09:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548696027; cv=none; d=google.com; s=arc-20160816; b=EZodg0AGKTm7cvFz6Z8kWjWgRre/paBC0tocA7nGOmnZuTriGHRrFT7lu6ElzxYaSd HG8UNDr0dZNZs4uy4x8Qa0q8ihZ9jpMPNicIVXCnQBMS1FREWu/crNu8chqYOxXyzWln OjxXqv7lShWwlWwWGWr2dzzNaxMBOklovL+iLictF3Pr8zwsYaLfJFVFL/BA/1LIY2+v yhmEpOVmt8H10l9aeFMJw4KiyWK5iiiho5+Ji7VGi8sV3sQ+5k4PEoEYhVncNHYheIJi zW1FkTl8pcBXdpx8Y8toiaoqbyKrtgBdNoUqMSN2p2TS3HwvGn31yg86UvOoExm5aGXI 2Zew== 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=D0XIA/6Qh8GnZZaGo5cB5eBgXybV2IxRZOPzdvJrX0c=; b=EEjrDxP+eL8S7VMGFhZ64GxuqdrEEQszn/tyjRomriBzPdBliJQFzfbcxXr66SsBuZ V3sIvoI455iAlFcng2Qzbi9ATlYyX6BNlT7/No4JE3/1cc6aV1e1r/MdctRpdoRv5K9Y fW6Uo33WxuCU3AdG5Dq4ERuzzpI4jxgMhHDglZfcgYxKOGcLokBhpSBmdAJR2m4aUyeG ZnQSvuUE32UmXPzefz2p4CYcgYjN7MlfBJws+pM3j/YR0I1SQNTKwOHn3cfbPIp6nQUL IliuHjlrSg1smB+vxXo0nzaGCS9hRTiwa70NNhReqhWFwIV409XCvMhIjGBogU2/0heM BaOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="l+K36/RD"; 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 m4si22188925pgk.399.2019.01.28.09.20.12; Mon, 28 Jan 2019 09:20:27 -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="l+K36/RD"; 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 S1731792AbfA1QFS (ORCPT + 99 others); Mon, 28 Jan 2019 11:05:18 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:46380 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728395AbfA1QFQ (ORCPT ); Mon, 28 Jan 2019 11:05:16 -0500 Received: by mail-yw1-f67.google.com with SMTP id t13so6894630ywe.13; Mon, 28 Jan 2019 08:05:15 -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=D0XIA/6Qh8GnZZaGo5cB5eBgXybV2IxRZOPzdvJrX0c=; b=l+K36/RDCfBLXWyfwDofaL0N6kncsH8J9nemOl65EBSWfBsCNapxwp3eNjnoplOTEg 5K6WRkAL0/ukREfK8WDnsPdxifoTXD0UigcTjP4F8EqcZ6Prk6QeaR6FSyVSmh1LCQuR wbq/fKfQRplDMddZCczhcb2GLUV6Y5PmhcFFPM4CBO/CjzJ5rlOb+Jz/AOPBigxYRaOf zfGSfdkMTqAVYZvMk1U9ZwSf9VJ+yMd3aGmeTjyA+GkmgO8wjEzamAYjwk8OMjpEgg/D AzJtY400kLlnBy6R0JGDR5ehBi+hS47pxRDGQjoam2KKUhP3Uw93irXgqvzxYQ/q6fFW zlJA== 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=D0XIA/6Qh8GnZZaGo5cB5eBgXybV2IxRZOPzdvJrX0c=; b=ePXufY2SuwDWCWwQ7XtDP/WjhuSEsz/GPd3bcqJX3Ngneo6sqWDltA5SP8pBJhWu7y K8XuV1bNWEy/y7fN6P/gSkDF8Ikfc4c3z34EHstkZLFd49x772hhqaWoPbKFGSMJDWx1 Jh/8I9jsVZVBWGYpSCBUh4itjKVf4Q6Am52dajAN8zmR92ipRrVESq1h/wNKpqLeXuxu zg88p/Jw1i8SKWJ3bxPf5VC9LJPFBO9siCoYVnAI4zuqWcJFWNzUsFx5aMsM3nmvWfzW sSBWpxPYZx5R/Zj/X9CXHjMg3GCJQ5eH18qkYbMQMVB4J/aO7ZugppkUlhE484PnkCjC Ymyw== X-Gm-Message-State: AJcUukdwMbTCsuhQiNzxjTuSPSAV5GugUfr9lmeWACr9s+ZQuzjR/wqR cjAx2L0ikiJFmyyhTbZidpk= X-Received: by 2002:a81:2cc4:: with SMTP id s187mr21940591yws.67.1548691515076; Mon, 28 Jan 2019 08:05:15 -0800 (PST) Received: from localhost ([2620:10d:c091:200::7:a62a]) by smtp.gmail.com with ESMTPSA id d3sm18681834ywh.58.2019.01.28.08.05.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 08:05:13 -0800 (PST) Date: Mon, 28 Jan 2019 08:05:12 -0800 From: Tejun Heo To: Shakeel Butt Cc: Michal Hocko , Johannes Weiner , 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: <20190128160512.GR50184@devbig004.ftw2.facebook.com> References: <20190123223144.GA10798@chrisdown.name> <20190124082252.GD4087@dhcp22.suse.cz> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, Shakeel. On Mon, Jan 28, 2019 at 07:59:33AM -0800, Shakeel Butt wrote: > Why not make this configurable at the delegation boundary? As you > mentioned, there are jobs who want centralized workload manager to > watch over their subtrees while there can be jobs which want to > monitor their subtree themselves. For example I can have a job which > know how to act when one of the children cgroup goes OOM. However if > the root of that job goes OOM then the centralized workload manager > should do something about it. With this change, how to implement this > scenario? How will the central manager differentiates between that a > subtree of a job goes OOM or the root of that job? I guess from the > discussion it seems like the centralized manager has to traverse that > job's subtree to find the source of OOM. > > Why can't we let the implementation of centralized manager easier by > allowing to configure the propagation of these notifications across > delegation boundary. I think the right way to achieve the above would be having separate recursive and local counters. Thanks. -- tejun