Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2451523imm; Thu, 9 Aug 2018 13:11:38 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz3twNV9lpZYMATvua8CUmLGfvNfqs77+Be6Qtqmi65o2HnSaRfrcnjEusReEWgXDjwvR+G X-Received: by 2002:a62:5cc1:: with SMTP id q184-v6mr3821099pfb.241.1533845498288; Thu, 09 Aug 2018 13:11:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533845498; cv=none; d=google.com; s=arc-20160816; b=TsdGNXVM/ePEsd5TgT0BII+F6Dg1X/bk+INNpKy+ABgTE14t71Lik4sLUk8ufvH0xh 895dxaMDQ8ytZhGcYtNN4NPlrWWyJnJmi3gF+3Mzhs5M5rQsXp4r/Zy7OL6i2qoQcDg0 kIg09G3phGhsf/TTBOiMdxU9kE7rBGhB+jLrIkSGJr+JhXUD/LyM+pq1+tEPyednsaJN 9NSz6e1TPpF0JaxbL9IwjGrWOb/JabcDiTCI6Yc/QvPnv/QtRbnZSm5Z0pr1y/vMdsfw +QDYOJqWe8xtCb6NJI+JLYN21dKyupnoyy4psT1oEccOG7B6UAHZYNgPfu9qvpHtXkIm zmBw== 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=VLDHI77xRcdf2USCuk1/hYpaK4GEm2DzPVhz93htD0s=; b=dfDE6m5blmEIw98vaMiumocniZWKX+GFy2L8vviUriRzhWePiecYA8cp5vhI3l6PQ7 H385ZtvVzoDUXc/JnXW+vYlQN4okR4ad/LcYMAFX7hHpx75UyqoeKDY4nCIUp6MvBPyp wfuPjkHoYiuu/u3PwhXLroQ/IVrqBz+7VXy64j4VnAt2vUxfJuP1RNZb3x1iBs/OKGNO DSEvyJfaUl84EeTPuqgdH3zkwZH4Lq8JzdWkhW4LCxuXffynLE2INDmJZcDhRmHxgu9g LMg/OmOFeAYV+6UT7Y/oI2Z49fQOJr1z/cUQqVUau8sri6qNkTtBzrKXWkOltz5Ywa7+ EjMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=SHgwsf47; 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 v17-v6si7697626pfl.233.2018.08.09.13.11.24; Thu, 09 Aug 2018 13:11:38 -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=SHgwsf47; 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 S1727198AbeHIWgh (ORCPT + 99 others); Thu, 9 Aug 2018 18:36:37 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:37547 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbeHIWgg (ORCPT ); Thu, 9 Aug 2018 18:36:36 -0400 Received: by mail-pl0-f68.google.com with SMTP id d5-v6so3007916pll.4 for ; Thu, 09 Aug 2018 13:10:12 -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=VLDHI77xRcdf2USCuk1/hYpaK4GEm2DzPVhz93htD0s=; b=SHgwsf4720X0Sg420wWukwiKIsArcYVpJw5HxcEYd2H4FB8rIBectu3R0l43pn+VhB +EYVuobp/13d8SWzJFvLQ8OsXsW/jxl7nFOecgjQADmBaYI+FMOziE2TlY1NIHRlRWa8 imXbeNXn0/m0WccYRM+thurI3jI9BgDWb76HyoivooKvhcQNs8vJZhFzsSwSW3BEo50F 7YNw9fjyeSpGvj7lUq1Ne8oxCIaHNhVNnbFQ3z2prSs/IQl26dQYexGhvi0bvkfezTO9 JWBJD3GVcfV7/eLSYQ7fxrxunHj86VsvpMjcKbhQnVKsj6dtLZxFglHyiaD/Ebr/EB7i HBfQ== 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=VLDHI77xRcdf2USCuk1/hYpaK4GEm2DzPVhz93htD0s=; b=k7brs30g5AQ47kyF1Wbsn40xNCK6XSdCv8ammYRzw/DpC0PlTcYBNR7/0QTIXzOvr0 gJW4Gcuwrt52wQHb1iZ8yKqZgBUpj/qonLHxy+H1Odq+uoRvk4TgsGWxove2agdWGzP+ Q4Nl0H2QapuO1WMH1YLILJTsVIa6uBH7myCMM+IVjvoTDG/wJhUz7pOLULn5l6eW16Lj YmaVPNS2P/UUDG5jpwjbeW2FRSxFRJ4X3WmQAfRRvbo4Ktu2dQYWonwwSM5jmwNu8Ens 7fnE07XgJRs6PchTTy4BptcaR4FoeKYSdigEh1641z1SHPgKT5eogJNaUP5Bsu9QcJHJ kvvQ== X-Gm-Message-State: AOUpUlHCkjFUryrPrNaCX53ZMX4INQHWYkcev12Ed9rdsfYDjl3y37n1 rI8gxPSJoXVcDvms6xAKGU6CNw== X-Received: by 2002:a17:902:b28c:: with SMTP id u12-v6mr3277935plr.16.1533845411756; Thu, 09 Aug 2018 13:10:11 -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 z19-v6sm8699206pgi.33.2018.08.09.13.10.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Aug 2018 13:10:10 -0700 (PDT) Date: Thu, 9 Aug 2018 13:10:10 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Michal Hocko 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 In-Reply-To: <20180808105909.GJ27972@dhcp22.suse.cz> Message-ID: 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> 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 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. 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.