From patchwork Wed May 2 15:47:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Gushchin X-Patchwork-Id: 10375997 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 15EC160384 for ; Wed, 2 May 2018 15:48:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE84628957 for ; Wed, 2 May 2018 15:48:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2AB6289D2; Wed, 2 May 2018 15:48:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1078B28957 for ; Wed, 2 May 2018 15:47:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AF3C16B0005; Wed, 2 May 2018 11:47:58 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id AA28E6B0006; Wed, 2 May 2018 11:47:58 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 944596B000D; Wed, 2 May 2018 11:47:58 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ua0-f197.google.com (mail-ua0-f197.google.com [209.85.217.197]) by kanga.kvack.org (Postfix) with ESMTP id 67EC56B0005 for ; Wed, 2 May 2018 11:47:58 -0400 (EDT) Received: by mail-ua0-f197.google.com with SMTP id t46so4063508uad.3 for ; Wed, 02 May 2018 08:47:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:dkim-signature:from:to:cc:subject :date:message-id:in-reply-to:references:mime-version :spamdiagnosticoutput:spamdiagnosticmetadata; bh=czaBdU7nKLkp5O7YvSlXnMTv0AwmvANHabcDvweFplc=; b=or+H8na/eLyzSsgpJmFvnyLl6IV/zd/IKA3K1do1MMI/xgApCVrBBujrpnTq8HzdPm DYDGmqsXoeiEOnFQU/tQjS0x7YUQu6odRfLbuYuGpC5svcA+jp0sYPXj+jeC03YNC90G Z03zm6r2rcY/3qNy6cFNelhucFIeCwS7fgIQY6D4CxBU0wBmixRIQwj/MdTNXd16J/Rq yYiNpR/QU9UFTkj726aUKb7ZAB/szLayKtQ04jrUiohrc6jgs/Ea5G5LdLH89NP7Lk8n 3KvP4o59E+AbqVR3CcBgpgo14W9IiwDY+dvR6LYvwOThTKMykZ2YRdNkxdlcEdlhEKT6 toiQ== X-Gm-Message-State: ALQs6tDn9tM2muL8ymLXpyUFLd2O/OCv2ETzFvFOpoL6YOKX3LiKxQcY hGQxWX46kYUqdJzfPxY0UddMA7aFsafXJoR9/RbOnu0/pdh4Xl4OP/OxedDgP4ai63WXBgpMxyy BDJK4CjAsxY2QHuNMXK9bDXRJrpAmVOKAV48G991zfZ30hgS4etwdUrX6au8siDws6w== X-Received: by 10.176.18.98 with SMTP id s34mr19013135uac.160.1525276078016; Wed, 02 May 2018 08:47:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrfYNwxjsz+XevWnJ9Gyj0WNVyUdTm0RYaks8LBi+OXGHdk5KO99q/NhYGZTiZmb+U6Cqid X-Received: by 10.176.18.98 with SMTP id s34mr19013092uac.160.1525276077463; Wed, 02 May 2018 08:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525276077; cv=none; d=google.com; s=arc-20160816; b=dD4tVOcdhMu42s0LZS49Xq1xrsYu4POlYm1XXwHonrqD3Wkk7Bh7kMqoXqKUm42T65 lw0lCSz0sOw/BfCGV6I3zIGDlI+92MPr9iq5BUUA2aPFdVA7BIBAvrnkaatuiah8RuSc vNGNAxTR/8dnziH+kyvJmz9XrmsH5A4lb5iPFJokHa++iN2loZj0TfnfMa10FGNaVGmo Aa9chrxddifGq8A+ZtfQMfYN02Pz9DiPheK80HHoQ/rOdRvnuPok6FmIUhK2WapHYkLd EHTB4SI+rEPEYY8bQjqWKXQnCaCTRevXtzvX2uQXQ/bIsoLSRhc/0UNaUtNC4oiwGurd ZgUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=spamdiagnosticmetadata:spamdiagnosticoutput:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :dkim-signature:arc-authentication-results; bh=czaBdU7nKLkp5O7YvSlXnMTv0AwmvANHabcDvweFplc=; b=e2BQ5tgofwJg9D0ybjWbIjLeRaAH3IO6lPjHBhbJRAAbpmtwGx0c7fjEGLNe1nrzZX kvDiuRFzkeP3oAvHORUTH2bxgoNzigL6ht/GUuL2FnjK3ViUfdW0BCqWl7taiMKf0xl6 tzlsrdUxPtJntv9z5XVKI3ru8yDLvE5cvPXA7FkqPvlbRfkF6ZyuX+xDMAqVqz5K/nbj SepF4ctR3qPmSuzgV31TYUEqtMuej6lqAQ2Hf4Ab/bNrhxPk/KdYzGp9wuMiDiJZZjFx YDhfwR4aZW5rgGlI2IFMJXVvhF9umiWZRsOIBEyvByW9YFydmzhxelThBA5khrN1Jcug vpOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Rj+pKZI7; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=U8DNSP9f; spf=pass (google.com: domain of prvs=86608d073f=guro@fb.com designates 67.231.145.42 as permitted sender) smtp.mailfrom=prvs=86608d073f=guro@fb.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com. [67.231.145.42]) by mx.google.com with ESMTPS id c4si459851uaa.240.2018.05.02.08.47.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 May 2018 08:47:57 -0700 (PDT) Received-SPF: pass (google.com: domain of prvs=86608d073f=guro@fb.com designates 67.231.145.42 as permitted sender) client-ip=67.231.145.42; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Rj+pKZI7; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=U8DNSP9f; spf=pass (google.com: domain of prvs=86608d073f=guro@fb.com designates 67.231.145.42 as permitted sender) smtp.mailfrom=prvs=86608d073f=guro@fb.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: from pps.filterd (m0044008.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w42FiHEi011983; Wed, 2 May 2018 08:47:51 -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=czaBdU7nKLkp5O7YvSlXnMTv0AwmvANHabcDvweFplc=; b=Rj+pKZI7l24EbfAuIJ2LO+sbU9rSSxHrMFhU33hoQ7pndx2UXfQUcKm+1bfiIEd4mlUb ujSSf9zIr0kA/rHGR8MkSVMNX5Tx2c5jjQMF+sAEmhbOWisbW8yDc0WpYo8arao+M8L1 lvoQfvoKZtodndmFDm9vZV3+OT8WkD+puHo= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2hqeuqr8ge-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 02 May 2018 08:47:51 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.33) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 2 May 2018 11:47:48 -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=czaBdU7nKLkp5O7YvSlXnMTv0AwmvANHabcDvweFplc=; b=U8DNSP9fEKGJpGuOtzhuVhsOmeoI5/kEX+K2BrFvfMyKEys3NMtAI2kgZGAR5ZLTfTuK14Vti2jzWWy43Tx1Gfwuqpc+4lH5EJxgNuo9f4XmzJQ2YRBey7/+Ff6tPoyVv6jXXWMZ8QSvfnBBi7+r/jNv2vR6xyFgofHf+XVuoX4= Received: from castle.thefacebook.com (2620:10d:c092:200::1:767e) by CO1PR15MB1077.namprd15.prod.outlook.com (2a01:111:e400:7b66::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.18; Wed, 2 May 2018 15:47:42 +0000 From: Roman Gushchin To: CC: , , Roman Gushchin , Johannes Weiner , Michal Hocko , Vladimir Davydov , Tejun Heo Subject: [PATCH v2 RESEND 2/2] mm: ignore memory.min of abandoned memory cgroups Date: Wed, 2 May 2018 16:47:10 +0100 Message-ID: <20180502154710.18737-2-guro@fb.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180502154710.18737-1-guro@fb.com> References: <20180502154710.18737-1-guro@fb.com> MIME-Version: 1.0 X-Originating-IP: [2620:10d:c092:200::1:767e] X-ClientProxiedBy: HE1PR0101CA0013.eurprd01.prod.exchangelabs.com (2603:10a6:3:77::23) To CO1PR15MB1077.namprd15.prod.outlook.com (2a01:111:e400:7b66::7) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CO1PR15MB1077; X-Microsoft-Exchange-Diagnostics: 1; CO1PR15MB1077; 3:90XG/aNs3LRYG7VJkGUziOzRqwfQl6LLBzQfXb9CquSZd7/iM3xLlFesPLnmnaz+eGDDkWKlRmhbeFkvB/os6RiCNKx9ciziN2BpT5srN46ITXTkSmawGQuNT0rUrD+iGvXufcDGXqq42eBJXKx8fl9FWI6l7Mw0CZ+ZuVUK6Kc7HGa2CENeqejRVTJZicyNxoZXkVPqtgYZDFBdVVNpITwrg7Zzg5U4pGp1Zzbe1NKdQMi5dA+ZA6YAJWl9enbU; 25:2tyogXv+XUxqvO0eL+reKStXMHlRFA9kH8yYiujVXswNcUzy7TU/0VfbZ5WoDah3c0KWNt6pId5dhdEWOvbcTvAV2cyUgcbd62oHsJDrH33T8S4Xfts4SBzXpwXq/LvdbxzBTHtpfrnBeLQlfOHFUBxsr6dftLXywYsm4U9kZKNdLa3/qHAtPyaLRlglOLtGFKPWcU4pM7tPu1Q2T8TcOqiJvBwumuST9P6pYS3VFuIBIDEnGpL9h/Mb392r6iGQT9rSZHd8LroqZoqdQEtA0kDeqVx7SjLSAH38Zn0XzEc7YkTYIsxqn9Fv5evS3uqn5bLZtQoqZB6A6ST9Bj2Khg==; 31:ctFsF9XF24v9IxCxbd/ijrZqLfZIHoYqL0nBVdz6L8hQd1rVwH7yj9ky9PEt1u1PDF2m1AhnzYrKcIm1MFzmNIAE269g+5WJKZksw5q6NgLkNekReJs7HgCsAF7Fln0gO86MP+Hka3aBF7U4PvRZPJF3qJ//3a4JPFqF3B8alDB1X3u2Brvf8CjbwCL0al9hpp0llqLJq5Whs6txBUddx8eNF0w5OzYMXYWfOhtosbM= X-MS-TrafficTypeDiagnostic: CO1PR15MB1077: X-Microsoft-Exchange-Diagnostics: 1; CO1PR15MB1077; 20:rV0YvuFgx6EGmIruo4FHuOQF+2BhHYUcPwpWrYZMs/1p2k6iQxgYx61e+/XVqULrfxJubCWR+fAyFvZcbAEBEXuafF5ut9j/pVFJDkxCtXpqnL25p5emXgClMIDRzFGQPTmrdb3iEydnrElDgrgORZeg8xtEOzTam6eWFsp/mu9e+ZbZpcjYXZYYnyYjnetBUoq4NRhEmu0/K9Rh6ATemXRxI9W/zK+YQ8tAgz4r3niso3/e/3xgSDO47GxvqFWzYrUoxxGcSNzYMwLgG1yB2QRN1ioklyiu3AVaIk/ReYNvKsUhbX+cclxk28ORIK2wO3OprAWWNM0Z/ne0XOv7lnkwLqKa49ULmZ5uxIUj1ISd72i4eQ8Ko74f1X9rudt8dnwzFebcOcQCyUehbjGLVnPv4Wzh9S/mT16cREVklqhR+CztT53MX2l1O+LUWcO7QLPwM2Vbnf3BzWgFTSoxTQVVNzoQGkSN1wy/Sb7e1tu7BVyymeOtXLWXGFKDoAhD; 4:JlUxpXLX1wJGgnjIQ1ZLDi89K0jvk2YnzpyREBgjvu8xi40sjCHPmTY0Fko+vN6TTF4HP2LS9xhGe4fRq/tKFp4vvt/IA1amcKwWzOZ7AIau7j+Oh3LrlYehovQBIPkGZBOdqeMgXFPsfNMSNwh63ZJ4bPVNVlY6aHFGeIds7XLOGYQ6uPx1DWBYbT/Od+8kLqMDOc0PhirVqKKbDVIWIlgufxSsaJ+QlADfCtD8KI9Skoms2Ku1pztgw5U9mpgqNDkj+mhIfpRZhz97n8mJwLk0/sntbpcwyKrrpmjWUjYhKsr8p3NtK8emDV2y4RZqhHW5pF+gGb31pD2AyDjIv4lq7t+i+Dmyt6/2hhHjhJ4= 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)(8121501046)(5005006)(3002001)(10201501046)(3231254)(11241501184)(944501410)(52105095)(93006095)(93001095)(6041310)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CO1PR15MB1077; BCL:0; PCL:0; RULEID:; SRVR:CO1PR15MB1077; X-Forefront-PRVS: 06607E485E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(366004)(396003)(346002)(39860400002)(39380400002)(199004)(189003)(486006)(2361001)(7736002)(305945005)(47776003)(106356001)(6486002)(5660300001)(53416004)(8676002)(2906002)(2351001)(1076002)(6916009)(6666003)(81156014)(50226002)(6116002)(68736007)(81166006)(8936002)(446003)(386003)(6506007)(476003)(46003)(50466002)(54906003)(48376002)(2616005)(59450400001)(316002)(16586007)(105586002)(97736004)(6512007)(39060400002)(16526019)(4326008)(25786009)(36756003)(69596002)(76176011)(51416003)(478600001)(53936002)(52396003)(52116002)(11346002)(86362001)(186003)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:CO1PR15MB1077; 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; CO1PR15MB1077; 23:Z7QKJ5IM3/vJC/1+3vO788GrRSSaLj1ZOUwbbBr9c?= =?us-ascii?Q?cCXeBRc03/9PZvef0t+pu92PxEdm8XbHI3cshjo0aCObeZf3+AAI5slYDYSI?= =?us-ascii?Q?LfIY6bpfD+iBZ0YJiHPjWqGFBgRRRpmsR/3OWWBm1tLxcvKD2avELDUmNgls?= =?us-ascii?Q?c31eIJkDTwt6T2GMqSkAbZ4vP9293AqLM8fcpaJ6I0R2hHtm2zKqoUd8A5Ue?= =?us-ascii?Q?PfKf0FfFeQCCM06/vm+IIDypOlRHbkGDuquxe6sRYVojpgTge6IsejEVx0RH?= =?us-ascii?Q?JF4RG+/6sZ3/QdT8iOleemIM+OlXLROdWBjOSNS13U9K3E06olYxU+27ULJY?= =?us-ascii?Q?6pbzBjXjveYteElELw3uz5Uy2rL6dqdf4w+3qr4GI9aE/vf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tpbQ4EzOWaIZEZb5CccQKxUIPRg6F0MwcCUQ90jn+JhmbJY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO1PR15MB1077; 7:+ufombtE2haC972QPluP814+msg6GnlksAUpt1epP/txFfk6dRaGp207P5cMe8Nmc1GpFGHFJ++Kqjsy1iYop6mX6ARMgCzpVX4mznimtdymT61WzHCSzW/emByZ/7OFhgl609MEy/9jogcDRuUHU+lJU8a3MUqlFkujbgBKzFXXif5E2aIQ4UPNsvrhcACG6aX1VVIGDnVsNb+CSQZPuH0mQSWgR7O7PwanNJad+6cq1CmZzavL/o91RnDC5XHJ; 20:pyhteS2wtqmZJigps9+aLdwoKMPQBs0r3lEL6yj3Vulel+FDrkBjuTtuujtkv9MG8LGedbe/jvR90UGsOOWoOaeARqymbpgJWYSP4wSDj5x+AWzwzFxMEpWlMzGrwHno+IPRoyMerQE1GrDVYTDWyaHdJdT3JPdwWzmSy6Y4A5Y= X-MS-Office365-Filtering-Correlation-Id: 53307a7d-877e-4d2f-126d-08d5b0440c23 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2018 15:47:42.6462 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 53307a7d-877e-4d2f-126d-08d5b0440c23 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR15MB1077 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-02_06:, , signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Johannes Weiner --- mm/vmscan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 50055d72f294..709237feddc1 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.