Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1523141pxb; Thu, 4 Feb 2021 15:37:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwM+xZFkfEloGPDL/o/kuwrhsMJuzkwmcl5+keKKvyvqoxJ0gidXoSnJYOUlfLsd5H6j+eF X-Received: by 2002:a17:906:e104:: with SMTP id gj4mr1384724ejb.349.1612481849524; Thu, 04 Feb 2021 15:37:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612481849; cv=none; d=google.com; s=arc-20160816; b=oR9wHxXtVX58f46YNhsn2rXM+9gK7Rw3zbEYytpOfa/0k3YNi4/o1xzMK9FSZG81Om HxNIW1qd1FlpYnJ7q2GLMctrd/ssKViyAwRLHKWHH+nf8xrr8XN5otQSrRS5MeAqRXjk APeClp5XlUgz6kOgnS2/Sf2lB72dbYQrOpJZQkonBL18jgums6DLEycY7s7c+ZJMuynr jY4j5ot0ijb92FlLhN3UyqXjIsuHoS56G+5IEerZA7MilD6dwo1pwf9/P2IFAacV711z BWTumApvo/6l+/qSEdSrl0iuykuigrTybW5nfKgAdWr/JN4Iuhg+71W6EC/wEDqjtbUr kwHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=I/c9sShA40+FPMR4BRDPuElMVBoUBZ368+SVRIvSLAM=; b=eQzn3I3rC/xi2HpG11kYUnhowWyp4Or38vBrFLCB8Y0nuSzfsnZxhCJpHMyWa3aJ8l nh7SqcKvteGlhi90Y/0IcI1+K59BjcZTqS8VPUQtCVrYdMSgyfQI6ALFTSQHS577+SWm Eimz36+rd1FDerCmE8dv1j8IeJPJ3kbzNKj+M/8XrnaSS+9SXUmkTNChBraRlwYB17jv 3PZEaGM6ffc0rRWn9dd8zpbBLxGwFpvjnp324/2hTLHMA3jeKHh/0xjfLH1b8hn1UDdJ RUMEhQDZ45QHY+WZ2mOaud5rsCQCkF8vjtr1j7STMikw/dxhGZ0erOpAYVE2FKQPE/si gGEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ku3si4077040ejc.497.2021.02.04.15.37.05; Thu, 04 Feb 2021 15:37:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235187AbhBDJeo (ORCPT + 99 others); Thu, 4 Feb 2021 04:34:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:40396 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235040AbhBDJed (ORCPT ); Thu, 4 Feb 2021 04:34:33 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id EF8F4AC97; Thu, 4 Feb 2021 09:33:47 +0000 (UTC) Subject: Re: [RFC PATCH v0] mm/slub: Let number of online CPUs determine the slub page order To: bharata@linux.ibm.com Cc: Christoph Lameter , Will Deacon , Vincent Guittot , linux-kernel , linux-mm@kvack.org, David Rientjes , Joonsoo Kim , Andrew Morton , guro@fb.com, Shakeel Butt , Johannes Weiner , aneesh.kumar@linux.ibm.com, Jann Horn , Michal Hocko , Catalin Marinas References: <786571e7-b9a2-4cdb-06d5-aa4a4b439b7e@suse.cz> <20210123051607.GC2587010@in.ibm.com> <66652406-25e4-a9e7-45a1-8ad14d2e8a36@suse.cz> <20210126230305.GD30941@willie-the-truck> <81424d71-c479-4c4a-de14-0a9b3f636e23@suse.cz> <20210203111009.GB2869122@in.ibm.com> From: Vlastimil Babka Message-ID: Date: Thu, 4 Feb 2021 10:33:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210203111009.GB2869122@in.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/3/21 12:10 PM, Bharata B Rao wrote: > On Wed, Jan 27, 2021 at 12:04:01PM +0100, Vlastimil Babka wrote: >> Yes, but it's tricky to do the retuning safely, e.g. if freelist randomization >> is enabled, see [1]. >> >> But as a quick fix for the regression, the heuristic idea could work reasonably >> on all architectures? >> - if num_present_cpus() is > 1, trust that it doesn't have the issue such as >> arm64, and use it >> - otherwise use nr_cpu_ids >> >> Long-term we can attempt to do the retuning safe, or decide that number of cpus >> shouldn't determine the order... >> >> [1] https://lore.kernel.org/linux-mm/d7fb9425-9a62-c7b8-604d-5828d7e6b1da@suse.cz/ > > So what is preferrable here now? Above or other quick fix or reverting > the original commit? I would try the above first. In case it doesn't work, revert. As the immediate fix for the regression, that people can safely backport. Anything more complex will take more time and would be more risky to backport. > Regards, > Bharata. >