Received: by 10.213.65.68 with SMTP id h4csp193708imn; Thu, 15 Mar 2018 13:55:29 -0700 (PDT) X-Google-Smtp-Source: AG47ELutXFPUhSyPomth/texqwgBXo4hPKKnl7r3H6BH/bX0O/4OthLkeW489H8RUfr6SbSkujDd X-Received: by 2002:a17:902:8d92:: with SMTP id v18-v6mr9530247plo.21.1521147329216; Thu, 15 Mar 2018 13:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521147329; cv=none; d=google.com; s=arc-20160816; b=iH4ZJvXRgv/oZTPyBJeL4buJEu/SjfqMo+fVCQHjUZkDRqFLMwuXorW0h5NVfkyJNm FspLtwOspTa0HdVWXNlVFriUHvnwAm2QHr/NyJztjv+bLnqEUqAOcBMHsYC3YlbP0L83 E8D6Q+NFhDe8qLkGYXF5bH8jkTJ4/Q32GcyiLhxFsWW2Anyzpj2tfnjknrO1B7k472WX nkN+7DCGlnYinVEStvwHkK4EDt1DeMtTSdzyND9mgv8moaC7jdC4kjB5ChktqUp4zIwk S4tzjplKc2RyM9p9LN3ypz3gQwjhbKXzQC7pKvT75pNVZg12BI4rMUrbb127eO28m9gY JpYg== 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=SDcibDM1IQ+fHSLvCSbRY5CU7+nOXmQWXTxOk9PuF28=; b=rIY9z4nS2AGvu/ZN9FlCoKxy4EwXuyxeLpnWXzxx3Clzk5CnMDUqN6VlZy0JdbwFbS /VvXBzYRJngiS2+EgRqkz+hwe1pKjrr7lddMVoU2+Acd9VxC3CmcT2g8rE7nGUjS1hDL KzTxC3lgoVscZBH7lHQuOx3z1Hje0M0UbvZSaSMtpOSUR1T7iMkXxi9HJ3z1exX4Hq1y LT9DdmQIQZGIyOMe39ZFmsNxbMuQnU+nkBPksh6PpoE4oTI1Akjeekb+K90ZuQFumffa VLur3Lh8TUohYQ+1h7hZ+IeSIhFgjG7WN3IFuKIagrdfbUFOLLl35qf5r2eAi8dY/tZU 8CuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ayjK/SxR; 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 r9si4351669pfk.372.2018.03.15.13.55.14; Thu, 15 Mar 2018 13:55:29 -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=ayjK/SxR; 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 S1752678AbeCOUyO (ORCPT + 99 others); Thu, 15 Mar 2018 16:54:14 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:45093 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752316AbeCOUyL (ORCPT ); Thu, 15 Mar 2018 16:54:11 -0400 Received: by mail-pl0-f66.google.com with SMTP id v9-v6so4520307plp.12 for ; Thu, 15 Mar 2018 13:54:11 -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=SDcibDM1IQ+fHSLvCSbRY5CU7+nOXmQWXTxOk9PuF28=; b=ayjK/SxRTB094RLbZCiw9rySo4WS7QIlZK+jmg6x+jm40pXD0fDJWw+oCv/V0ASxyV JktpHsY9F8p/V/TgNHYv7btE/dPfJkCrKLSBWXZ4Fud5PeuqkUPSJYfvMrNeqAaN0idL Tib2U1Fj6fkFq2+7iBKH49C0tcEIPhDTcPgelUbe4hFcPDOEwbVHPn2Ptun7ct3Y1LH7 AaTfohCeIJrZw47uEpnKZH75oPqV9rS5iFXGlrJA5lLVLInuTZktEgOiYyRvnbBfQxV4 x8omuXNQ3DdiqvH6Sh3Zr6Bgyu3MOK0ZvAOmKaBMSC/Oby3sHJ0d0Gvbf1gdSaqkqFJ9 hGsg== 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=SDcibDM1IQ+fHSLvCSbRY5CU7+nOXmQWXTxOk9PuF28=; b=q9cD5qG12KsafzCrbgfnRHkNVXRQri1217R6ju/ah9YQJfpMuutfAT1Ps9TJ0UQFMR Kl/2+A4jTVE+BxfpLKEfl17n4E67S6HrRCwlDnDRU1kd0dkTs0uEnO2VNZuwpghKvExG yMydLqEgG//mIdSCJBL/0sNRuFGgdXGduEJspgNIX2d/XmpsvUg6bv6JIyROOKldUBa2 cInat1DM+yVMyUI8ddgzaFqdtaGuVs7ITML2ne/uLWC24/jqgF1y1bf3MAkqsuyXoIZF Xc9y+XxvLtTej5CO8yX7lWv00Lv3ZS4O7pv+ARhveijWEid6HjEuOehqcu/IE8IDyhZE TusQ== X-Gm-Message-State: AElRT7H/eFb10MrTZbn5KR9Ka6Z06zJHnCMB9evZtTOxlPFtDjht44EW 8ZH2DgCbK2O/2AuUJ/cFWzQo8w== X-Received: by 2002:a17:902:7d17:: with SMTP id z23-v6mr9709617pll.237.1521147251219; Thu, 15 Mar 2018 13:54: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 p9sm10294200pgs.89.2018.03.15.13.54.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Mar 2018 13:54:10 -0700 (PDT) Date: Thu, 15 Mar 2018 13:54:09 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Andrew Morton , Roman Gushchin cc: Michal Hocko , Vladimir Davydov , Johannes Weiner , Tejun Heo , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch -mm v3 0/3] mm, memcg: introduce oom policies In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) 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, 12 Mar 2018, David Rientjes wrote: > There are three significant concerns about the cgroup aware oom killer as > it is implemented in -mm: > > (1) allows users to evade the oom killer by creating subcontainers or > using other controllers since scoring is done per cgroup and not > hierarchically, > > (2) unfairly compares the root mem cgroup using completely different > criteria than leaf mem cgroups and allows wildly inaccurate results > if oom_score_adj is used, and > > (3) does not allow the user to influence the decisionmaking, such that > important subtrees cannot be preferred or biased. > > This patchset aims to fix (1) completely and, by doing so, introduces a > completely extensible user interface that can be expanded in the future. > > It preserves all functionality that currently exists in -mm and extends > it to be generally useful outside of very specialized usecases. > > It eliminates the mount option for the cgroup aware oom killer entirely > since it is now enabled through the root mem cgroup's oom policy. There are currently six patches in this series since additional patches on top of it have been proposed to fix the several issues with the current implementation in -mm. The six patches address (1) and (2) above, as well as a couple other minor tweaks. I believe (3) can be subsequently addressed after the feature has been merged since it builds upon what is already here and shouldn't hold it back from being merged itself. I plan on sending out the entire series once feedback is received for the patches already sent. Thanks.