Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1414673imm; Wed, 1 Aug 2018 15:48:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfj8l0YUSTe/JVzkM8awmpfOnZ9x57i2ETGd1ToVLRjsDk2Lo/3D1zhOEMH17L0P8iEx0ZW X-Received: by 2002:a63:4763:: with SMTP id w35-v6mr267929pgk.140.1533163719047; Wed, 01 Aug 2018 15:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533163719; cv=none; d=google.com; s=arc-20160816; b=JJ0+r/lNuzEQeWHHvohWp3k90iHU60ZAYaeOxkI1eddG6jztNgigkHxgN+LpWCEL84 YlRbzSuLIWSW8r2SAoHVX2rY2jXPo6h8mP79DltlhVJFUtqthi8asQllw8VhznAAP3vu cV1s67TQK2vCKrzhYz8bDPh8sMKzimDXXu6hJuaApznWjm+/6ZQTrL1/wkq/NQVV1Efs LzxREmhoQMqtLwma7y9HWPMyXbYxEUP/e0IJoZenXBqGFSSTCH1JrUD/5Q+Gw5DcSch3 bLCEF3BdcNacdx+NrMPYzXg0IGWeNJ2hAsUI0e9ZG0jr0K1lT+wxFB0HPwtWqU1GOHT1 eqPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature:arc-authentication-results; bh=7AYAukFdcneWJBU4zMC7XQTTScMKYN9G4zQ5SO9bwpU=; b=NFd5t1IZhIT/3M7OS0+hUe+tAIUwCNSY6NdgnkjPGR7wPrxO6m11Um3/GACSBoMyWu 593DiLMHOV4XjTxGoqxZjUR66VisP668hRmHOerUfbl4dUthZRJrUJ5RGjsbobpqxNtQ AYkQOov8xloiM1AjqisxTF58bRNk34F/b0k2qmALJBrGVC0jcfA6uciZfQUUnLKaQEuk QtFRJ2/Of1r3qbaAgMMLc4Ne1urlw2EeLHLaBfG0rFTILRq8XRKvPpVwibFCTKEpIORu e2a1+qzPK+7B0/xzSXKr2Bgj65lYAwVnMPZj2SAd49PDVc4d3c09fWzeDWZYQKWoG6nR T+vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=ifP1R3KV; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b="Jc/3p5Zp"; 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=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16-v6si118864pln.165.2018.08.01.15.48.23; Wed, 01 Aug 2018 15:48:39 -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=@fb.com header.s=facebook header.b=ifP1R3KV; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b="Jc/3p5Zp"; 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=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731760AbeHBAff (ORCPT + 99 others); Wed, 1 Aug 2018 20:35:35 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:55770 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbeHBAff (ORCPT ); Wed, 1 Aug 2018 20:35:35 -0400 Received: from pps.filterd (m0044012.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w71MiY29025003; Wed, 1 Aug 2018 15:47:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=facebook; bh=7AYAukFdcneWJBU4zMC7XQTTScMKYN9G4zQ5SO9bwpU=; b=ifP1R3KVzLyKfGIZqoo8TeMVcXiWxTl/8b5br0TlOd93fWuD1AtmM5OB1wsHFw1ouZcc 4qbZat209Zbk0TZTMJbXzVDCDTJ94PyNvCUVD0J7k+PC3fiLPYMJUX56MDO7H4u7BqFL w39KjMqBtQGppye4jyjCtqAVM437lhGNoQo= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2kknrj80xk-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 01 Aug 2018 15:47:21 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.21) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 1 Aug 2018 18:47:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7AYAukFdcneWJBU4zMC7XQTTScMKYN9G4zQ5SO9bwpU=; b=Jc/3p5Zp5kWDAUUzLLvfokZnW6NS74/7kozoQAdgFPvh1aMsopnqQlRTStlJ3eJX4Sxt1XPfq5cG5on4flYSG6Xbpq0pJgF2biZbWO9O2Rtb4bDm3faw+in1VAQXDPjiWmHokxIZ1XFJoGuQKgsL/VOxLd7diSQqYX1c0dywII0= Received: from castle.DHCP.thefacebook.com (2620:10d:c090:200::5:7cca) by BY2PR15MB0168.namprd15.prod.outlook.com (2a01:111:e400:58e0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Wed, 1 Aug 2018 22:47:14 +0000 Date: Wed, 1 Aug 2018 15:47:09 -0700 From: Roman Gushchin To: David Rientjes CC: , Michal Hocko , Johannes Weiner , Tetsuo Handa , Tejun Heo , , Subject: Re: [PATCH 0/3] introduce memory.oom.group Message-ID: <20180801224706.GA32269@castle.DHCP.thefacebook.com> References: <20180730180100.25079-1-guro@fb.com> <20180731235135.GA23436@castle.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [2620:10d:c090:200::5:7cca] X-ClientProxiedBy: MWHPR14CA0061.namprd14.prod.outlook.com (2603:10b6:300:81::23) To BY2PR15MB0168.namprd15.prod.outlook.com (2a01:111:e400:58e0::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8b06a4b-da60-40f0-d0b8-08d5f800ba37 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BY2PR15MB0168; X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0168;3:jflHX1ai1+RnLJtJYrammPyJjkrzuDkNdQrG2I76RxxK/ZBV51Po05BTQP2TmB09/N1KA7DIFbVKCrHdnaSOIrlsSYmLWyFuUGuKaWRccOVoZ0oacachSri36MQxIJOSYMuIdld4Yzjb/wies11dRzkgbhdMTHoe+0mksuqaAQmN0ISM07aqCoxSU8hjf3N9HnsXWX4EAv8/dotJ0GTymTHlj9nmPVxL6s50FNqeUGrAREyJmWYtbFcBB/Hs7xz8;25:Kq6OhgQEDRabuMuh+1s2t36HyM6DW+lpJHNXdXZW2W1SmnY75eWzKpqG3hT0qorjT0OLe1fK3w9Q2nMZT1QwbDYO2lXxNu032QPxXH+Cf/U3pljW0lBfjZr3bXFsi+d9bvIGf/B8p3geWEJQ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8RlPkFDvJ1r9t+KwkOu2Dr825AizQwc9In9Cyzp/AEbP1axT8OsdFXiVaJ/GBvTKTuy2/DMZLYFrr+VQdGYv5pFd8xgwGiHt5mtEzwETP4NFQrH+hqaW4M/K7PII7QK5JIvN+64TWhaS18XXkfIxXnUtUEOKQSTV/DhDjbsF8qZla0r9GM1VcvNTrtMtXn/CYlUbX14b4RqqdzMlhFTnGHconVWL7W26RaE6MG2Z2UrRikGY/iuDlOqi46wrfcCW4qZy2GQfOc X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(17755550239193); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231311)(11241501184)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:BY2PR15MB0168;BCL:0;PCL:0;RULEID:;SRVR:BY2PR15MB0168; X-Forefront-PRVS: 0751474A44 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(376002)(39860400002)(396003)(346002)(136003)(366004)(52314003)(189003)(199004)(51444003)(305945005)(14444005)(7696005)(54906003)(5024004)(386003)(68736007)(97736004)(6506007)(52116002)(6916009)(8936002)(6666003)(52396003)(8676002)(81156014)(81166006)(25786009)(316002)(6306002)(105586002)(446003)(106356001)(58126008)(11346002)(16586007)(23726003)(86362001)(9686003)(7736002)(1076002)(4326008)(486006)(478600001)(33656002)(47776003)(46003)(476003)(966005)(6116002)(53936002)(229853002)(5660300001)(76176011)(6246003)(55016002)(186003)(2906002)(16526019)(50466002)(93886005)(18370500001)(42262002)(6606295002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR15MB0168;H:castle.DHCP.thefacebook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR15MB0168;23:e656DuRgBdXaFzDzHq+9Xj8LfjEfnvHAkgrQljhc5?= =?us-ascii?Q?Tnzq2x6P/5Gp3+Tcx+TRtcjDOhKQx7dmoDU7Il5VUgykA83l8d4B6iP8Oazu?= =?us-ascii?Q?jNvdQPkX+spxNyuB8ZTwuHdt6VltnnbH3Pnny8xptJYtRcSDL4wSvkUjqetK?= =?us-ascii?Q?eZ2jZpfVjzHnHLUVk840jmeOONRoPeZSSD2sHl/uzxgxQiF+UExr0lxHE18y?= =?us-ascii?Q?hh9Gw0KwPh5GHOaAmR2bYE7c2/sNOKggD5VxIvwuYbQJ9UXX7dZinUNQMONG?= =?us-ascii?Q?c8XnKycZiintO1Xd2ozINOYOYg9QX0GNa48R9rUaijrMU1bZ0RzZC0nXHfCy?= =?us-ascii?Q?s7Cmeb9bC8Hls4NboRNNfrVbUnNMLwtglzT45auruCVhd2oLQwVmO77zuvQ/?= =?us-ascii?Q?NojXgypwR1TKcVmYV0ZR0GXZ0lsvtqZg8CFzPgVUe0aBmXHAlVobe711cDjV?= =?us-ascii?Q?VldWjQ8/QA1sWEwVMGOkdhXvekm6jY0w9jblC+uQiHEdmwj3UvdVdZsfNVEU?= =?us-ascii?Q?S7Slb2PAbaQjG6byCCIQauHfVzir9YHPbTlaHUshWeH2TvpAJDrd+44QpRnn?= =?us-ascii?Q?AHdaQpN9kvMyaKzmTHp0slBP70FbfAw6DlC9ug514Pb6Q32JEZKEsgUPYfEw?= =?us-ascii?Q?k1h34GTXMmowTj1eqXOC7RksGOaV5+e2eD1d9kF2NRfc4Fz7rAWajyVJAyZr?= =?us-ascii?Q?4R+IlHRaN97NRQL7TqIQOHwgF9u8VVsvJcrsxn8eTR3FaI7wPYkfg6bU/IK8?= =?us-ascii?Q?zIen66frk4DSxr5NBV/buA/Fzwe/EUP8sqAnaIZa9TJC29b8P+qfM52rxobb?= =?us-ascii?Q?LKPn2YT45Hrshy6OUOjSjNmRUjHSMppVudl2FfCzi4dm2OPSzCUJr8uX2nGV?= =?us-ascii?Q?OQ3wGIYESA/r+yiUQmGPzM4Jz7mkwAp6fgqeyHfGVKjjVwL9cf43H5aOQ4gG?= =?us-ascii?Q?WXF1HtYcY/nFnmJWRRHhB9K8gYSoFd2XHG/QEmInO2n9DjzXH7ZYYCQiU0c0?= =?us-ascii?Q?XZf5QN61GfaKaT1a6eHW1UV0Ykrme2nZwufX628Rf0vsZ34S/SAJZ4tWclVB?= =?us-ascii?Q?EH15UsLhfhF2oR6/5rOl5ajxEbDrca2T2wH/ms03a7pV7AAgWIhHKUY4ufTg?= =?us-ascii?Q?NREguGDaQsMzryFra0qRIasYABQrVQYVkR/RaZpfturdHLvWVPIxx5+gmwgc?= =?us-ascii?Q?XOHUWx/+9F5o+z8VRkx2W1LU2i94Op9yYgxPF23g4GO77d8p/zuK9RRuwzrX?= =?us-ascii?Q?TAgKfaapq3731UHN2H+cdFmKxootp25WJ7vYqY2Rtg0bEytIsIHf3dfrATOm?= =?us-ascii?Q?USRtuQoSVGS+yPP0B6rlvh0LnXKOGKW2Yhwul2XOJ6OHL41kSfbXVPhQ6JYX?= =?us-ascii?Q?tV6/URx+W7AczUvPPobThLQ+z55qB1Bp0acvkwsH8eoP1S0?= X-Microsoft-Antispam-Message-Info: JE1DHu3MxnOLb+FHDqmXBHIVCQs1O1ujYh0mr4/ORgBPvTtUIR+pkorukCI0gYwsduSky3SeC250uauTU/SwQ16mLI2QXVNQIJK133wpkI10AyqtlsrkUVwruqMzT/5dsV0498ONh0QpqVjvg8fGjI+39g1F73tKWZIZqH9KV8HzYzH7U/ePmAgxXiItC5A7P3yytjn+PM2f8k8f+GWBXLhA2NFKZvUIBAFK5LUxuWHkLWhx48N8vpwa5Grwc5b427Lm/G98nmHguxSWUxuVLLhgW+7KVJHP2BmGUvs/IDty12zYy+GpGl3m77UU4fZnqp4WcP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x4oW6CobW0oZomU4HgOq5/IdYf3vcHApsDLZ8fA4pAoIY/bNJQfL4rsZXLw2wrjJHWbn5GzznHCxJu3+9tLMxUtumM5A5zh0PckB1cG5P/aNePtIlPBZILkPPReRMOFnkRBUoxDZUml0VYBcvqi62jn4Rl40nL3vK7o= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2018 22:47:14.4756 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c8b06a4b-da60-40f0-d0b8-08d5f800ba37 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR15MB0168 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-01_08:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 01, 2018 at 02:51:25PM -0700, David Rientjes wrote: > On Tue, 31 Jul 2018, Roman Gushchin wrote: > > > > What's the plan with the cgroup aware oom killer? It has been sitting in > > > the -mm tree for ages with no clear path to being merged. > > > > It's because your nack, isn't it? > > Everybody else seem to be fine with it. > > > > If they are fine with it, I'm not sure they have tested it :) Killing > entire cgroups needlessly for mempolicy oom kills that will not free > memory on target nodes is the first regression they may notice. It also > unnecessarily uses oom_score_adj settings only when attached to the root > mem cgroup. That may be fine in very specialized usecases but your bash > shell being considered equal to a 96GB cgroup isn't very useful. These > are all fixed in my follow-up patch series which you say you have reviewed > later in this email. > > > > Are you planning on reviewing the patchset to fix the cgroup aware oom > > > killer at https://marc.info/?l=linux-kernel&m=153152325411865 which has > > > been waiting for feedback since March? > > > > > > > I already did. > > As I said, I find the proposed oom_policy interface confusing. > > I'm not sure I understand why some memcg OOMs should be handled > > by memcg-aware OOMs, while other by the traditional per-process > > logic; and why this should be set on the OOMing memcg. > > IMO this adds nothing but confusion. > > > > If your entire review was the email to a single patch, I misinterpreted > that as the entire review not being done, sorry. I volunteered to > separate out the logic to determine if a cgroup should be considered on > its own (kill the largest cgroup on the system) or whether to consider > subtree usage as well into its own tunable. I haven't received an > answer, yet, but it's a trivial patch on top of my series if you prefer. > Just let me know so we can make progress. > > > it doesn't look nice to me (neither I'm fan of the mount option). > > If you need an option to evaluate a cgroup as a whole, but kill > > only one task inside (the ability we've discussed before), > > let's make it clear. It's possible with the new memory.oom.group. > > > > The purpose is for subtrees delegated to users so that they can continue > to expect the same process being oom killed, with oom_score_adj > respected, even though the ancestor oom policy is for cgroup aware > targeting. It is perfectly legitimate, and necessary, for a user who > controls their own subtree to prefer killing of the single largest process > as it has always been done. Secondary to that is their ability to > influence the decision with oom_score_adj, which they lose without my > patches. > > > Patches which adjust root memory cgroup accounting and NUMA > > handling should be handled separately, they are really not > > about the interface. I've nothing against them. > > > > That's good to know, it would be helpful if you would ack the patches that > you are not objecting to. Your feedback about the overloading of "cgroup" > and "tree" is well received and I can easily separate that into a tunable > as I said. I do not know of any user that would want to specify "tree" > without having cgroup aware behavior, however. If you would prefer this, > please let me know! > > > Anyway, at this point I really think that this patch (memory.oom.group) > > is a reasonable way forward. It implements a useful and complete feature, > > doesn't block any further development and has a clean interface. > > So, you can build memory.oom.policy on top of it. > > Does this sound good? > > > > I have no objection to this series, of course. The functionality of group > oom was unchanged in my series. I'd very much appreciate a review of my > patchset, though, so the cgroup-aware policy can be merged as well. > Ok, I think that what we'll do here: 1) drop the current cgroup-aware OOM killer implementation from the mm tree 2) land memory.oom.group to the mm tree (your ack will be appreciated) 3) discuss and, hopefully, agree on memory.oom.policy interface 4) land memory.oom.policy Basically, with oom.group separated everything we need is another boolean knob, which means that the memcg should be evaluated together. Am I right? If so, the main problem to solve is how to handle the following case: A / \ B/memory.oom.evaluate_as_a_group* = 1 B C C/memory.oom.evaluate_as_a_group* = 0 / \ D E * I do not propose to use this name, just for example. In this case you have to compare tasks in C with cgroup B. And this is what I'd like to avoid. Maybe it should be enforced on A's level? I don't think it should be linked to the OOMing group, as in your patchset. I would really prefer to discuss the interface first, without going into code and implementation details code. It's not because I do not appreciate your work, only because it's hard to think about the interface when there are two big patchsets on top of each other. Thank you!