Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2939496imm; Fri, 10 Aug 2018 00:36:46 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxplv86dOKa3kxd4t7zT6HP34hrPcn3FUAp7+RWTyi1U1CEvLg129msYXm31CZJ01Qif5iN X-Received: by 2002:a17:902:3081:: with SMTP id v1-v6mr5218285plb.58.1533886606409; Fri, 10 Aug 2018 00:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533886606; cv=none; d=google.com; s=arc-20160816; b=zWspQCQvjlc2LQ1910BDn3Qky7lAPnS0BXL1M2zz+KSh2GkBtlCVnNJNABRKMP8xE6 /O6eyIGN76scl9iot1qgT+uuJ+yGxBhndUQdeTdal2A3vLi8wC/BDHQCZm7+hUp5mIHR N9VaIUYEQSSx38d/oF9iXbN9R7WeRXtyeTcU+fp9gQxGxRC6hh9gEqhzWsevqzPJeA/n fX86e4MrDqmH3Kfh+CWEdhDgwm9R8gSEXjBeqtqdWkbxk67u3vUQXlWVaJxenPNKMt9R eF7EmW2OB8H10z/adl6BJQZqw4hYTnyyk8DzVtu6mSF2uMNQI+gAmYODH9JDbZbI46xt w1UQ== 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:arc-authentication-results; bh=NcBeKYkAelvLkQIG85mu4x6B96SnSc+BNCkayoM7lHI=; b=OFfUXthl1I/1lX9sz1dHSyLsGpYh0zxIta/RhILTUZX0XSzbMrM+6VZrCXHmisbE0D qeWBuH5ao5eEO7s8swO906D+N2fE3VBspqHN22XRmduN2O9/i95mKokDBv5tMOUMTbU5 DuInAILeqSF21pCFEVsFU/mGu2QqcFpkbrBVEHdByiy6BUTddy5r1sRq82KVd1KwQk16 NCdy73H/5gMU5eT85QhXBVMM2RGxkWd309Ec5jZkcIQBTGUj4No7yJK1Ox7Z8Z8qpGWO bHxkAOZyE0BH4d/lIf6PVkIyN2MX04CI87Xzy+TXK6dp1KrXGW+YPzc3biJMx3rIi+5t JbLw== 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 10-v6si9385596ple.60.2018.08.10.00.36.30; Fri, 10 Aug 2018 00:36:46 -0700 (PDT) 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 S1727571AbeHJJcZ (ORCPT + 99 others); Fri, 10 Aug 2018 05:32:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:41950 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726961AbeHJJcZ (ORCPT ); Fri, 10 Aug 2018 05:32:25 -0400 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 7741AAF74; Fri, 10 Aug 2018 07:03:52 +0000 (UTC) Date: Fri, 10 Aug 2018 09:03:51 +0200 From: Michal Hocko To: David Rientjes Cc: Roman Gushchin , linux-mm@kvack.org, Johannes Weiner , Tetsuo Handa , Tejun Heo , kernel-team@fb.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] introduce memory.oom.group Message-ID: <20180810070351.GB1644@dhcp22.suse.cz> References: <20180730180100.25079-1-guro@fb.com> <20180731235135.GA23436@castle.DHCP.thefacebook.com> <20180801224706.GA32269@castle.DHCP.thefacebook.com> <20180807003020.GA21483@castle.DHCP.thefacebook.com> <20180808105909.GJ27972@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu 09-08-18 13:10:10, David Rientjes wrote: > On Wed, 8 Aug 2018, Michal Hocko wrote: > > > > > > In a cgroup-aware oom killer world, yes, we need the ability to specify > > > > > that the usage of the entire subtree should be compared as a single > > > > > entity with other cgroups. That is necessary for user subtrees but may > > > > > not be necessary for top-level cgroups depending on how you structure your > > > > > unified cgroup hierarchy. So it needs to be configurable, as you suggest, > > > > > and you are correct it can be different than oom.group. > > > > > > > > > > That's not the only thing we need though, as I'm sure you were expecting > > > > > me to say :) > > > > > > > > > > We need the ability to preserve existing behavior, i.e. process based and > > > > > not cgroup aware, for subtrees so that our users who have clear > > > > > expectations and tune their oom_score_adj accordingly based on how the oom > > > > > killer has always chosen processes for oom kill do not suddenly regress. > > > > > > > > Isn't the combination of oom.group=0 and oom.evaluate_together=1 describing > > > > this case? This basically means that if memcg is selected as target, > > > > the process inside will be selected using traditional per-process approach. > > > > > > > > > > No, that would overload the policy and mechanism. We want the ability to > > > consider user-controlled subtrees as a single entity for comparison with > > > other user subtrees to select which subtree to target. This does not > > > imply that users want their entire subtree oom killed. > > > > Yeah, that's why oom.group == 0, no? > > > > Anyway, can we separate this discussion from the current series please? > > We are getting more and more tangent. > > > > Or do you still see the current state to be not mergeable? > > I've said three times in this series that I am fine with it. OK, that wasn't really clear to me because I haven't see any explicit ack from you (well except for the trivial helper patch). So I was not sure. > Roman and I > are discussing the API for making forward progress with the cgroup aware > oom killer itself. When he responds, he can change the subject line if > that would be helpful to you. I do not insist of course but it would be easier to follow if that discussion was separate. -- Michal Hocko SUSE Labs