From patchwork Thu Aug 2 11:00:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10553479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EA1AC15E9 for ; Thu, 2 Aug 2018 11:01:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E29D72BC44 for ; Thu, 2 Aug 2018 11:01:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6E792BC47; Thu, 2 Aug 2018 11:01: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 0790A2BC2F for ; Thu, 2 Aug 2018 11:01:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EE4E56B000C; Thu, 2 Aug 2018 07:00:59 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E95086B000E; Thu, 2 Aug 2018 07:00:59 -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 D850C6B0010; Thu, 2 Aug 2018 07:00:59 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-it0-f72.google.com (mail-it0-f72.google.com [209.85.214.72]) by kanga.kvack.org (Postfix) with ESMTP id B006A6B000C for ; Thu, 2 Aug 2018 07:00:59 -0400 (EDT) Received: by mail-it0-f72.google.com with SMTP id r10-v6so1855465itc.2 for ; Thu, 02 Aug 2018 04:00:59 -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:subject:from:to:date:message-id :user-agent:mime-version:content-transfer-encoding :spamdiagnosticoutput:spamdiagnosticmetadata; bh=fsa3mc8nIpk1RdGleSi1MytsXSRlVCYosZgTPur4RkU=; b=n8xwJq+QA4pfqDlpmGYdLNj0CpNu4TwVLWAC4gLgaU9GHLnbxhCTyLTIODAeVAj/Uh T+dmWrXfcoriqE4LbubXhTY10eM08f++8EC6oOe5JtZb3twE60ZbKAi3MrAQf+wYcqmp 10OcILui9ACtnqK0HBcCkVmEHuHrl9x+ZtwpGcCOSHHpZLC8a3qCzrkNs7F8YFO0Oiof Bc4q5g+rfQNwDNjHTMYz+pV/qE9pL0NA9442jyGbXsNUd8R1qN5/hkmm+KqionLMdBuW I+1prNzaZqZxqvX2staUOQZAh82Rr3dXHvFtuIU+Pv4NPlLKqtFLYBoc/di+iC1AgQsq aa/Q== X-Gm-Message-State: AOUpUlGi2VYc3N5WKkGFg7ELpMkHK9krR6j4QYr60yAo6F9KqR69cT/x ysh4jkGURGawQWz6CfG8XFqL9M04LkYuLHW+gz7SjrrDIsVDRZsPH1l5Orns+8wwHpf26JtU28h 9iuMc62qB78tmVnTLFzM0w92shuq98QVB6kriTJwWAN3dkpm0WGu31a+NA1AD7z0n8w== X-Received: by 2002:a24:4f52:: with SMTP id c79-v6mr1969906itb.36.1533207659407; Thu, 02 Aug 2018 04:00:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpewBdhcLES7WPBFFeiAk48R8b5jQu4MxrCernKmwrbRzwbcQvmUQuJ3ZbxaiCuQPKXzLB+O X-Received: by 2002:a24:4f52:: with SMTP id c79-v6mr1969850itb.36.1533207658757; Thu, 02 Aug 2018 04:00:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533207658; cv=none; d=google.com; s=arc-20160816; b=fE/uLZo468Asu6fIwqICFyLjGJUlyASqaVROT1l+4E1ViGmLxF05FEOIonkQxDcA2K c+f6vFwv8oejWxW7jLkrabp28gwwvTK8WWoE+5m4HqsakMBQF/s6D3DQLDmCS8uB7yBL m3RkT6MqYgokbeCKUFUylMezvZHQWvU7nnV/xQ52fwP/imwM3KTQ93NpVFOKg7OI/Ryb lbV9QULKa9qaolUSq80DzPxLkSdxhJTNv9imKV4+R+IHpgKl7pW9SGDwWj3JoELsGa3o LnE56AvFejBIF/8Z2E155xdiBMoKauNMMU7R2jXDPzV2KLkjXDhVC9LnP+lSM6c8Hwii 8FZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=spamdiagnosticmetadata:spamdiagnosticoutput :content-transfer-encoding:mime-version:user-agent:message-id:date :to:from:subject:dkim-signature:arc-authentication-results; bh=fsa3mc8nIpk1RdGleSi1MytsXSRlVCYosZgTPur4RkU=; b=ZtOCoylDoCUgVdnceZDTsKJY9leVPCI8mLLEnKsC+MmoCo15ki5HKsEi4zB4W/m06/ a4dMBGJpYV1Qbpq+qft7FszlVj4p+nbliG/dJadlBCmXuTZUFeqXu9XqTDjlJZVR6SGc UlODOnS9p9qDe0T0cHA3UqmJ9lhpAfjjLdfGBY45E3Tg6jM1+pv/Z3we6fSi1ukIbWVs hkwukpqx5XprVHuFBNRcKg745Cm0raEUWCtepftI/I08InfA+PLx3P/jsCSaImg1kDKC 2QVSzdJH9MPvTiiOFrGHtDFkKlx4rYIVoYBcO4lBEg4FDGS2ab5rXJdEV75m2YIGb9o3 ccNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=FwenEaP0; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.119 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30119.outbound.protection.outlook.com. [40.107.3.119]) by mx.google.com with ESMTPS id v14-v6si1199482jan.6.2018.08.02.04.00.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Aug 2018 04:00:58 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.119 as permitted sender) client-ip=40.107.3.119; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=FwenEaP0; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.119 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fsa3mc8nIpk1RdGleSi1MytsXSRlVCYosZgTPur4RkU=; b=FwenEaP0KgVN7XLZCFfdBmjQ64RXdId3N3htjNbucQcKDF+JPrUYeXHxd+MYmB8D/lAHnTCVzg94a0b5vCHv0hgXE4VmyncmBuFxPRZu8xQR7RuJHxV+6O5Mfd47Nx60/o9NU+AhjoWEgD4kwQNl3uAOG5WeRmrw6z6Bg4G5H4I= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (185.231.240.5) by VI1PR0801MB2030.eurprd08.prod.outlook.com (2603:10a6:800:8b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Thu, 2 Aug 2018 11:00:54 +0000 Subject: [PATCH] mm: Move check for SHRINKER_NUMA_AWARE to do_shrink_slab() From: Kirill Tkhai To: akpm@linux-foundation.org, ktkhai@virtuozzo.com, vdavydov.dev@gmail.com, mhocko@suse.com, aryabinin@virtuozzo.com, ying.huang@intel.com, penguin-kernel@I-love.SAKURA.ne.jp, willy@infradead.org, shakeelb@google.com, jbacik@fb.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Date: Thu, 02 Aug 2018 14:00:52 +0300 Message-ID: <153320759911.18959.8842396230157677671.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 X-Originating-IP: [185.231.240.5] X-ClientProxiedBy: HE1PR08CA0069.eurprd08.prod.outlook.com (2603:10a6:7:2a::40) To VI1PR0801MB2030.eurprd08.prod.outlook.com (2603:10a6:800:8b::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ee7c690-a0ee-4e67-2deb-08d5f86738a4 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:VI1PR0801MB2030; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0801MB2030;3:Oo8tZVifQhkPCAgwAOhG15jymaM5cHeuQ0/ostnrXVFaQnTA73+NLokNuQfcMa/WnspjFlmcG+eGTdpK7vIxLeHJA5qcdsaJkgPaZwNIQZBdXoQjJrm/oycUmTAZVUPivo1I1h+Vfmc1Den+WFu+SQ4pD3iAfXVou7BaK+caTmcrFD0kc8420OGnyeLp9EY/nmJA98dqIz+9mSUh526iW1wPB/nhJlvIW/d1fXOPlqFhoLkFZQL/PH6GGEoIShPz;25:hNX8QfFGbzAUILpLXMWqVSjVBzLIY4gyEOqqGaCNTR+Ks4sjMxI075DdhqITABGP9YedSxed2OBsK6DA5SC1EDi0fTOe2Stx5dVjpIkhFfkz/1Cc3Y3BTUBKfar0UrsXajqJ6B5a/Py4+mXb4nLFBvD828qntDBYhl6NjPVVp6mdEB+3xX1+CcRMNEE8m4ow2Vij7dlUV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UQc18QvpznQla5tbna+MfMbXsL0km6t2vdM2vTYtRVp7HwYR02ff8yr0YEN0yqGxxP8GhOU+2NX2yWQ/KRunQNBTsl3jtE02LysPfA6xswNKwlZK5ouKuPhY/wI2hM771E1KodbOxPwk6yKcp4QI8sGQj7F09br3qtrMKN6wg== 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:(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:VI1PR0801MB2030;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0801MB2030; X-Forefront-PRVS: 07521929C1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6069001)(346002)(396003)(376002)(136003)(39850400004)(366004)(189003)(199004)(16526019)(186003)(26005)(6506007)(386003)(66066001)(33896004)(47776003)(5660300001)(55016002)(14444005)(8936002)(81156014)(81166006)(8676002)(305945005)(6116002)(230700001)(3846002)(7736002)(103116003)(50466002)(2486003)(7696005)(23676004)(52116002)(9686003)(97736004)(478600001)(86362001)(575784001)(2906002)(53936002)(1857600001)(316002)(58126008)(106356001)(476003)(105586002)(486006)(25786009)(956004)(68736007)(7416002)(39060400002)(61506002)(921003)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0801MB2030;H:localhost.localdomain;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BVI1PR0801MB2030=3B23=3AEw0GZ?= =?utf-8?q?Y2Rrwayxt9dBVsh6orm5P5iOd5Mx3OXPn+bj7bWcz5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ZpkBFbWLrGhpEdmP9Ys5WfJ2ul4taTSH8JgWXAmaieBgRY/CQK4hCCylyDAfQbo1Bn7AJZPLrveYbiKoPdpxGsD7+LfSaWf8wPGysSTvijANi8d9smQN05lGOrdDlbKA110tihK7D4+ceWfUxOq2hItFnGNh/paZrjYHSGRwM2qQx6M/yr4VJ5VNz0RfeE6l4rvacFg==;5:RxVkV+MzztzThhq8oT/Juumt65eRqFS9AhXzNI2gDP/xVHAB3+6/6rrPo9NupJyRo9xO+uADHCA7UnIe52BRx+Zaf9ddb+90bjPhUrDq1UzG6nysmiuGOuYG3dCpRORzzQPHcpYUxKYv2+pvGlpnXkecC6XHC+A/B2jZhMCpjvw=;7:4iHJGOKo6Ug4BSACQQzJ2dl0afhAVbnUmlqTnoB63U3RW8JHvUMy6oCviHoyYxN8IwbjQN0tBgkGJBvAkbyc4KTyuaCZOJxx60v98oSRYvGgevbgZwa9KpU+vh/gXo0g6GKB4MznAwInEs5UjRXBDWUol2sFLVZ2iDLXdJOTBTLIOzeKusTZLQI6bXgr4mMN56zgCXcL2cxsOV4Swc1aA4SjvcVoLdPhGIPPlraFkF+E4og0L17SayOvb7u4ZAgV SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR0801MB2030;20:GIGkPbJaw3gL5ivqw7jVBy+666POEiuhsATdR3Rk0pVapdRV3Y4GkEniF1Y9voJXPyNS3BLwJuvX1Sunoq3jwPIZuPWjzRYUPLg9y+BMgLruOo7Kc197+Nxzwsd+++Y2FPT6n8Yg/qBjmZ0vusjG/P0fw0Az/I2vGAeEbBlr7uM= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2018 11:00:54.6197 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ee7c690-a0ee-4e67-2deb-08d5f86738a4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB2030 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 In case of shrink_slab_memcg() we do not zero nid, when shrinker is not numa-aware. This is not a real problem, since currently all memcg-aware shrinkers are numa-aware too (we have two: super_block shrinker and workingset shrinker), but something may change in the future. (Andrew, this may be merged to mm-iterate-only-over-charged-shrinkers-during-memcg-shrink_slab) Signed-off-by: Kirill Tkhai --- mm/vmscan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index ea0a46166e8e..0d980e801b8a 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -455,6 +455,9 @@ static unsigned long do_shrink_slab(struct shrink_control *shrinkctl, : SHRINK_BATCH; long scanned = 0, next_deferred; + if (!(shrinker->flags & SHRINKER_NUMA_AWARE)) + nid = 0; + freeable = shrinker->count_objects(shrinker, shrinkctl); if (freeable == 0 || freeable == SHRINK_EMPTY) return freeable; @@ -680,9 +683,6 @@ static unsigned long shrink_slab(gfp_t gfp_mask, int nid, .memcg = memcg, }; - if (!(shrinker->flags & SHRINKER_NUMA_AWARE)) - sc.nid = 0; - ret = do_shrink_slab(&sc, shrinker, priority); if (ret == SHRINK_EMPTY) ret = 0;