From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90126C433E0 for ; Tue, 5 Jan 2021 01:31:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B28CB22582 for ; Tue, 5 Jan 2021 01:31:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B28CB22582 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 904448D0047; Mon, 4 Jan 2021 20:31:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8B4D28D0036; Mon, 4 Jan 2021 20:31:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7CAA68D0047; Mon, 4 Jan 2021 20:31:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0083.hostedemail.com [216.40.44.83]) by kanga.kvack.org (Postfix) with ESMTP id 624C28D0036 for ; Mon, 4 Jan 2021 20:31:02 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 1D03B181AC9BF for ; Tue, 5 Jan 2021 01:31:02 +0000 (UTC) X-FDA: 77669992764.18.whip39_531859c274d5 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin18.hostedemail.com (Postfix) with ESMTP id EDE32100EC665 for ; Tue, 5 Jan 2021 01:31:01 +0000 (UTC) X-HE-Tag: whip39_531859c274d5 X-Filterd-Recvd-Size: 2426 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf47.hostedemail.com (Postfix) with ESMTP for ; Tue, 5 Jan 2021 01:31:01 +0000 (UTC) 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> 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: 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?