Message ID | 202012030829.0B38Tqjq021458@vz7build.vvs.sw.ru |
---|---|
State | New |
Series | "Revert "mm: Port diff-mm-vmscan-disable-fs-related-activity-for-direct-direct-reclaim"" |
Headers | show
Delivered-To: criupatchwork@gmail.com Received: from imap.gmail.com [108.177.119.109] by patchwork.criu.org with IMAP (fetchmail-6.4.8) for <root@localhost> (single-drop); Thu, 03 Dec 2020 09:41:25 +0100 (CET) Received: by 2002:a9a:4d14:0:b029:97:cf3a:849f with SMTP id h20csp161462lko; Thu, 3 Dec 2020 00:30:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXNnNuLqQhs23pepETO6iIb8IWn1XUDujpoGnfKeDDIkc9UoyP8pjdeJyBAOhJbfgTvXzP X-Received: by 2002:a19:c3c9:: with SMTP id t192mr904218lff.154.1606984239115; Thu, 03 Dec 2020 00:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606984239; cv=none; d=google.com; s=arc-20160816; b=jTJ0E7ZDjz2N2KOc7z+z29JmHz+/rbOnUIsFIc2D240rd19pnNIK6oktSNU5lqtpEP vHXvOBVCeYVL/fgfX6gkxGN+EXhVw4XM3Jq1cqMmFYaw74xC2jNaHJ76d1cmFlbGB7iU oKwnSbQA0F6tNroTEqaicp20vt8U4lHyj0/v8vCgLcjWfefTx8WYAmAySL7KKwpCqAvM K34oSdGmo57vfcg8cVZv2na/BFl2CMia2np2gh/13v+QZ0lbBE8O6CxSv3L7kVZJ3igi x3QeKYJuafc/EKdUpGUX9GfCsHk/EDgkgjkEOtlBe3MJnRBBBALQA1GzZBjaC6cEujBJ XQ4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:in-reply-to:to:from:message-id:date; bh=xIV+kXx7yXL1JF3+TibAZ2C+N+ZG0QSSoA7bsYNPULs=; b=paxENI8bO6D6fd4WpB0fMWMS3KaLzXlZc5qEb7vjyC0ukuOdmTP1jBwa8Yi8hPspv7 HAJuXKbFHaXR3Af926wXsezoTREGUb4hOYwapMRy+57Fyk2x2JclNcGkBywBKkk3wiVG wPupqXMcrnuujXbd+nlUnQ0gWNYCn62SjitFZH5ruFf+5rZdtdILlHqEzfSEYKL6AF/q gwE0V6bM9ex9E+LFRFobC5ySLDxzZxXGaGL9gBcSnFuvi33cwR6+7dp9eYxaIodypHTF /jKFwlz9QQbUAKJkoh2GApwBnrEC6icPBHHKpiAVqnql9ZyTJjiSoUiAYv5MOELoUMJd ghdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: <devel-bounces@openvz.org> Received: from mail.openvz.org (mail.openvz.org. [185.231.241.50]) by mx.google.com with ESMTPS id c5si600917ljk.306.2020.12.03.00.30.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Dec 2020 00:30:39 -0800 (PST) Received-SPF: pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) client-ip=185.231.241.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from localhost.localdomain (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 0B38U69w023801; Thu, 3 Dec 2020 11:30:08 +0300 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01lp2058.outbound.protection.outlook.com [104.47.2.58]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 0B38U4X6023798 for <devel@openvz.org>; Thu, 3 Dec 2020 11:30:04 +0300 Received: from AM6P195CA0052.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:87::29) by DB7PR08MB4217.eurprd08.prod.outlook.com (2603:10a6:10:7d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.25; Thu, 3 Dec 2020 08:30:06 +0000 Received: from HE1EUR01FT010.eop-EUR01.prod.protection.outlook.com (2603:10a6:209:87:cafe::ad) by AM6P195CA0052.outlook.office365.com (2603:10a6:209:87::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Thu, 3 Dec 2020 08:30:06 +0000 Authentication-Results: spf=pass (sender IP is 185.231.240.75) smtp.mailfrom=virtuozzo.com; openvz.org; dkim=none (message not signed) header.d=none; openvz.org; dmarc=pass action=none header.from=virtuozzo.com; Received-SPF: Pass (protection.outlook.com: domain of virtuozzo.com designates 185.231.240.75 as permitted sender) receiver=protection.outlook.com; client-ip=185.231.240.75; helo=relay3.sw.ru; Received: from relay3.sw.ru (185.231.240.75) by HE1EUR01FT010.mail.protection.outlook.com (10.152.0.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Thu, 3 Dec 2020 08:30:06 +0000 Received: from [172.16.53.199] (helo=vz7build.vvs.sw.ru) by relay3.sw.ru with esmtp (Exim 4.94) (envelope-from <vvs@virtuozzo.com>) id 1kkjzs-00BXgZ-Rl; Thu, 03 Dec 2020 11:29:52 +0300 Received: from vz7build.vvs.sw.ru (localhost [127.0.0.1]) by vz7build.vvs.sw.ru (8.14.7/8.14.7) with ESMTP id 0B38TqeA021459; Thu, 3 Dec 2020 11:29:52 +0300 Received: (from vvs@localhost) by vz7build.vvs.sw.ru (8.14.7/8.14.7/Submit) id 0B38Tqjq021458; Thu, 3 Dec 2020 11:29:52 +0300 Date: Thu, 3 Dec 2020 11:29:52 +0300 Message-Id: <202012030829.0B38Tqjq021458@vz7build.vvs.sw.ru> X-Authentication-Warning: vz7build.vvs.sw.ru: vvs set sender to vvs@virtuozzo.com using -f From: Vasily Averin <vvs@virtuozzo.com> To: Andrey Ryabinin <aryabinin@virtuozzo.com> In-Reply-to: <20201130152637.25873-1-aryabinin@virtuozzo.com> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: a59a8cdf-660c-4424-3f3a-08d89765a36b X-MS-TrafficTypeDiagnostic: DB7PR08MB4217: X-Forefront-Antispam-Report: CIP:185.231.240.75; CTRY:RU; LANG:en; SCL:-1; SRV:; IPV:CAL; SFV:SKN; H:relay3.sw.ru; PTR:relay.sw.ru; CAT:NONE; SFS:; DIR:INB; X-MS-Oob-TLC-OOBClassifiers: OLM:1728; X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?AoCpg2ZvbrMV07vYK787u+j2a3U1vdrCW6itNhglUkFP+MG3FPEbQFUtB4CD?= =?us-ascii?Q?E2odAsAqY6Sl1SV4nD4AozIDs0OkvnbS77koVWjiIBykK0UR9wTRK8YQMhqn?= =?us-ascii?Q?Yt+rodPn5JHuwLMalOgtn4DRkBzMLtcYIvvH77VKcS8kssgd+yE7dZBRL+Bd?= =?us-ascii?Q?TUuet4XtTB4B+4jkdJ1og5qL+S1dTmsrj21xZT4TfpDQn6vG+z/cJF+YnC32?= =?us-ascii?Q?e2gZQIXnwHdre2tIvGcIz9rUdApL4X+vdUZ2tfFCa7CI5LeNDaSJYAa1/7cf?= =?us-ascii?Q?TUVDV/iPum71r+mUeaKy+eVtshlth0M7OYJFFI8VEQO4kj/myXEDJtBmGxeK?= =?us-ascii?Q?0y13UltAWcW/OUUJ/fUOVU+aiQ93Mz+eyYw5fCcYQAF/ZKwr/209lgA1oOK3?= =?us-ascii?Q?RD4uRfi/Whv9Bt2fzKcC7ZW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B0X1cE4XHpNLgMlE8XuAxfdcJ3DoHXLpzSFJSYtKvByclPhKe2aM7ogT?= =?us-ascii?Q?Iw+fhr88X0bR9NxXuXEhR3qsrp3wCxNojtwpaiZH3uNdgKwJsR4KXwuC9Wf2?= =?us-ascii?Q?abfGLW/oDHG0ME2S9+j569ik1sk6+ix9DLP8Xcd4qmp9nTRl7YdeDwvzjkgo?= =?us-ascii?Q?zhDmXmPhI8RRCEk=3D?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2020 08:30:06.1531 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a59a8cdf-660c-4424-3f3a-08d89765a36b X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0bc7f26d-0264-416e-a6fc-8352af79c58f; Ip=[185.231.240.75]; Helo=[relay3.sw.ru] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT010.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB4217 X-MS-Exchange-CrossPremises-OriginalClientIPAddress: 185.231.240.75 X-MS-Exchange-CrossPremises-TransportTrafficType: Email X-MS-Exchange-CrossPremises-AuthSource: HE1EUR01FT010.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossPremises-AuthAs: Anonymous X-MS-Exchange-CrossPremises-SCL: -1 X-MS-Exchange-CrossPremises-Processed-By-Journaling: Journal Agent X-OrganizationHeadersPreserved: DB7PR08MB4217.eurprd08.prod.outlook.com Cc: OpenVZ devel <devel@openvz.org> Subject: [Devel] [PATCH RHEL7 COMMIT] Revert "mm: Port diff-mm-vmscan-disable-fs-related-activity-for-direct-direct-reclaim" X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development <devel.openvz.org> List-Unsubscribe: <https://lists.openvz.org/mailman/options/devel>, <mailto:devel-request@openvz.org?subject=unsubscribe> List-Archive: <http://lists.openvz.org/pipermail/devel/> List-Post: <mailto:devel@openvz.org> List-Help: <mailto:devel-request@openvz.org?subject=help> List-Subscribe: <https://lists.openvz.org/mailman/listinfo/devel>, <mailto:devel-request@openvz.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org |
diff --git a/mm/vmscan.c b/mm/vmscan.c index 85622f2..240435e 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2653,15 +2653,9 @@ static void shrink_zone(struct zone *zone, struct scan_control *sc, { struct reclaim_state *reclaim_state = current->reclaim_state; unsigned long nr_reclaimed, nr_scanned; - gfp_t slab_gfp = sc->gfp_mask; bool slab_only = sc->slab_only; bool retry; - /* Disable fs-related IO for direct reclaim */ - if (!sc->target_mem_cgroup && - (current->flags & (PF_MEMALLOC|PF_KSWAPD)) == PF_MEMALLOC) - slab_gfp &= ~__GFP_FS; - do { struct mem_cgroup *root = sc->target_mem_cgroup; struct mem_cgroup_reclaim_cookie reclaim = { @@ -2695,7 +2689,7 @@ static void shrink_zone(struct zone *zone, struct scan_control *sc, } if (is_classzone) { - shrink_slab(slab_gfp, zone_to_nid(zone), + shrink_slab(sc->gfp_mask, zone_to_nid(zone), memcg, sc->priority, false); if (reclaim_state) { sc->nr_reclaimed += reclaim_state->reclaimed_slab;
The commit is pushed to "branch-rh7-3.10.0-1160.6.1.vz7.171.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-1160.6.1.vz7.171.1 ------> commit 8f6a892e2e8aa16231366a87e3d6969e165bbdff Author: Andrey Ryabinin <aryabinin@virtuozzo.com> Date: Thu Dec 3 11:29:52 2020 +0300 Revert "mm: Port diff-mm-vmscan-disable-fs-related-activity-for-direct-direct-reclaim" This reverts commit 50fb388878b646872b78143de3c1bf3fa6f7f148. Sometimes we can see a lot of reclaimable dcache and no other reclaimbale memory. It looks like that kswapd can't keep up reclaiming dcache fast enough. Commit 50fb388878b6 forbids to reclaim dcache in direct reclaim to prevent potential deadlocks that might happen due to bugs in other subsystems. Revert it to allow more aggressive dcache reclaim. It's unlikely to cause any problems since we already directly reclaim dcache in memcg reclaim, so let's do the same for the global one. https://jira.sw.ru/browse/PSBM-122663 Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com> --- mm/vmscan.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)