Received: by 10.223.176.46 with SMTP id f43csp5263wra; Fri, 19 Jan 2018 12:54:34 -0800 (PST) X-Google-Smtp-Source: ACJfBotiyTP0o2+t4Cg0SroJ1GsjacB0fMIUxBX3ts1yPnmVl8fz+DEDZQgKRm94NF9GxWdd1ivS X-Received: by 10.99.173.65 with SMTP id y1mr9027698pgo.160.1516395274073; Fri, 19 Jan 2018 12:54:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516395274; cv=none; d=google.com; s=arc-20160816; b=b2LN0JTEC2DfGbsEOHV8tt/sff0oRlCAZoFF0D57KGKC1defwCUDy05Pxd8JgTdXJ/ z/KQPO49dLnuwZDdv+FU28XmlXc6Vihg+QJxnuRodaNMASbS7KEHFgBuZx6r0Am964Xt fLWIxzHTO8fNKSM/vHtLQ2z047gcWDoC8j+jrJJKn6QwPj9/4JYA16b+On+7Vr4912Dw c4TrYnUPnQXRerr3LWWyAbvzDTpZiwipcOdxvuATYkyjoTIjS94tX4rJj7lfBnEOBZHH p7h+Myq6MgN+2IpKLL5KIzFiyhmRsxPg6+urTUBfSE+TNJikVnPrLLUWYxERyenm8j3K Oc7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=HDpKV/02DbdHINZc7lYlYzyOOpGrMBTdpR4DhPZn1pM=; b=FNvARW4Z83s9vOkVforRyXObYGwWlphLpsu8JnnWJrVMyF3XOq6PY35oXGo7ZjvLpj XKQrkaABXL7BU93b5RHGuJyjM5wdBSwc5MlSHWAG3+sWAv1VmNJ6S0kInyQAFedutg7a eonPRo3L8Gdyh2MAPkQ71fPdWFh6H96nsMWTaCTiKuaLJvwbvalaXnfy6H9fKW8Hb6M7 F6n+OY63cT5GiLXlDe8jOGd/ywDrk0NBcuFgtHwc7ablObjBLMZK8rqbLfYFzphtwtHq udnyvj5mSInC/lFgI20ZOjR7QFevoYA2f2s5oOhUlDuIZi9e9sMkxwDeavUv5bJ9jS+Q FxTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=bzodQpUd; 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 k139si4197068pfd.282.2018.01.19.12.54.19; Fri, 19 Jan 2018 12:54:34 -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=bzodQpUd; 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 S1756544AbeASUxu (ORCPT + 99 others); Fri, 19 Jan 2018 15:53:50 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:41048 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756492AbeASUxo (ORCPT ); Fri, 19 Jan 2018 15:53:44 -0500 Received: by mail-io0-f196.google.com with SMTP id f4so1745340ioh.8 for ; Fri, 19 Jan 2018 12:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=HDpKV/02DbdHINZc7lYlYzyOOpGrMBTdpR4DhPZn1pM=; b=bzodQpUdPQi05drILoGzQJxiGVyiipeYfzLCZPKvv8rwDMslcPNI+Cr6zcLirLJMPE pKaVWhca8WcfEVf/M3Q8gTNzmS2gU4J7c8NumHyYKzlitiyB/cYqDFe1+URnXB97aaod OYgAZXpknrJSWGYavbSlSShytm98kWee4JzucUWOO8HqpOm4ixl358nGjg1/QOqTQ7JN 2/RQ48wy8/nHz7T4FH9WHR44MjBwodpxnj9qQWSbKWP12cKUxA4Rg3EWr8O7/Yl0k1jZ atJ6Fg/MmheQxCxyf7cgXkt/d5VZ9lnhTiPZcilwF9VlzZ+00mL0VVRW0vmPIZR7p4u/ m9lg== 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:in-reply-to:message-id :references:user-agent:mime-version; bh=HDpKV/02DbdHINZc7lYlYzyOOpGrMBTdpR4DhPZn1pM=; b=I2Cxks+49UbcyoWx3DlnF4KIgQrTeLwmnFgpnEMT3vY3yDl5olwhG5c1p6K+PCl+co mU6TG3W1RXbt6XjzVC1eofcYZz1oC/r4mA6jZ9N47K81BjUaDtirb19tzU4HwsRk+OtU NPmd6QOlEK8ciHQl57daD89uVl9TC0h1FV4WM5w8aYL/A/QYRV657avRJVfnTYQ4HOql ESZPLzuIsqtQGp4qmIYQI7MaUmXz2tjhfy37XO7NJwgm1gzW+cUKXd845AR71LhLIhT6 8OSTVRFvY9c0P7vuHfhG4Iyt/OFu2yC5Jy4EyGv+LHf1DK8GYsd4erEZsvziEGC8VDbg M7kw== X-Gm-Message-State: AKwxytezNaT+rwKa2GII540+0sPP7C/c2j7IEIQnUVSifcCHnDjKgvMa BjvXoH0eyBAY0nuBw2DE2zvq8w== X-Received: by 10.107.97.24 with SMTP id v24mr10806983iob.296.1516395223516; Fri, 19 Jan 2018 12:53:43 -0800 (PST) Received: from [2620:15c:17:3:a4be:a41a:9ec4:b9] ([2620:15c:17:3:a4be:a41a:9ec4:b9]) by smtp.gmail.com with ESMTPSA id z84sm5476974ioi.23.2018.01.19.12.53.42 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Jan 2018 12:53:42 -0800 (PST) Date: Fri, 19 Jan 2018 12:53:41 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Tejun Heo cc: Andrew Morton , Roman Gushchin , Michal Hocko , Vladimir Davydov , Johannes Weiner , Tetsuo Handa , kernel-team@fb.com, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch -mm 3/4] mm, memcg: replace memory.oom_group with policy tunable In-Reply-To: Message-ID: References: <20180117154155.GU3460072@devbig577.frc2.facebook.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Jan 2018, David Rientjes wrote: > Yes, this is a valid point. The policy of "tree" and "all" are identical > policies and then the mechanism differs wrt to whether one process is > killed or all eligible processes are killed, respectively. My motivation > for this was to avoid having two different tunables, especially because > later we'll need a way for userspace to influence the decisionmaking to > protect (bias against) important subtrees. What would really be nice is > cgroup.subtree_control-type behavior where we could effect a policy and a > mechanism at the same time. It's not clear how that would be handled to > allow only one policy and one mechanism, however, in a clean way. The > simplest for the user would be a new file, to specify the mechanism and > leave memory.oom_policy alone. Would another file really be warranted? > Not sure. > Hearing no response, I'll implement this as a separate tunable in a v2 series assuming there are no better ideas proposed before next week. One of the nice things about a separate tunable is that an admin can control the overall policy and they can delegate the mechanism (killall vs one process) to a user subtree. I agree with your earlier point that killall vs one process is a property of the workload and is better defined separately. I'll also look to fix the breakage wrt root mem cgroup comparison with leaf mem cgroup comparison that is currently in -mm.