From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by kanga.kvack.org (Postfix) with ESMTP id 7259C8E00D7 for ; Fri, 25 Jan 2019 14:25:15 -0500 (EST) Received: by mail-qt1-f197.google.com with SMTP id w18so11788870qts.8 for ; Fri, 25 Jan 2019 11:25:15 -0800 (PST) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id k124si9893871qkd.2.2019.01.25.11.25.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 11:25:14 -0800 (PST) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0PJNgEZ077162 for ; Fri, 25 Jan 2019 14:25:14 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2q85bnhb4n-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Jan 2019 14:25:13 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 25 Jan 2019 19:25:12 -0000 Date: Fri, 25 Jan 2019 21:25:04 +0200 From: Mike Rapoport Subject: Re: [RFC PATCH] x86, numa: always initialize all possible nodes References: <20190114082416.30939-1-mhocko@kernel.org> <20190124141727.GN4087@dhcp22.suse.cz> <20190124175144.GF13790@rapoport-lnx> <20190125104023.GI3560@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190125104023.GI3560@dhcp22.suse.cz> Message-Id: <20190125192504.GG31519@rapoport-lnx> Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko Cc: linux-mm@kvack.org, Pingfan Liu , Dave Hansen , Peter Zijlstra , x86@kernel.org, Benjamin Herrenschmidt , Michael Ellerman , Tony Luck , linuxppc-dev@lists.ozlabs.org, linux-ia64@vger.kernel.org, LKML On Fri, Jan 25, 2019 at 11:40:23AM +0100, Michal Hocko wrote: > On Thu 24-01-19 19:51:44, Mike Rapoport wrote: > > On Thu, Jan 24, 2019 at 03:17:27PM +0100, Michal Hocko wrote: > > > a friendly ping for this. Does anybody see any problem with this > > > approach? > > > > FWIW, it looks fine to me. > > > > It'd just be nice to have a few more words in the changelog about *how* the > > x86 init was reworked ;-) > > Heh, I thought it was there but nope... It probably just existed in my > head. Sorry about that. What about the following paragraphs added? > " > The new code relies on the arch specific initialization to allocate all > possible NUMA nodes (including memory less) - numa_register_memblks in > this case. Generic code then initializes both zonelists (__build_all_zonelists) > and allocator internals (free_area_init_nodes) for all non-null pgdats > rather than online ones. > > For the x86 specific part also do not make new node online in alloc_node_data > because this is too early to know that. numa_register_memblks knows that > a node has some memory so it can make the node online appropriately. > init_memory_less_node hack can be safely removed altogether now. > " LGTM, thanks! > -- > Michal Hocko > SUSE Labs > -- Sincerely yours, Mike.