Received: by 10.192.165.148 with SMTP id m20csp1128532imm; Thu, 10 May 2018 06:09:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrz7lSskYYlJZi78oOKbNUgzEu1APDNOtJovQx7w7E9oEU5DZApvZAXoTkRLk8XOmDHziID X-Received: by 2002:a63:618b:: with SMTP id v133-v6mr1085827pgb.285.1525957772931; Thu, 10 May 2018 06:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525957772; cv=none; d=google.com; s=arc-20160816; b=w1/7AAvgZVw7zYKs5hyOHIV8f/sqNuav4gKdLuB4MKpecdjxN3ZUrWADwAfRDvxXF+ TB74Nszx+zKPkqfwaFvFRXGulKgfRQCMZvEiME9nXhcqmS9oHFANdv//DkKVnzNpS/dv sUR12XOuJut/e6+wVlJsTjbq+IkveZ2Mjwv1Q07aHy3J/4c9LzSo1TAYUNuY94i3rONL nuXmlD+RtYbcoiCdHkrhzxcxwcTcLheYWcurbJ4CdOVAUrejmXB4+60uKTWriBnaK49r CCiX2EXmK1nE69OZkageN43jxEJzDK9C4yqKJ4V7KWu6ndLqCK3SFOwUNLhlwx6xOud9 gg8A== 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=4zhAqBKQ6HUEK7FjKe1by0nYpyVrb0QXlnDByInuo1g=; b=Ut3kRU/8wms82ipQdh9Hv1DaQddvMODvam4TjfN59w4+dUD0ZysnpJo6F/5AwpRyi2 X6QS9rHsjukF8sSODxbH6YfIZXKxZmITpC06XdJpK4YNVXZzAFUNNHWOVGwQZnCpFwVJ sIdRlzGzD5uovuq01DQXTwV8/iLyM+5j2Y2JG74r7jmX9uLE+J5PQUyGK+vc35jk/c6H 8GsFRYVeCXGn65EfSumlE9yHwc7eX6Tw7Fm7VmCKSkx3XWMdB/QFqu1CA5yPfopoTe0f 8bb+uZDVPC9ci0CWoA/bNAHm7AFQoYe1oThkc/ui9tZcrYrWilbMcK9RGxASrbQk8OCU bE2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=K2k6brMr; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=KSuRrjpm; 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 o11-v6si664975pgf.542.2018.05.10.06.09.17; Thu, 10 May 2018 06:09:32 -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=K2k6brMr; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=KSuRrjpm; 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 S935419AbeEJNIf (ORCPT + 99 others); Thu, 10 May 2018 09:08:35 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:56716 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757185AbeEJNIb (ORCPT ); Thu, 10 May 2018 09:08:31 -0400 Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4AD5FSh028677; Thu, 10 May 2018 06:08:20 -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=4zhAqBKQ6HUEK7FjKe1by0nYpyVrb0QXlnDByInuo1g=; b=K2k6brMrZi0l+dendJqbKY/y92KnVi39hwl4BYcxTQL5c6EnwaHprMeho1KGrP3x+ckn FytqG01EScma+tpQyfKg/O1yEaIr3YYkXjevziwBTrxWClaJAjN079fIo3C1dv6woeuM /2dYYK/N5uWFvPOg8zsBGRazWlXoYJseDl4= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2hvkgrrcb5-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 10 May 2018 06:08:20 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.30) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 10 May 2018 09:08:17 -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; bh=4zhAqBKQ6HUEK7FjKe1by0nYpyVrb0QXlnDByInuo1g=; b=KSuRrjpmCAr3VnH/ou41KfbwdbxG4H3G8ApzK7uGTqNgvnyXGc5iGaleiBxWvWiD1x0ZYg3NqhvXXL5F8m3maiRHqNkVszkqHQMoBY86w73Lm/Mh/ZLlFg37UzpgVYqytStrVd1d7mh6yxdtIzA/wQ/Y77hLrahXfsgHP4SQ5Bg= Received: from castle.DHCP.thefacebook.com (2620:10d:c092:200::1:8c3a) by DM3PR15MB1084.namprd15.prod.outlook.com (2603:10b6:0:12::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.18; Thu, 10 May 2018 13:08:12 +0000 Date: Thu, 10 May 2018 14:08:04 +0100 From: Roman Gushchin To: Andrew Morton CC: Johannes Weiner , , , , Michal Hocko , Vladimir Davydov , Tejun Heo Subject: Re: [PATCH v3 2/2] mm: ignore memory.min of abandoned memory cgroups Message-ID: <20180510130758.GA9129@castle.DHCP.thefacebook.com> References: <20180503114358.7952-1-guro@fb.com> <20180503114358.7952-2-guro@fb.com> <20180503173835.GA28437@cmpxchg.org> <20180509180734.GA4856@castle.DHCP.thefacebook.com> <20180509153805.2a940eac8c858398fb0f4b0c@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180509153805.2a940eac8c858398fb0f4b0c@linux-foundation.org> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [2620:10d:c092:200::1:8c3a] X-ClientProxiedBy: AM5PR06CA0010.eurprd06.prod.outlook.com (2603:10a6:206:2::23) To DM3PR15MB1084.namprd15.prod.outlook.com (2603:10b6:0:12::10) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DM3PR15MB1084; X-Microsoft-Exchange-Diagnostics: 1;DM3PR15MB1084;3:bF9s4HoOptRwsPyUFKR0xY+SuOWGdCSOgXLFhFRFFF02KN0+EFvPG+QCtu5YKO2OrNVHgOQjFFpNABIgEo2oy/UsPBs9o85h9VbHNJJo8cEesAe8LjqES8T+1dqxY1SZK2I6nU1GXLtbSNX9kKwwykp0FlFETSf/O5eyc4WAezgZqxHkV7mZ5Dts1KXbuRLIRQZWsXDNXOiFvTRShjlYN+4jVjnmKYvqYsvETQiI8jx3ODTcQ8MO382+zVUyoZHj;25:9n4RcglKK79B1mlnQeVlTExrD+1CE7v1SHRwIdpCu2CobRuwcmQ0oP47pqOI0Ez4VL1JdsxfCSaT5eyIg6bKgZJlxMgbr59SDHwdxp4mZlEQ2QVADdhsTKdp9plKeBudWxqfWVVxlGYz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tJ+sy2hH2lsVFpibhdseARtW+sHVQrmfEvRR49BA46SyH/xeuEIfF/RIMxU3uW2GZxvpAbdr7JCO/D1Q1LFEZ9JM+u6/em+6YhHM7+kY/HxGOx3bZ+9h2LmhGzp7yO+vLGNyZzgUokNCOj140vD2ujQhDb13yEfjPTVlZ90t6W2ysQovkSvvqsFYfIpRgCEpSsOlc1Vakjs2VUMhcHw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231254)(11241501184)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:DM3PR15MB1084;BCL:0;PCL:0;RULEID:;SRVR:DM3PR15MB1084; X-Forefront-PRVS: 066898046A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(39380400002)(346002)(376002)(39860400002)(396003)(366004)(199004)(189003)(50466002)(46003)(8936002)(446003)(6506007)(486006)(476003)(5660300001)(47776003)(229853002)(478600001)(53936002)(6666003)(59450400001)(97736004)(386003)(52116002)(8676002)(105586002)(1076002)(186003)(106356001)(23726003)(16526019)(81156014)(25786009)(6916009)(7736002)(68736007)(52396003)(16586007)(54906003)(81166006)(9686003)(316002)(58126008)(7696005)(305945005)(6116002)(11346002)(6246003)(4326008)(86362001)(2906002)(55016002)(76176011)(39060400002)(93886005)(33656002)(18370500001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM3PR15MB1084;H:castle.DHCP.thefacebook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM3PR15MB1084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Jk?= =?us-ascii?Q?xRKRpEd9LkcwsxD/O03GQiLW8FVOL3Xeksqp3A4I357EgQ86aDvl6fz+ML1I?= =?us-ascii?Q?q94DdHer7WuQZFPJX1FhnvvXL23snB/eancL47ZoT+HwvpeEtrUwAv8w72Gs?= =?us-ascii?Q?Fms4iVGlIWmmOQuwNHo3AQG+TLTgrZ1Gn+TOzwof0Cvu+x9/xO1oQEOaZ3Iw?= =?us-ascii?Q?XQoPmBGqZCqeedaDeru04pNbRIRc7wy76AZVq18fDfTgxZ62Dq0hmhML72rW?= =?us-ascii?Q?3jEkYllNCyNscERyNykQtSQsEjCLiMOJ3cDWV061GgOes/SUHFgXZHx+jDfU?= =?us-ascii?Q?DuYp5qrR+W/LtqnLGpFOSO6XnGvUGCOXw3x/RNE0erA5KpTJ9/POqsephVnV?= =?us-ascii?Q?xgP0CTBlP1iJNKUBhx9LrS/ySBO8wUi2XV5bXEvBweKY2hhu7GPXXpPohbq/?= =?us-ascii?Q?8ZGrZaEqF15XYLCCcK//jtqNTMhAGiWT3yb9R1s4IOF?= X-Microsoft-Antispam-Message-Info: u2T3g9gaDz41oz8TSctwfDtjbFsKB7lPTySGBINbYclRwjrPaIUjG049t/OCogn8VtPfj3KrMhBP05pHm1VKsES4N/YLLttZGLwuMpp2DWp57ddFTK/b4pbwL33smqNcO5NzqUrtwCyD8Fkotch25Vyp9rghRG42aR7bnYWJTShIVNJZIo7K3+rAyL777gAo X-Microsoft-Exchange-Diagnostics: 1;DM3PR15MB1084;6:nrz47bFoFypnK+lOdDg+gFw9SC7x7fZUncPuI6RIetclQHZzPp9GZiIN9lX+GkXYTmGTEE1xdV9BJvhJ4tpXR0SUMslmpAY8VuHgk6PFnmGvzBWA2YZa7vlJz0XBAj9GYjT/3wHa/oxe0Tp9PjjoswkQFxd0/Jm2ffMZQ3+2X4/9eUVLSjUu9yujXn57dervC/LZ89rIGrQSGOARZfHqNWSRMS4wiizY3gWAUXtn4lE6/aeSVJ44AIYbRMeYTRCOY+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 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2018 13:08:12.8418 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fd2ed0bd-9859-4578-0aa5-08d5b67716c5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR15MB1084 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-10_06:,, 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, May 09, 2018 at 03:38:05PM -0700, Andrew Morton wrote: > > > > Memory controller implements the memory.low best-effort memory > > protection mechanism, which works perfectly in many cases and > > allows protecting working sets of important workloads from > > sudden reclaim. > > > > But its semantics has a significant limitation: it works > > only as long as there is a supply of reclaimable memory. > > This makes it pretty useless against any sort of slow memory > > leaks or memory usage increases. This is especially true > > for swapless systems. If swap is enabled, memory soft protection > > effectively postpones problems, allowing a leaking application > > to fill all swap area, which makes no sense. > > The only effective way to guarantee the memory protection > > in this case is to invoke the OOM killer. > > > > It's possible to handle this case in userspace by reacting > > on MEMCG_LOW events; but there is still a place for a fail-safe > > in-kernel mechanism to provide stronger guarantees. > > > > This patch introduces the memory.min interface for cgroup v2 > > memory controller. It works very similarly to memory.low > > (sharing the same hierarchical behavior), except that it's > > not disabled if there is no more reclaimable memory in the system. > > > > If cgroup is not populated, its memory.min is ignored, > > because otherwise even the OOM killer wouldn't be able > > to reclaim the protected memory, and the system can stall. > > > > ... > > > > --- a/Documentation/cgroup-v2.txt > > +++ b/Documentation/cgroup-v2.txt > > @@ -1002,6 +1002,29 @@ PAGE_SIZE multiple when read back. > > The total amount of memory currently being used by the cgroup > > and its descendants. > > > > + memory.min > > + A read-write single value file which exists on non-root > > + cgroups. The default is "0". > > + > > + Hard memory protection. If the memory usage of a cgroup > > + is within its effective min boundary, the cgroup's memory > > + won't be reclaimed under any conditions. If there is no > > + unprotected reclaimable memory available, OOM killer > > + is invoked. > > + > > + Effective low boundary is limited by memory.min values of > > + all ancestor cgroups. If there is memory.min overcommitment > > + (child cgroup or cgroups are requiring more protected memory > > + than parent will allow), then each child cgroup will get > > + the part of parent's protection proportional to its > > + actual memory usage below memory.min. > > + > > + Putting more memory than generally available under this > > + protection is discouraged and may lead to constant OOMs. > > + > > + If a memory cgroup is not populated with processes, > > + its memory.min is ignored. Hello, Andrew! > This is a copy-paste-edit of the memory.low description. Could we > please carefully check that it all remains accurate? Should "Effective > low boundary" be "Effective min boundary"? Does overcommit still apply > to .min? etcetera. Except this s/low/min replacement (good catch, thank you! diff below), the rest looks fine to me. Memory.min and memory.low are similar in their hierarchical behavior, so most of the things still apply to .min. Also, can you, please, add Reviewed-by: Randy Dunlap (which was accidentally lost between versions). Thanks you! -- diff --git a/Documentation/cgroup-v2.txt b/Documentation/cgroup-v2.txt index 1764a627a120..f6725628bb4f 100644 --- a/Documentation/cgroup-v2.txt +++ b/Documentation/cgroup-v2.txt @@ -1012,7 +1012,7 @@ PAGE_SIZE multiple when read back. unprotected reclaimable memory available, OOM killer is invoked. - Effective low boundary is limited by memory.min values of + Effective min boundary is limited by memory.min values of all ancestor cgroups. If there is memory.min overcommitment (child cgroup or cgroups are requiring more protected memory than parent will allow), then each child cgroup will get