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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 6F291C433E0 for ; Mon, 4 Jan 2021 23:24:01 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D41472253A for ; Mon, 4 Jan 2021 23:24:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D41472253A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 244C98D0033; Mon, 4 Jan 2021 18:24:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F5E06B00B7; Mon, 4 Jan 2021 18:24:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 10C938D0033; Mon, 4 Jan 2021 18:24:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0186.hostedemail.com [216.40.44.186]) by kanga.kvack.org (Postfix) with ESMTP id EBEDE6B00B5 for ; Mon, 4 Jan 2021 18:23:59 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id BC3E8362A for ; Mon, 4 Jan 2021 23:23:59 +0000 (UTC) X-FDA: 77669672598.28.class69_4b052db274d4 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin28.hostedemail.com (Postfix) with ESMTP id 93CD06C06 for ; Mon, 4 Jan 2021 23:23:59 +0000 (UTC) X-HE-Tag: class69_4b052db274d4 X-Filterd-Recvd-Size: 1926 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf06.hostedemail.com (Postfix) with ESMTP for ; Mon, 4 Jan 2021 23:23:59 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id DBE31206F8; Mon, 4 Jan 2021 23:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1609802638; bh=/J9lOmW1YaeKRhNVv8DZ4Ehhw7//zHi8b0Ji/4NfsR4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=P4dNs6DhpupKwWDgq6M18i+ydv9hR1ncOpcGuAPA1AqQwa7R/N0dql+dW/xi1HMH8 XR6acxwKb2N/cl2Jxpl5NAye2BP62lqyIFJbPqWvERy9f025hqUp1GgQTjI6WFS13v /nvqnFLn5C5ZFs1fV638Y6NEyvj0nOw7YVdGXl3U= Date: Mon, 4 Jan 2021 15:23:57 -0800 From: Andrew Morton To: Matthew Wilcox 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: <20210104152357.d56d10e0443bae984a174f18@linux-foundation.org> In-Reply-To: <20201230124233.GE28221@casper.infradead.org> References: <20201230114014.GA1934427@ubuntu-A520I-AC> <20201230124233.GE28221@casper.infradead.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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??)