Received: by 10.192.165.148 with SMTP id m20csp1739005imm; Thu, 3 May 2018 04:46:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqjBJ9HNc8d6BIRpgSY1axwxOaLypWr3mueVt5kAqckhSTYAULjoWHDZqCtiJHWxyEKU6HK X-Received: by 2002:a17:902:8d8c:: with SMTP id v12-v6mr23542921plo.366.1525348013266; Thu, 03 May 2018 04:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525348013; cv=none; d=google.com; s=arc-20160816; b=xvq+UbciBJQTnnQ3OOX8DfBKA7xCdcgaqgoskCBvSmWzxeVw7RRu55y/Cv3W6mF/PB +L95HcfW/Ax7UizNUa5wdADbBKvt2mbkn5RxMKxuil+eCemOO6zKJLTP3S7+W0+3GzaP MLAHJDQ6enuxa4/O6+DDA570e1wfbf3dRrSisBkxsmYiNunqnZm5GuqNteplAmo9R09U Dz0nKp52BAuCWJy8dsBs800gQs3q2S3CeiIuFAa1/eTFj98aYXHioRfp7sVHuvueFcef x4JHEqt6LFQgnfOWrLckrg5V3dkVUAWZGPc2gt+qBKkpfJsMd3mB7w43mbweRPzhmlIv ZDXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=BEJDzgUVFcDVEDduYEr7Eg8yuuLZwWdoKtBiOgweTqY=; b=tuhQhBFgdiOmyVz2IWNbiHzpkTdBYWictHmLR1zMBx8EtoEBBjjmOQvSwphnbaZcW/ kC+wMPDTNAwrNUtAYAwju7sqOrVDhVdJVB15CDaJr4325UVBMfq0DodK9lqhzfllwtUq +lHdIg5ZZMdRRWAYftQgC+cRbGU2Pqnch1F7sPdo6GeMS2j92t+ZzP92hOlZhSmZgKbe WstEEm+rOkDBvwJcTr84bqogPbKyrRRoRoQt3UMW4YFQCZu/R4ipn6yt6mStwLztsp5Q kc8lqm5nYDAtqK3ceKU5gPvswOJ5k6qd1a0bk7VRYesWodn7QWYpZDudMBieuJcgepBu dFrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=C0kDMCJ5; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=iejiaxh+; 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 a12-v6si11518497pgd.102.2018.05.03.04.46.38; Thu, 03 May 2018 04:46:53 -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=C0kDMCJ5; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=iejiaxh+; 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 S1751354AbeECLpP (ORCPT + 99 others); Thu, 3 May 2018 07:45:15 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:46988 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbeECLpN (ORCPT ); Thu, 3 May 2018 07:45:13 -0400 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w43BXPoa031244; Thu, 3 May 2018 04:45:04 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=facebook; bh=BEJDzgUVFcDVEDduYEr7Eg8yuuLZwWdoKtBiOgweTqY=; b=C0kDMCJ5UGmZXClHSVWYSAG2qPFhqb4MxymZ6V0fyiDgNtHve//68QXuUmeCnZyiCKUn 9DIzfqe15KMCPQ8lgWIERvEdcmwAE/5vHLULoKwR8ssHgvWF6TwMD7jMraTfUATpsqPf IzVdwh6ht9qUFBXafCZixMptcEW4l++MY9g= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2hqye38ay9-2 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 03 May 2018 04:45:04 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.25) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 3 May 2018 07:45:01 -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=BEJDzgUVFcDVEDduYEr7Eg8yuuLZwWdoKtBiOgweTqY=; b=iejiaxh+8blkx6uXv0kXr1tmUi/7BQrKO3HHRi7a8zWgl1kgGqjZvCcOsij9nZ3arDOdCZsyTSs4ep0NYRjh7G70D8b5WWWIujMP9MVzO5YexFQLGgOVXbzyuvMymLRjFU6eBkleG5nF+1nKnO0SzqGupFMlEJdZYgwkmXOCwO8= Received: from castle.thefacebook.com (2620:10d:c092:200::1:d1b9) by CO1PR15MB1079.namprd15.prod.outlook.com (2a01:111:e400:7b66::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.18; Thu, 3 May 2018 11:44:41 +0000 From: Roman Gushchin To: CC: , , Roman Gushchin , Johannes Weiner , Michal Hocko , Vladimir Davydov , Tejun Heo Subject: [PATCH v3 2/2] mm: ignore memory.min of abandoned memory cgroups Date: Thu, 3 May 2018 12:43:58 +0100 Message-ID: <20180503114358.7952-2-guro@fb.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180503114358.7952-1-guro@fb.com> References: <20180503114358.7952-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c092:200::1:d1b9] X-ClientProxiedBy: AM5PR0202CA0024.eurprd02.prod.outlook.com (2603:10a6:203:69::34) To CO1PR15MB1079.namprd15.prod.outlook.com (2a01:111:e400:7b66::9) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:CO1PR15MB1079; X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB1079;3:kY8zUXG93gCqxTSY8DrldqzUX5Lca0OAepJ6ITq++AysKSWfdJBtKG2/OrJt/vAKcekYJGw0euKF61DglLaCaURYc0SltpZGs64W+VbMO/CjtxSq+yMFiFpqzCo3LWkNkhWJen8LLryhpB6/27LJyq9khYIv+dlCBdLBYIXBmpw+pjBFrT6RGp3+0gdjIAw5tmigmf0UJe1GKb4ta+LawDVHKprnYSqMZ96jsQ5aDGeIqOzZkvZAumQo3+UPo/7Z;25:SWS9JzMRXwnYzH89nnuUZBU44cC0Av/9r6WMUKWZ0QQYbYUhZx6XvJM4dkghIow1t1V/OOJ62xprC9B4qtPRFTpemwLtF84f0xqmoq97osjtjHvDRY9QqucB4D/rnSOgtn9kCleSWoQ/khEIDb0kwYgMhxGzEKVApzlEXJ2nylOM0UjAzBBNVEOj9yeIt4QJjd5808ac/oqX2wBJA/zwaqqQxZHL9tw4CXEQ+CFVmxQzB4hq4e9efwD+AwwYylq7rqo9rnlecXP5cFizBVEW+vK19pv5klDee/AYd2Hbfn2fMcH5X+6dtdrWwi7uB9pSV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1GVQXl75zgx+ZCf0jAR6XDeUi5X0KSPZQBa+NZsZY6yzWujbzfQ+BRppHHcg+nWTCGHORvXjSjQrJ1qdt1COA91ZTmpl8bMp/7+tccHdKYT2eVLmEycq8a7U= 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)(3002001)(93006095)(93001095)(3231254)(11241501184)(944501410)(52105095)(6041310)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:CO1PR15MB1079;BCL:0;PCL:0;RULEID:;SRVR:CO1PR15MB1079; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(346002)(376002)(39380400002)(396003)(39860400002)(366004)(199004)(189003)(2361001)(59450400001)(97736004)(106356001)(50466002)(16526019)(305945005)(68736007)(4326008)(186003)(2351001)(86362001)(105586002)(2906002)(5660300001)(48376002)(53936002)(53416004)(1076002)(46003)(39060400002)(2616005)(11346002)(446003)(476003)(486006)(52396003)(52116002)(69596002)(47776003)(25786009)(6916009)(81166006)(81156014)(6512007)(6116002)(6506007)(36756003)(76176011)(6666003)(478600001)(8676002)(386003)(50226002)(51416003)(8936002)(54906003)(316002)(7736002)(6486002)(16586007)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:CO1PR15MB1079;H:castle.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;CO1PR15MB1079;23:Ku7zxunQ5rRy52/sH1p6jqLbyyTGdBoRksQ/ofUat?= =?us-ascii?Q?tobE+etebaqAVfle3JsljEIzu4SP93QOu7FuzATVKpbmP27T+e+WYFk+V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yXhhdhyeF+F1TB8Q3s7+F6s6+fLV7Vnr9?= =?us-ascii?Q?U4p4My78st++5i6DWLuSUCOS21XeSE6SF8/t5jp7L+bkV0ZiLYwiPTdxfQKt?= =?us-ascii?Q?VeJp5YiA/30oINBvRw194vx2MiDuVe8SnhjE9PPhC5VPPTV5RGWAEKqbEdaP?= =?us-ascii?Q?aRHxA5Fjt+zG8DvbIgeDrJhIRZRbSXx8uWj8Pz2h5JW16FVm+KTUDJ9MkGNs?= =?us-ascii?Q?lPSNEiokXdSrkaRnl/CVlXnIBxwwY0199Nui4uKdbCKEUBGGBDBLLKLXSb+h?= =?us-ascii?Q?V6Kn4rbX7MACNtjaLWTEvV/uPTJCsh6C5m+KyM+AWHWGVsQjuraO7tYqBTVu?= =?us-ascii?Q?YehwaF70OLH2T6LReMIxuMlYKIDFiV0gi/swHqOij4+?= X-Microsoft-Antispam-Message-Info: frxAwr9SU8y7bcF0lUZpvj3YcFn9y9in0trkSBXaqJs0C3N5smpzAWMBRq/8iuQSLu7AdLgGkxXAbwUja4hvJMDic6w19RJB8FThQl5XkicRAGeWqefV0c8kQL+UtPakO8xXxYwQbhNTGaBr5x+AfIR/cL3HRSCtl7EnROk2XMndFbMaoqpsVByQ+eaa6w62 X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB1079;6:3IeJRYQNVD36AdRHJuLapu3zfTAb861UxVxhnvQBxfmeOA7kfD9QRWDaO2DhIUOIWAe3N/FDkUB2Q9nO7jGCVO30NL/E5zhdVQ67no6sVnf51hWX7vNYrgFovCzt8tX6vJNdZZPzBwc5ZBTH/ObxBtf/IW1gRtfFX99Q3d8WHnSUji5vxMyLbzADUqJiizo/4L450xWNNao58tqIBzWAB8kduW9ukt73tuzKBZaMihZaYkh11/AD9WF7bSzxGzbsjn+D/iacfwKZExGepynBRbhp9QJgaGZb9+R5ex3an12Ks9NHpKaqkeYHpZCwcIeqh6JnImQvKXeVC9cPLVwQF3Sn/1BHy+x1PloKVClD8cVXQjugn7d6lJdRlpUOGuJym7ofB1ds1NTNWqV1Ffz5+9SqZXyzLYoGVSjOzZvUCHcqheHuU2YPmNOvRBx0kol9yhj/sgvsD8Zo7fJgRpC3QA==;5:kKX/+M4Ba/kmOZ9OgSXUHRro+MvTCNQXwtWj6IGiDWWf1esTRX2dLnPXUp8jjHiLQDMhmn3fRVpVJgai+sAF4qKelU1KM/iFASdqrBDUNQmkLMc6g0QffKbYislGuKKD+zS0BwvLxMJcm1yPnRPoRCPIErkwhWSRzNFbrjFs4GE=;24:HMVNRnPQjTSdyLH0SNyhJOtdjKDVQ6ZQDhkBjRJuAHdN1fB+kiD4aard6townzqjk2hY9EqyhAI7tq7QOhsX2PMN90C/ca3eAQSbLeI+Tpo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB1079;7:VR3b1S6MhghVYUXq3+iSfdUHiDKb5T3X5rXsu62nsYoL3t/edTqJaxnLdJat/DNsEgM008Jhi8akbTrPSn1jpr7yFw+ZWOMcLqkNneXCaU3asXGnk0n1Mytzdl0bnjlQteBVh8Th/SZ+0JyxEQYxLYLxnFfCU9SiuOuPt6D1TN7QY8/k3wk6CElMBDFlvb/6ggA4+GXPbra6Zu2q2J/MeNs5MOmsJ6D5cf8c+IAfhPspxuZt4dpWQy184Vrif5um;20:tJoXGeXyqUHHg2Hd0eK+S/lPVlX8ZUa0V6NzYWekQRgJ5r8DpCTnKwbh3nUoUfYU8XP5Mk1U7uYkYVx4K88chDu8B3gX2xUnT3s0tpGLWgoxkzqIltfeSBP9wdMgWSLfnm7IQeXQz2xnt6LpNpJgGZ6Zbf8o8yzJ47/a5GH6mAE= X-MS-Office365-Filtering-Correlation-Id: 1ef2bc37-62cc-4eee-6810-08d5b0eb4334 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2018 11:44:41.7384 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1ef2bc37-62cc-4eee-6810-08d5b0eb4334 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR15MB1079 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-03_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 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 --- include/linux/memcontrol.h | 10 ++++++++++ mm/vmscan.c | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 3b65d092614f..7d8472022aae 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -374,6 +374,11 @@ static inline void mem_cgroup_put(struct mem_cgroup *memcg) css_put(&memcg->css); } +static inline bool mem_cgroup_is_populated(struct mem_cgroup *memcg) +{ + return cgroup_is_populated(memcg->css.cgroup); +} + #define mem_cgroup_from_counter(counter, member) \ container_of(counter, struct mem_cgroup, member) @@ -835,6 +840,11 @@ static inline void mem_cgroup_put(struct mem_cgroup *memcg) { } +static inline bool mem_cgroup_is_populated(struct mem_cgroup *memcg) +{ + return false; +} + static inline struct mem_cgroup * mem_cgroup_iter(struct mem_cgroup *root, struct mem_cgroup *prev, diff --git a/mm/vmscan.c b/mm/vmscan.c index 50055d72f294..5e2047e04770 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2549,8 +2549,12 @@ static bool shrink_node(pg_data_t *pgdat, struct scan_control *sc) /* * Hard protection. * If there is no reclaimable memory, OOM. + * Abandoned cgroups are losing protection, + * because OOM killer won't release any memory. */ - continue; + if (mem_cgroup_is_populated(memcg)) + continue; + break; case MEMCG_PROT_LOW: /* * Soft protection. -- 2.14.3