Received: by 10.192.165.148 with SMTP id m20csp4739305imm; Tue, 24 Apr 2018 07:40:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx49c+UCgXqqeoE1HE7Zw4GVrIwWZQA9Gmvl/VRDDsnQd+p87TOTMUeKczILCXhVAxEUXjHp/ X-Received: by 2002:a17:902:822:: with SMTP id 31-v6mr17598297plk.172.1524580857614; Tue, 24 Apr 2018 07:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580857; cv=none; d=google.com; s=arc-20160816; b=MLTxuuOb9fUg0s/y0sUVQfTPppMGu9askXP+ETL6/96kRl1GmuDhPepjtJWvImibQu hZjntgalUAOfp4GJC6Ajd7vuebj3ck6wN19ANB/HNd3F/y021eNkptWxCd9z8SbAvBlF zQHKi4MCh6cVv4RtnfVycpHhzNLDFZFbmQmJcdJsSlmHtANUYmcc+Z/aaecxSEfDN0st EQzzBK3U5k1POJnm0mmahSdS0WLZTBgIeTMthltC0h+xCFhki6/fKY9x0m10EkRTOiWI WXoVlkFrS0dIxfrWdKaXgVkZk1/2nMoRKIM1GGVce4xpFamPmqf6AfE91uaZor3uvCpk aWQg== 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=sqHu+op4fJJFb9Ol22JNZBTwtb8+xMObI3Cu2VMDp28=; b=TX1ZsyKs0YlH7hvhKwx9W+s6nZ9B0qZ6zHp7mtwM4s7fKXeiEdDvKbbINiwMsF9OQ0 OL7kYlrzw0pFBy58rnNh4Ln5LIlFVk8hfYQTs0pQTIM0bAzL6WCNFdS4PlNjgmr59d/V /wlbK1wHuuyxhXhNDt9te1KvrkIf45LSqaMmedPm+393ztsttzPXYjiyVCgCQSpuYjIY zV7RlAvab3zo28VywDwUEkHqGwshuni6fpamU0FrgM5VELzTB63SEeLBYkySGv4iJjZO guIRqlSQcqJTuA+1fidzsr9Xa1Vs15T2nr+v6mkfO24I/5RLBHA7ynaBNTIBwq0UtJOA hWyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=PlnjQ240; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=Xv573Aqr; 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 c22si13689956pfe.29.2018.04.24.07.40.42; Tue, 24 Apr 2018 07:40:57 -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=PlnjQ240; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=Xv573Aqr; 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 S1756267AbeDXOg6 (ORCPT + 99 others); Tue, 24 Apr 2018 10:36:58 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:59366 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756187AbeDXOgh (ORCPT ); Tue, 24 Apr 2018 10:36:37 -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 w3ODUafI006804; Tue, 24 Apr 2018 07:00:24 -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=sqHu+op4fJJFb9Ol22JNZBTwtb8+xMObI3Cu2VMDp28=; b=PlnjQ240wjS/e2oIMpjbGQ7dJa/SYBoYV0V2Is+cbRbQnAtqoCPsB7Eu73lnSyecsfRy ++p9wmAtdDVrltxeR1s3O8JV/O8OY1fqPR+FCf7MSHMn+iuLPXZqqYRoFjax9nv8TmU+ lJAKh/MHpQslzr2o6BaPhy0DjWrBoEQ8bho= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2hj0v0rpnn-3 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 24 Apr 2018 07:00:24 -0700 Received: from NAM01-BN3-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; Tue, 24 Apr 2018 09:54:34 -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=sqHu+op4fJJFb9Ol22JNZBTwtb8+xMObI3Cu2VMDp28=; b=Xv573AqrhUBfgZPfuUuwN3VkAJLwlFgcVGHLqfe8ZQ5W7Owjf/MsIp8N4iVIBO0J9OQjXXPDB3hDyJLV/tRrBzSAD2x7fBfv+ztyYvpl+WvwcaGaOVOd09DLSlEOzQG34LSwk6cLux1xKHW20hxGGtte3DvA7dhDs5QjYC4HdR0= Received: from castle.DHCP.thefacebook.com (2620:10d:c092:200::1:8959) by BL2PR15MB1076.namprd15.prod.outlook.com (2603:10b6:201:17::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.12; Tue, 24 Apr 2018 13:54:27 +0000 Date: Tue, 24 Apr 2018 14:54:15 +0100 From: Roman Gushchin To: Vladimir Davydov CC: , , , , Johannes Weiner , Michal Hocko , Tejun Heo Subject: Re: [PATCH v2] mm: introduce memory.min Message-ID: <20180424135409.GA28080@castle.DHCP.thefacebook.com> References: <20180423123610.27988-1-guro@fb.com> <20180424123002.utwbm54mu46q6aqs@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180424123002.utwbm54mu46q6aqs@esperanza> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [2620:10d:c092:200::1:8959] X-ClientProxiedBy: HE1PR05CA0164.eurprd05.prod.outlook.com (2603:10a6:3:f8::12) To BL2PR15MB1076.namprd15.prod.outlook.com (2603:10b6:201:17::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:BL2PR15MB1076; X-Microsoft-Exchange-Diagnostics: 1;BL2PR15MB1076;3:qcp+j3TMkGgeAoo0jX43wFy0z1G2orc8Spv3EleRQwqo6qCNQxDQ5tCY+pBxNPe6s1W+t79ikN+5H4eeUdkGJOnumDOKYQClBj9aBOTVW2MmpApz+0NtVwe4DIxgLE/HSkm9ud+0rlE/QXGlLw5kgyxHvqfjhodz7ACMA7svw3jBUWQUzfD+de44PlwN13dqZvaqJ96vvaqNR+ZN3xKMQcIXCd8m7OdA2m8Hr+AHHaAp2foTIBSg+mMgYax3wNWS;25:c4p+dEVV4H85mp81mjmqGVS7OGpLp3u5O6ZofhdukH2AL8Z0NCpO34wUTmuLo8eSrqblYHEJh4I/IIT59npkH0JQrR4Xyyfdo3fB0auOL7ulJJTXhPc8UpVEsxMT4u9alz6Uk5PKP4BV6ar5SzupJy+NcGnxt5vHTmYnEZKEDK7jh2yvlfuIGmttxb4f2urDtGCixneallht2G4PI5YckcdcLKqjlcA6YLqIPY7igTB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nYtbuxD5/1+AQjeN2fQdkRC8Lfjcj15/+xyOA0jAWOqYG3fCMqzh66GDPhmXxKOyt1kMF1tA5xCl5z57NkxDgdr1sF2saebTapMqlK0JOh4qPQLIpdiYTa8k+5RNYw0qf/LXsOL/tppqnYymuZEkpGZlAMrJZWJ4jzbsw3AjVMEiHXre+zLFzgWS1HPdqpcPISRpAr0hJ5GBlKMFGsdQqTES4aQil3OFI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85827821059158)(67672495146484); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231232)(11241501184)(944501410)(52105095)(93006095)(93001095)(3002001)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011);SRVR:BL2PR15MB1076;BCL:0;PCL:0;RULEID:;SRVR:BL2PR15MB1076; X-Forefront-PRVS: 0652EA5565 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(346002)(366004)(396003)(376002)(39380400002)(39860400002)(199004)(189003)(53546011)(6666003)(7736002)(59450400001)(305945005)(53936002)(7696005)(6246003)(5660300001)(6916009)(55016002)(52116002)(52396003)(386003)(76176011)(33656002)(6506007)(25786009)(68736007)(39060400002)(9686003)(105586002)(6116002)(316002)(50466002)(1076002)(23726003)(5890100001)(97736004)(54906003)(2906002)(47776003)(16586007)(58126008)(229853002)(46003)(486006)(476003)(575784001)(8936002)(81156014)(81166006)(8676002)(86362001)(186003)(16526019)(106356001)(446003)(4326008)(478600001)(11346002)(18370500001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR15MB1076;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;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75fs7MWCxDrC3OgRrukDABqr7koion?= =?us-ascii?Q?wIfiG26RLpFS3EgOOm+92C1TlNc72et1TyEAM6JRwUSYGsee0qkccYasV0Zr?= =?us-ascii?Q?O71RHNnljs9JWIzMxzeqjD4gQmipeJgkPHRILXskVNy/+I1M4767WEdvyirN?= =?us-ascii?Q?qMnQI5jD4ZkNHnxvu0TMA8YTQX7FA51kDmV73ATHuyQcNRWpR4uw0r8pSNR7?= =?us-ascii?Q?rj0UuVm7BJIUZ8hIEauoWdgavxSQ9vgqnZVV2b+iHGgVtTqFJQPhNuL+tkW+?= =?us-ascii?Q?cpympeOnPfgfdgu9jumShgcr0qTeqHdBxykyuZRHBIfalaZNW5I8zKHrT4a/?= =?us-ascii?Q?2O/9YLlXQqyIV0V9YX1ASr874mHAQ1B6zD6fI7Qw6ggEd8/sEIpaloBlttGn?= =?us-ascii?Q?EWGxDrqUEB1PjWz1NLZXquTsC5cMKReWIWt920UcdNsnJKg/LHGf/PdeyGsa?= =?us-ascii?Q?dV9RcYR9pJGzJxE86EdQthbRGx56PM0ngcmsFVlOZuaWESSIwC8crgqfBUv1?= =?us-ascii?Q?ni5HwWr8IY900X0kvbHFLCsnFo=3D?= X-Microsoft-Antispam-Message-Info: 5AgNZzYDl3UGeKe5dm4o/4rkdTD8a3eKVO0BnEh/vijy5LOBXzTm1Qo/D/5JuVTOgzTHpqGVIUx1XcaIfDVyaMA0PZIvlg8WZhkqt+egoyGilw6LsVMT22yhYJ88fc5xm32UgqMnzNkaSPkmCcyTxbY7cHIeO4DMDnEmCEcDLggS2QtDa200Qnf6Sq9LRMer X-Microsoft-Exchange-Diagnostics: 1;BL2PR15MB1076;6:wSoNhSZafzM3e77sMucBdCrSJNVG/Qgw9NMj2LfiNwa0oULA5f6Fz5VrQg3VN4JqFhtfuCtBdZIEj0cnMKOcK7HzwoK3nQA7rp9cIQj25j2ruWFhu73GcoUmL30E/B+RYNPyvbegbr5cphSITTH2W713vf/3BN06Bg6PnC6dXr+Vmf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HAm/qgN7tTeddW0= X-MS-Office365-Filtering-Correlation-Id: 241ef3a0-0eea-43a0-80d1-08d5a9eae644 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2018 13:54:27.7120 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 241ef3a0-0eea-43a0-80d1-08d5a9eae644 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR15MB1076 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-24_03:,, 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 Hi Vladimir! > On Mon, Apr 23, 2018 at 01:36:10PM +0100, Roman Gushchin wrote: > > + 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. > > What will happen if all tasks attached to a cgroup are killed by OOM, > but its memory usage is still within memory.min? Will memory.min be > ignored then? Not really. I don't think it's a big problem as long as a user isn't doing something weird (e.g. moving processes with significant amount of charged memory to other cgroups). But what we can do here, is to ignore memory.min of empty cgroups (patch below), it will resolve some edge cases like this. Thanks! -------------------------------------------------------------------------------- From 54a4f4fc9f8a6847c8a5814c53f0b575010808e5 Mon Sep 17 00:00:00 2001 From: Roman Gushchin Date: Tue, 24 Apr 2018 14:44:14 +0100 Subject: [PATCH] mm: ignore memory.min of abandoned memory cgroups If a cgroup has no associated tasks, invoking the OOM killer won't help release any memory, so respecting the memory.min can lead to an infinite OOM loop or system stall. Let's ignore memory.min of unpopulated cgroups. Signed-off-by: Roman Gushchin Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Cc: Tejun Heo --- mm/vmscan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 0a42ab1ce42b..e563d67de787 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2549,8 +2549,11 @@ static bool shrink_node(pg_data_t *pgdat, struct scan_control *sc) /* * Hard protection. * If there is no reclaimable memory, OOM. + * Abandoned cgroups are loosing protection, + * because OOM killer won't release any memory. */ - continue; + if (cgroup_is_populated(memcg->css.cgroup)) + continue; case MEMCG_PROT_LOW: /* * Soft protection. -- 2.14.3