Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3063617imm; Mon, 16 Jul 2018 21:01:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/k0/hkelRgSx+IIHpWlceLNHVb9Ex8mrKRpLv3Jlc8trWz/yGmkmKHL9RgG8x8ueke4Ow X-Received: by 2002:a63:89c7:: with SMTP id v190-v6mr17509605pgd.194.1531800077790; Mon, 16 Jul 2018 21:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531800077; cv=none; d=google.com; s=arc-20160816; b=tb0oRAyMhslNImh9g1xqRKS1YFTLleqH5Rn6ExNKUEcxnA03wPaaQINB3pBqG9jBHX Q1WJJKOTRS8JZqzueTW5k1Z4+biRBXUqFVrF4gZE58rYCv+qTWbHNx0spl2KeBJOhm42 +dR0VD80p5AU0VB6MApNvPteWqlY/rrgAwrX6tAeJ+56rTh4DEwQ/APdYypIZx0zkgwK rb8Cvll5DWDAPj+6nVBSjhQG4DgvmfeXDdifLes4Ea2hUFKsTHcXX5m7waet8fivEZ6v reKyO8hbsJMaso+Rxplh9grNRBD/0KNqR2Xp2gfLcSUM4ChLyegywJyqiZEH3iF4SEP+ 7qxw== 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=jHrn07gzUHpPm2gCNFENX79CHktkBI6qepWDsVP0Uus=; b=04lmwzCEIBpOXTGaHQ5zkfZz1I5imUA6Fnlufsy4veUcJJWCPftEsEdcsWp1exsPlv LOtLE90qU4LUWwEIOwCclIwBmGZeJ7MaaUxQnqR05Qa61i2Krou50J7u33YxOubGtZAg p/At/LrUvs31rXsDZF0vAXdwrhThndbLGUILyUdtgzNxSdjyBp0nVBcV9b7BGQOzXC3B Fti30sWRtcfRLYAYRTIXl9mpmRzoixeKn+7+VNiQXe6Z1qEcGdsHQUKUTYleVxGwPkT1 gFVOi2wI/tE/B87JLoiHlffvSIlylewbGHq2uBj1dfljU8/1Ohe6YfScuF7a6lBlMJBv +xfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XoPJvAq+; 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 b28-v6si18877733pfe.265.2018.07.16.21.01.02; Mon, 16 Jul 2018 21:01:17 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=XoPJvAq+; 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 S1727877AbeGQEaC (ORCPT + 99 others); Tue, 17 Jul 2018 00:30:02 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35292 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727592AbeGQEaB (ORCPT ); Tue, 17 Jul 2018 00:30:01 -0400 Received: by mail-pf0-f196.google.com with SMTP id q7-v6so26238668pff.2 for ; Mon, 16 Jul 2018 20:59:31 -0700 (PDT) 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=jHrn07gzUHpPm2gCNFENX79CHktkBI6qepWDsVP0Uus=; b=XoPJvAq+l///furXh85SaohAqcdI78JfNcRHBgsKmPsXPUbpxyI+x3AAxYNwBA1AJs tvRatX9Kb8QbqcQKXZr/+J31ePgM+9ge+yJvTqQcN31AI2Dk8yBgeWUcMykpaB8hqeje C1uGNlJ/Z/SAT5CLwddSvb4ucdXjdYucR9+x/ssV4VSUY0CiVf3hEWrUoLUMJbKyddj1 ulc45SpFASY+c9J4DcUABAcpl52kdalJXtugAivpZVY+ohh5JJsbA1C3R7h85cf5B0SL 5F3OkkpwdHocoZ26+amAybJzyr7HsaiZV0iTNJiQtARQ/TAjcuxQh7ZUOC0cIkFHuBZX fCeg== 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=jHrn07gzUHpPm2gCNFENX79CHktkBI6qepWDsVP0Uus=; b=Z4P15NhyGhX7FJHKxICBG3HQDobGmHZP2LayMuu5UW1Rpb9Pn9Sri3y5Yg/IgLNSwo h0wOyWTzv8KwFCvrdCkP0GmmJiT0G4qSkgvnzWFmHF8wznxcZ1VZcjUeJBDnuh4Yscao JY7eQg6HpH2vYH1NWU1lGunt27q9JmkoHmaGe15GlhYfk9JkqNFtFNenWf0Za4VoAE7J Ayj1o9eyqaXEynJQWKK538JVEr0BDWrgj7iod8A3MjAE00OztIJiXfKwTPH68k81V/R0 gkLW5eKlf08wjvmd2WZW1vXENTz5CMJspQdIGjQkisDaBcXwUJtzp8YlceeSzgc2sd6x mKsw== X-Gm-Message-State: AOUpUlFnby1Yt03JLKQA9giciKv9momzKe1WVopX0iNJt1b82Jcx1xi9 IjeR6T47grJA3qHf+ePOmgCVmA== X-Received: by 2002:a62:a312:: with SMTP id s18-v6mr20364092pfe.13.1531799971029; Mon, 16 Jul 2018 20:59:31 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id x2-v6sm70440085pfi.166.2018.07.16.20.59.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 20:59:30 -0700 (PDT) Date: Mon, 16 Jul 2018 20:59:29 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Michal Hocko cc: Roman Gushchin , linux-mm@vger.kernel.org, Vladimir Davydov , Johannes Weiner , Tetsuo Handa , Andrew Morton , Tejun Heo , 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 v13 0/7] cgroup-aware OOM killer In-Reply-To: <20180716093630.GJ17280@dhcp22.suse.cz> Message-ID: References: <20171130152824.1591-1-guro@fb.com> <20180605114729.GB19202@dhcp22.suse.cz> <20180716093630.GJ17280@dhcp22.suse.cz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) 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 Mon, 16 Jul 2018, Michal Hocko wrote: > Well, I didn't really get to your patches yet. The last time I've > checked I had some pretty serious concerns about the consistency of your > proposal. Those might have been fixed in the lastest version of your > patchset I haven't seen. But I still strongly suspect that you are > largerly underestimating the complexity of more generic oom policies > which you are heading to. > I don't believe it's underestimated since it's used. It's perfectly valid the lock an entire hierarchy or individual subtrees into a single policy if that's what is preferred. Any use of a different policy at a subtree root is a conscious decision made by the owner of that subtree. If they prefer to kill the largest process, the largest descendant cgroup, or the largest subtree, it is up to them. All three have valid usecases, the goal is not to lock the entire hierarchy into a single policy: this introduces the ability for users to subvert the selection policy either intentionally or unintentionally because they are using a unified single hierarchy with cgroup v2 and they are using controllers other than mem cgroup. > Considering user API failures from the past (oom_*adj fiasco for > example) suggests that we should start with smaller steps and only > provide a clear and simple API. oom_group is such a simple and > semantically consistent thing which is the reason I am OK with it much > more than your "we can be more generic" approach. I simply do not trust > we can agree on sane and consistent api in a reasonable time. > > And it is quite mind boggling that a simpler approach has been basically > blocked for months because there are some concerns for workloads which > are not really asking for the feature. Sure your usecase might need to > handle root memcg differently. That is a fair point but that shouldn't > really block containers users who can use the proposed solution without > any further changes. If we ever decide to handle root memcg differently > we are free to do so because the oom selection policy is not carved in > stone by any api. > Please respond directly to the patchset which clearly enumerates the problems with the current implementation in -mm.