Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14243097pxu; Mon, 4 Jan 2021 17:35:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrInYy7RL4KDa8UiDl4p1z/wG8Q5XoIj+5qDbInG/DU5iCxR8vInB24bELyOovexEoQzC0 X-Received: by 2002:a17:906:d152:: with SMTP id br18mr65440201ejb.297.1609810527536; Mon, 04 Jan 2021 17:35:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609810527; cv=none; d=google.com; s=arc-20160816; b=u7U5I/jye4oMCD4ecugohRWp8E2Nfoc7yuCk4xvz4cAthUnJWLVzda4ZItl9Dko4/o cDDuHIwA3CD2PLIdty0VnYynY9NXog2yn8vWIuMBERqy1/GrRok7r++l87vkA10Y+Mtl NtAADH3RmqBy/RuVg5vUKeqFxO+hlBCXpKdgP22WBD1hPK21sA5P2FmLoUtepNeTbcMl Fzz3IY3QHMg34iC/D10Y/zBEquWsQexL6H0ZfDNAwywsm3Ev0vvpzFUMCMQOIIAF8abd b+ZKnEHr3w8t/eEuC8ZDLtVNJGxlgameXeeWYTC1MqUg8DpswwYZ4Ejf7vgDWyWh3z2v TO+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AZ9yvBLzQkyhwGhPhQhb3S0RKliCB25y6JTRong7Zzg=; b=BY8JUtCqJuobQVqowU+IFTshV6hcPHk2M9cwy2mxnN4tfS/axXHxps7YKr2IefggsI tKdXYdaNcqVUGfwD1nWVfWvSjaeUlXp9JwNZAmCV6YMCPQ9/OM13XquigRuwOZCQpvaB la3Cy9eAj8RX7shMKdRo5kMeClcZ4KYUR5PAW+NeFhg7gO96hMgM6mm2sXqH66+J4wPh EpnCLRpFCQL2K92dwn0FuwEa1PJfHPje/A74s/+4NNCakCiOsh5L3eYoSngKCqS1Mysk wZZ2tnK5DJxO9tkOsDXOUxYIs66V3Ei0afnik5UjujPM+QL1vaxVf0EhdVWoO2NYgxix f2iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XfUtrknv; 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 si7si29723415ejb.5.2021.01.04.17.35.04; Mon, 04 Jan 2021 17:35:27 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XfUtrknv; 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 S1726545AbhAEBbr (ORCPT + 99 others); Mon, 4 Jan 2021 20:31:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbhAEBbr (ORCPT ); Mon, 4 Jan 2021 20:31:47 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDAD5C061574 for ; Mon, 4 Jan 2021 17:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=AZ9yvBLzQkyhwGhPhQhb3S0RKliCB25y6JTRong7Zzg=; b=XfUtrknvY01Ka5ohlY3XrY8I0L 7TiFZD9Hr6resdEAiBJ0spVqKVEvaurmcssFfEbt+7Y4+SvNA/hQMa5UwWW8S4VDOXF3fJPrpdCEy 90RgYBhUQuL+U8TpFE/0PJ2LdasUdbNOkf6zFTaQt/A4O2F+R1tL0IgEOptvcP0Jx3zzCR0xX+Fp4 m7FsDn1RKsX4F0mQ5MT4JW0/su/UGfhrU5WpfPfmo+0pKNAf7eGhtMw+SSC2XeRifrICC05+tlcoN bynO1CxgetEzjXE1mS7e4HgVjl4qfGd4EHclmgQtSGU/kn/U0aqtXXZaAm2HO1Ug3LxwIaUnitWuz eS7N4fTw==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1kwbB4-000k6d-Kg; Tue, 05 Jan 2021 01:30:34 +0000 Date: Tue, 5 Jan 2021 01:30:26 +0000 From: Matthew Wilcox To: Andrew Morton Cc: Hui Su , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko Subject: Re: [PATCH] mm/page_alloc: remove the static for local variable node_order Message-ID: <20210105013026.GA175893@casper.infradead.org> References: <20201230114014.GA1934427@ubuntu-A520I-AC> <20201230124233.GE28221@casper.infradead.org> <20210104152357.d56d10e0443bae984a174f18@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210104152357.d56d10e0443bae984a174f18@linux-foundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 04, 2021 at 03:23:57PM -0800, Andrew Morton wrote: > On Wed, 30 Dec 2020 12:42:33 +0000 Matthew Wilcox wrote: > > > On Wed, Dec 30, 2020 at 07:40:14PM +0800, Hui Su wrote: > > > local variable node_order do not need the static here. > > > > It bloody well does. It can be up to 2^10 entries on x86 (and larger > > on others) That's 4kB which you've now moved onto the stack. > > That being said, could we kmalloc the scratch area in > __build_all_zonelists()? And maybe remove that static spinlock? > > (what blocks node and cpu hotplug in there??) if we don't have the zonelists built yet, can slab possibly be operational?