Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp193587pxb; Thu, 27 Jan 2022 18:57:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4ykAZfY/z90DQ7XWM9Zkx3uQpcUmut+ErstS8AxF7WYo7wILPwh8D+DHVkjCwGgu02v1Q X-Received: by 2002:a17:907:7212:: with SMTP id dr18mr5431714ejc.187.1643338650798; Thu, 27 Jan 2022 18:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643338650; cv=none; d=google.com; s=arc-20160816; b=cSRdyBLI088s+GnjOOZLjaFTG4Y0xL/8F5qJje8LTLlarq6A3VWR6W5sQz+cLkxhzx lo8MkYuu4pYaVOfsncfLfwFXOALXq3ZNFjWvOvPYhRMO4n/mnGWN8Bt214blg9wZxrXT hHD/uLuehNjHriNwwyfvi5BuPT2TH9RkyqGw20sfe7oTpLo0D3+f5MoqEWdf/yHfQkmZ gFVgvhuu1e6N5xRHen4l+taEILGDGWD022jv9ttfhZAA1rDVdb9/MYhQD6bFt1wnn0yj VUzKbGpiXpm03eqKnamSd9sVxM8g9jYnm3dSh07zuWxFAsKB/jZX3NODq3lSy/xeSOzH 56Ug== 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=eHbrH7dCR55J/aNvAzSHPLMUT9WRYBG09MJbiDu5snY=; b=xjZzrKjXb49a+HNXS+AsUIfuXNdoDfmozMdDElyPdsxCH6x6RpsKlPazPrC5Oma+eN /UncPeFsVJI0coEpXDjSyWCCTq9Jy7BmbmfwNQJSy+g7FSZVMVEWmBMVhSaW9DVmKJKO CPQ98E1uHUbOPK8AsO7HpsAI9M7q9pwkibeQ+Si7w4VIifFDE6U119RJtdcjuxigqsDU EbaUeXLWWaMDr8N7zLz+g5/XVMGOi3uDZghMahauXQdIPXUOS9tviePRrtKyRE4HOW5q v2dyGpDffYzkrGNqwQKNwTC9Grn1I+Hui138TyJIyOYstxEAf3mGhu0OqQDV2xyakgwB FK2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WSPjF8La; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si2306429eje.184.2022.01.27.18.57.06; Thu, 27 Jan 2022 18:57:30 -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=@kernel.org header.s=k20201202 header.b=WSPjF8La; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242169AbiA0Ngr (ORCPT + 99 others); Thu, 27 Jan 2022 08:36:47 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:40738 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242315AbiA0Nem (ORCPT ); Thu, 27 Jan 2022 08:34:42 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D647061BE3 for ; Thu, 27 Jan 2022 13:34:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAF10C340E4; Thu, 27 Jan 2022 13:34:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643290481; bh=fd4J3Q09HA3HgoqBjZYSLSYqtMJ9HcItVk5HZwKUFBc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WSPjF8La1fKzn3JBxHgUq74VUI66bXY5zHZU4m8RrxbLYFUsE2i1D8UtQiE1y0w8w LzW/HL7tZqVS8oyvs7b/QYhVL4mAiq9DIDPEcb1eiP/7lDCvqGaLKmAlqUP9TR+Jvk BvuOKa4yOK/Iaf/sGMAD9uScehLzNnHG3oSOAbQoaMUIUcR375WMgZWS28ubHqE7U1 vMUunrXFCT/P7LD2LwpuZTVs6xykNh9BT2Ro9ftBflO7J6lHtnoaptqOcBMhJVPlKf R9K/KOyJ5r4ATO1zf6GN0PnyPTmx7bUb2BUytu5QZ05avLo6KVcZPKdI1NitIyqX++ CCHy1/GDVQmOw== Date: Thu, 27 Jan 2022 15:34:32 +0200 From: Mike Rapoport To: Michal Hocko Cc: Andrew Morton , linux-mm@kvack.org, LKML , David Hildenbrand , Alexey Makhalov , Dennis Zhou , Eric Dumazet , Oscar Salvador , Tejun Heo , Christoph Lameter , Nico Pache , Wei Yang , Rafael Aquini , Michal Hocko Subject: Re: [PATCH 5/6] mm: make free_area_init_node aware of memory less nodes Message-ID: References: <20220127085305.20890-1-mhocko@kernel.org> <20220127085305.20890-6-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220127085305.20890-6-mhocko@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 09:53:04AM +0100, Michal Hocko wrote: > From: Michal Hocko > > free_area_init_node is also called from memory less node initialization > path (free_area_init_memoryless_node). It doesn't really make much sense > to display the physical memory range for those nodes: > Initmem setup node XX [mem 0x0000000000000000-0x0000000000000000] > > Instead be explicit that the node is memoryless: > Initmem setup node XX as memoryless > > Acked-by: Rafael Aquini > Signed-off-by: Michal Hocko Reviewed-by: Mike Rapoport > --- > mm/page_alloc.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 32d0189de4c5..83da2279be72 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -7682,9 +7682,14 @@ static void __init free_area_init_node(int nid) > pgdat->node_start_pfn = start_pfn; > pgdat->per_cpu_nodestats = NULL; > > - pr_info("Initmem setup node %d [mem %#018Lx-%#018Lx]\n", nid, > - (u64)start_pfn << PAGE_SHIFT, > - end_pfn ? ((u64)end_pfn << PAGE_SHIFT) - 1 : 0); > + if (start_pfn != end_pfn) { > + pr_info("Initmem setup node %d [mem %#018Lx-%#018Lx]\n", nid, > + (u64)start_pfn << PAGE_SHIFT, > + end_pfn ? ((u64)end_pfn << PAGE_SHIFT) - 1 : 0); > + } else { > + pr_info("Initmem setup node %d as memoryless\n", nid); > + } > + > calculate_node_totalpages(pgdat, start_pfn, end_pfn); > > alloc_node_mem_map(pgdat); > -- > 2.30.2 > -- Sincerely yours, Mike.