Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3634764imu; Mon, 28 Jan 2019 08:11:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN47x0DtW75jeyI8FJSdJOd98lukTU/Oz6gKbNXytvR9BdVTdLW7xFYAt533hBxKHw0gDEF6 X-Received: by 2002:a63:63c2:: with SMTP id x185mr20284515pgb.374.1548691877461; Mon, 28 Jan 2019 08:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691877; cv=none; d=google.com; s=arc-20160816; b=zBycl6GGCXMrm1OvsGwo5fxX4U9sfGY9bNzctUqDO2z1Ov/mWcwzaxfpySX1mu37Op mox7pCpWsL6UWSPISlJZHGcX0uvS9uS283J96Hredt74bHQIjMvOjmos42oG+NUOYIW1 LKH4oc+HeIthBAX45o+ACjv9LpP3cFwNp2js+Kyr3gOPTNAkkN7FxoigioS2nC49+Df8 VXjHKBCMdgy9bNYpxj7zLCoYKCO7yhBgYIulJppRCY7rRfuLG+qmUKlylVTjm/8GhhvQ pER7FBRYDvg1vcUxBV0h3VpTBHWUvpxlunU16S4ukFS8DVaizNCjz1XQzxEZyX0Edy53 XmcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=d0rb+admgqujxz8uCtJLl0Rf7qV1TQ5qEBaCJcsbcKE=; b=SInA+pjTdA2qNxlv7hTp6tgWwJ0S3HVYfDrH1W4qRjmVZYimU0UgoXI5u2htPsMWrz RXhH4JudRGOAm1j0bCeLuDtL/zPkIXkWGdsZ+ni8GcJ5gskcJzdWn+43unuaFnKPr730 NWdVmpaSI4eCHXvjlfc75GzjKYOjQ3jdnjkvoa/Vnrx28vLuwvpOH1a5/OChctm4p5VC OMlTERMHfs9Qs8UUbyrNDAQtCZOC0vWqWoCrpRXxjao8rretbjMQ+WI5zdUpeX4CGDSF Hb6cnpy7EfbIpV0azuJiNRtsdCSlWluZExz43Z8yBSrk4zmrKD8MYOYStIB74GnV66xP 3U4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wOXE9mls; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si24519513pgh.196.2019.01.28.08.11.01; Mon, 28 Jan 2019 08:11:17 -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=@google.com header.s=20161025 header.b=wOXE9mls; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732457AbfA1QIn (ORCPT + 99 others); Mon, 28 Jan 2019 11:08:43 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:35377 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731771AbfA1QIj (ORCPT ); Mon, 28 Jan 2019 11:08:39 -0500 Received: by mail-yw1-f67.google.com with SMTP id h32so6937724ywk.2 for ; Mon, 28 Jan 2019 08:08:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d0rb+admgqujxz8uCtJLl0Rf7qV1TQ5qEBaCJcsbcKE=; b=wOXE9mlsqSzCnNKDjZ4de5VkO420siVjvekQdDBL2INCdraE6pj5XAX+vhi4jyxdXW yDCJyDgEAeh+fT7R6wF1MjXjTejgF8pb5/MfAurddLddFBlZXOSuoxuE233Qi3HjVSqo 4GoZCjUBcPzKXWpUw1LcvBnU5kU3ubaHiZQclCUtzFKiL4hJHZ/MOAOwguW0MY2W+ZrX F6zCrCUEuwRXz/80NBnkgnrbHR9sL0VgmzPbZNQjiwerNp2Q9J13nCdAoPxwwD5K51g+ tpnGlywKwCDWKUuQeurnWePHgElLGsMvJeWbyO0eh+ZkjFYyh1NP/o3GlX9dOCEavRlk xU1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d0rb+admgqujxz8uCtJLl0Rf7qV1TQ5qEBaCJcsbcKE=; b=Ok0JRJmEs+jMKfXULIaHE5pcvWsE/v4W0xkBpwa4gAgPGqz697RxBVZCx9TzaxjlHK QJ//oYlgJ7tgI5p5/E+Gz49RIbhGsI89L6H3opLg+gk4Qk7MZbWtrRsYN887KdCQ070I 9UTPGOQNr73VApcPs3K9mJPYIMzOVIEgrP+6D033HStu41jIY5XytCUmApKMTS6CvKjf Mr1s2ldIQypG/41yvxdAPi3Yb6VhPYxqBW2/qIVC6F8pJzqxqgLJwTMUCjUaUlmtska7 maIANXmcfUIM8hz0Twt76hqK5kva3bsJUbvvbH9I2ZgNHJ8+1zjeUE/kOeDFrN7jdBWF 2HIA== X-Gm-Message-State: AJcUukdUVi10lbc/53+9rFHCYitYvXxf9pchZSO02tAx1WWAvFKuWj5y 1kSDhZC6CF9f5q/70LCXQ/tPiZhmfzdyn7esbgDeqg== X-Received: by 2002:a81:ee07:: with SMTP id l7mr21449063ywm.489.1548691718003; Mon, 28 Jan 2019 08:08:38 -0800 (PST) MIME-Version: 1.0 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> <20190128160512.GR50184@devbig004.ftw2.facebook.com> In-Reply-To: <20190128160512.GR50184@devbig004.ftw2.facebook.com> From: Shakeel Butt Date: Mon, 28 Jan 2019 08:08:26 -0800 Message-ID: Subject: Re: [PATCH 2/2] mm: Consider subtrees in memory.events To: Tejun Heo Cc: Michal Hocko , Johannes Weiner , Chris Down , Andrew Morton , Roman Gushchin , Dennis Zhou , LKML , Cgroups , Linux MM , kernel-team@fb.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tejun, On Mon, Jan 28, 2019 at 8:05 AM Tejun Heo wrote: > > 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. > Do you envision a separate interface/file for recursive and local counters? That would make notifications simpler but that is an additional interface. Shakeel