Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3179848imm; Thu, 17 May 2018 04:51:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqR4a8RTjhgzBuQaCLdA6JSeU3ya4HNOmbulZgZz3AWXxOUWklf+mFYN2yjZluy+qKoe92d X-Received: by 2002:a62:cca:: with SMTP id 71-v6mr4864568pfm.61.1526557864831; Thu, 17 May 2018 04:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526557864; cv=none; d=google.com; s=arc-20160816; b=XIxy6JAWA5cqMnZtz8vBeT/3oveo31jwUiX7U+wMzNzbjk0XBWIeiVFbVM0ZSrSZYo pplJOSdxFpZQ4bDtU+DtRPaXsWtmZeXvkdTgHjSEzHJImtXm90O87u4qmBZ1UJKii9lL uLGgGmTs89zUptqD9Yp6+1lU9a4uu9+JMB+95+is7Ytj+K4Qzb603a05NtZNHMe2XE2a qys4oBzEaeM0pfn6Mp2yngUhMxSpi0fygmPnc7apCndKLCyVUTSZVRd6EahWf9zIrp8b qszpdMR+SpZrtvcmxxxyzNFsO1OqpZmJlXOZMLgg2aeL0uUukCQC24VJ4WYKgVlZ7UQI 7EYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=eQgSokOzCFfk6I8Vd14XxpkhB68Ti/BZh+eiTMzKjuM=; b=rCMZvU3MZkyOWGpSiMOXUMjkH/x6DQx3A7jJF2lkeUM5H8j+74pRFyxbaffx/spZ5c 5azsKAGMBVxX5cwrxVafOAq6IkcCbmaIpDp/t71YPkJqwlwXayy1sJ12ie3I/yEfjgC4 IE8r+ExuxRuE+uH66cuM2KxaY3LuNhmZS3S29vFK+Cd+5G9xegoTH45G2qcrrqM2wGVz W4xv1UhYU9ybNdc/TPs5msnQq0klkLQF7Bc6Nx/wtFnQv1nPwwSnawUHRPrTSq+Lt4nX ctw03wsztEquwkGg5BU9drQMwntDFqckWFPXDLRlAqlAE5oQVZD4mSht5/TqENo2Ss3G OB5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=ghuTTwFg; 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=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6-v6si4031410pgc.262.2018.05.17.04.50.50; Thu, 17 May 2018 04:51:04 -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=@virtuozzo.com header.s=selector1 header.b=ghuTTwFg; 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=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751916AbeEQLte (ORCPT + 99 others); Thu, 17 May 2018 07:49:34 -0400 Received: from mail-ve1eur01on0126.outbound.protection.outlook.com ([104.47.1.126]:15168 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751293AbeEQLtc (ORCPT ); Thu, 17 May 2018 07:49:32 -0400 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=eQgSokOzCFfk6I8Vd14XxpkhB68Ti/BZh+eiTMzKjuM=; b=ghuTTwFgno9m/xiFCraBdjWdvrYy2CeaFSl+lmlvRQYTsPwsSlnaEX5RwMe+e0sR4YWGxwAsoxsoPvnzJ4CXCvsa+5od2HiIvuedGWKZ21Trbzc1+RSDEYB2q8L8/mbmF95+Lpa8TqO0NrdbbukF2jb/pLm/DXObx4J2QMTEr80= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from [172.16.25.5] (195.214.232.6) by HE1PR0801MB1338.eurprd08.prod.outlook.com (2603:10a6:3:39::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Thu, 17 May 2018 11:49:28 +0000 Subject: Re: [PATCH v5 11/13] mm: Iterate only over charged shrinkers during memcg shrink_slab() To: Vladimir Davydov Cc: akpm@linux-foundation.org, shakeelb@google.com, viro@zeniv.linux.org.uk, hannes@cmpxchg.org, mhocko@kernel.org, tglx@linutronix.de, pombredanne@nexb.com, stummala@codeaurora.org, gregkh@linuxfoundation.org, sfr@canb.auug.org.au, guro@fb.com, mka@chromium.org, penguin-kernel@I-love.SAKURA.ne.jp, chris@chris-wilson.co.uk, longman@redhat.com, minchan@kernel.org, ying.huang@intel.com, mgorman@techsingularity.net, jbacik@fb.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-mm@kvack.org, willy@infradead.org, lirongqing@baidu.com, aryabinin@virtuozzo.com References: <152594582808.22949.8353313986092337675.stgit@localhost.localdomain> <152594603565.22949.12428911301395699065.stgit@localhost.localdomain> <20180515054445.nhe4zigtelkois4p@esperanza> <5c0dbd12-8100-61a2-34fd-8878c57195a3@virtuozzo.com> <20180517041634.lgkym6gdctya3oq6@esperanza> From: Kirill Tkhai Message-ID: Date: Thu, 17 May 2018 14:49:26 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180517041634.lgkym6gdctya3oq6@esperanza> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR02CA0111.eurprd02.prod.outlook.com (2603:10a6:7:29::40) To HE1PR0801MB1338.eurprd08.prod.outlook.com (2603:10a6:3:39::28) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(2017052603328)(7153060)(7193020);SRVR:HE1PR0801MB1338; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB1338;3:Xxbic8UmkPk4kVEj2G2BF40KiCoQvr/m6tYcEiNLJcaYl2C2pAGA++kmSrQXQ7bELZwMCjlTYLXfkHzzIsA4aWOdIAa7U9CvKmpYezRCtZi9wLSE/jTSEArUTMRfk9vujPb7gZ0yjbK9luTNIMVNuJag8UUG87qzvoBKQG1luTT2m+hasTaJo89vCq/JXroihiaLsCiDj3wClDaZ5j+Yavw+V0c+GjTEA4HnW0C3EMuoJHRRcDJuoWcfYKTHVnEA;25:BOtDN9MWsGqcBfFQG8uEgS/4sYelGXhy9GazwTWcfBAkN9+ODx3Kee2hUTXVACf9/F8rQKv/5+YKp2GRlKvyB3uwO/Cf9lkVdeNoCvUfbP+bi4ZUU/nWqs/vSbChMZcYs/jh8AdmnKmfXY2/kfd9BSFvlv3dsN6SiavygzsxOBhjRVrnHCpf5iPOR2rwkfGvhLQLn6g+6EKgT/0jXCMr3LitP9Bjm0DwjkQvtbIFhtomdTVYH4T0VyCB9jWyc3oa3WJy3nsEDDWp8O9Dy9LMrcFvrfcRR/UNT/BetcexuBwLjXXj4/7KFVDOBhNiKPgJupXaXin6RVLIWgwMMqR1ew==;31:tRm5g2244oC9OoEctkbvRVlTHMvFGxU4k1LlpveP5HirtMcizuQJRac3zrnOY/Y+g8c0pk+4qsFeG/V2Z9i1QM6HzXEr72VIEAW+4OeMCbvvUIY3Dbyyk5dJewZNXXj4luIPuPetWSs5nweb7uJyRfNgx2Kp6kpWFu6sFOOiRRnttH1wb2dqZVmrqVnlHbORk9FzPAoC9R3ROAXJwaNB33MkzG2/si/S+GmK0jpYbPU= X-MS-TrafficTypeDiagnostic: HE1PR0801MB1338: X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB1338;20:c+/GTeuuF7AG/VrzCs6qUujgE3SZwu3lEgrOae+m3ZnweUlmdKKBk7pwIT/UEKJ3z5xyzfOsIcxxzYAGJPfas6l54yIEYdOo/t4vOyfK4cRKxLR3Hyby9HO1Hn7fV8fnTAo9dGvMPrK6LxhsuLuMQT5McX4v4KDeeHJgC3n+Hg7BPcaqUBuHP5nhMdfttrCUAjEF/tycFYFN68myXnsBizyhVNW3UZyNrVTYgw3jJ+ErClLUDcUdb7O1gRK9htcenPTTCUMh74hlTl8tQuVpm9iAMSCwr/3Wf+/REzc+8qgmKShzi3SpfYo3tKfdYtPzKqClauzMpBl9JMkh9hDJ5ZZjNbn88WWtwO/uya0phN6kP01oBL6wMvMNsZ4FmsKUhDFCGugJmaoGdEQDjaVmNxIYAIF/dNk39f94cN399DNL2piPlYjkFXdLy9RULOCV5pI2+RBvb7cX8AvFta+zz+2m4kv7a7Aj+lvl/tEt79vWQiX4PSdt62wI3PQcUHPg;4:OLRNvt1XuElxTBW8FpzGxJHmGtumYcHdXtTjMhkhSBYlEujigOi/kokayTQIOun1cUcfFBHO6p2MEh4K2sGoGnl4mwIQx5Y+q/WqAF8qmBu/vRV4egUMBPAvCnVKGOusmDkBIMoeZUheVEoylUKB6ShWCwkO9SZgQglTvFQ3lYFkGjeY93upGGR5zZyMA6/PkV7E+EFpT2Z7WwTd8jGHzznlxdjPAgFy/Bya+SeKQOAaKQDezJf1cmnSrJTLeLNm3piC+IFFH3QTmuWAAENiyg== 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)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:HE1PR0801MB1338;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0801MB1338; X-Forefront-PRVS: 067553F396 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(366004)(396003)(346002)(39850400004)(39380400002)(376002)(189003)(199004)(7736002)(52116002)(478600001)(23676004)(2486003)(52146003)(47776003)(305945005)(2906002)(16526019)(76176011)(77096007)(66066001)(65956001)(65806001)(26005)(50466002)(64126003)(36756003)(86362001)(6116002)(2616005)(956004)(31696002)(476003)(386003)(446003)(11346002)(3846002)(53546011)(230700001)(59450400001)(229853002)(486006)(6486002)(6916009)(58126008)(16576012)(97736004)(93886005)(5660300001)(316002)(7416002)(53936002)(65826007)(107886003)(106356001)(31686004)(6246003)(4326008)(39060400002)(25786009)(8936002)(81156014)(8676002)(105586002)(81166006)(68736007)(309714004);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0801MB1338;H:[172.16.25.5];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?B?MTtIRTFQUjA4MDFNQjEzMzg7MjM6S3ZXcmUwd3NlUUo2Z1dkZ0tnQjdtYzVU?= =?utf-8?B?ZENHZDJrZUZ3K0VKdldoOFhtbXUzbGIvWnVmVUNNN3NWYTlaYWZTemM2cWYx?= =?utf-8?B?YXlKZHRnV25kUGhVVWJ1aHBtYkkwM0RHT3dPUXBhOEd1UnVaaWhxUUdsWXlH?= =?utf-8?B?MHlwMklNR2xlaFllMkRva0txU09OdHFSZjlCUjlMbUJFUisweFdCUkphTXpB?= =?utf-8?B?aVI2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ata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB1338;7:hZ5WQgOaS5OsMaANXT7OoUvnJWsLhVxIQ2cRbHqTbceM0iChY0qF0v/k2acurODvsZzS4GnlHlbD0mnduH7C+zysHsMAmjUTf3qL+63pUc2CBA82Ut0qMcru8z81TIk1b/fiiUsCtFe1e5i10OK+0vt18slYi7VcfMF9PAjKhVxRwZvfJJI5Ib4p44cn1p73oyaSpBc8cePV3ujYAsJb7OWjUhgExCNuTt4AxwmS3x5OFFTuLbU9QhFaCbPephtH;20:BoR9hqutWTnvPrAbhWuWpQO94BdPudKgUmov3jfElLtzKoiZ95goK8yFk/ougH/lbxehQX/l83iVJZxgdv/zDPtzKq2f8sBcni/ucpLeeBfV1BX/uD+MzDRTWhK8I3PpQb3Lx2wORol2PilZMlJno68NN7z07NgmpbTu+nzeXrs= X-MS-Office365-Filtering-Correlation-Id: 32c7e0d7-deb0-4e5d-2aa6-08d5bbec3fa3 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2018 11:49:28.8220 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 32c7e0d7-deb0-4e5d-2aa6-08d5bbec3fa3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1338 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17.05.2018 07:16, Vladimir Davydov wrote: > On Tue, May 15, 2018 at 05:49:59PM +0300, Kirill Tkhai wrote: >>>> @@ -589,13 +647,7 @@ static unsigned long shrink_slab(gfp_t gfp_mask, int nid, >>>> .memcg = memcg, >>>> }; >>>> >>>> - /* >>>> - * If kernel memory accounting is disabled, we ignore >>>> - * SHRINKER_MEMCG_AWARE flag and call all shrinkers >>>> - * passing NULL for memcg. >>>> - */ >>>> - if (memcg_kmem_enabled() && >>>> - !!memcg != !!(shrinker->flags & SHRINKER_MEMCG_AWARE)) >>>> + if (!!memcg != !!(shrinker->flags & SHRINKER_MEMCG_AWARE)) >>>> continue; >>> >>> I want this check gone. It's easy to achieve, actually - just remove the >>> following lines from shrink_node() >>> >>> if (global_reclaim(sc)) >>> shrink_slab(sc->gfp_mask, pgdat->node_id, NULL, >>> sc->priority); >> >> This check is not related to the patchset. > > Yes, it is. This patch modifies shrink_slab which is used only by > shrink_node. Simplifying shrink_node along the way looks right to me. shrink_slab() is used not only in this place. I does not seem a trivial change for me. >> Let's don't mix everything in the single series of patches, because >> after your last remarks it will grow at least up to 15 patches. > > Most of which are trivial so I don't see any problem here. > >> This patchset can't be responsible for everything. > > I don't understand why you balk at simplifying the code a bit while you > are patching related functions anyway. Because this function is used in several places, and we have some particulars on root_mem_cgroup initialization, and this function called from these places with different states of root_mem_cgroup. It does not seem trivial fix for me. Let's do it on top of the series later, what is the problem? It does not seem critical problem. Kirill