Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2965385ybt; Mon, 29 Jun 2020 11:38:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwLy45o9GKYZpe57CPIGGLFPKLoMsKFH5PFpTw0gE4JtWYw+w+bq8AcriPxVXLX9cC/Sh7 X-Received: by 2002:a05:6402:363:: with SMTP id s3mr7902623edw.238.1593455917754; Mon, 29 Jun 2020 11:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593455917; cv=none; d=google.com; s=arc-20160816; b=U2gsNMyOR2eYOWgLgARyNHtBDxh26iGTyG7GfASSgiNRx5P5g5noqJup8lJgWWD85l qbtfo+aIfm+8V5POOl9h0+/I7UzIrQML+dMGrAQD8r+V3PYMuOzFAHZ/D28fx7IOiVem udqDeAmB18lXL3Ijed++RoXvdK+1fmkrcmdM3g/tKezl+UvdLoZ8w5+ygsTLemT+Dice +NYqGrP/3CumBwlmgbq82tUTew2ohn0TrQ1A9DpQwYW2gBHWGGidxGbs6gPvWZYWf6po 2O2XHtyVmKMLVKDsE0L7BVtpbeumBKG4RdFG42h4xcuIaBzCCvW0FlSBS2ywLcCyMZzY LxBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=vUcd8BvelbSiGMPSvf/UkuignSgO/y97uS/2BJAhIvQ=; b=s1cgcK9Yxja1pSjV98jaoRqbzTEGUea7JccghE3j2UXKKaaeD0jC26aPJ8j7XZMWdh HR2QKdhpLGfLJ4R+1ngMYznOirg10Lqq0lMqreoSoMxrKvkL3p/YEnFTePA3R0uIdEA8 jQCZTTnUiVbfzKnqFw3TRZCMqNiY29jmKwOSDEp6lK+WH1KrSVwWyflg2o13s4fz/qqx L804G3KatpT4WC3vYVrLIkuLfrvqHchfTZuy0rMnZ5zbVD8fag/FUQNlfa6QXmfg/WL+ JUFRdPR6/HX+ys7LhpnGUNozY7P+H58EJh215ig0pLOWT8oN8LrCP/a2BKUJlpl3WEiv TxeQ== ARC-Authentication-Results: i=1; mx.google.com; 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 a16si275714ejk.194.2020.06.29.11.38.14; Mon, 29 Jun 2020 11:38:37 -0700 (PDT) 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; 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 S1727040AbgF2Sgx (ORCPT + 99 others); Mon, 29 Jun 2020 14:36:53 -0400 Received: from gentwo.org ([3.19.106.255]:55684 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbgF2Sgw (ORCPT ); Mon, 29 Jun 2020 14:36:52 -0400 Received: by gentwo.org (Postfix, from userid 1002) id 2B0E33FF4E; Mon, 29 Jun 2020 14:58:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 291103EA72; Mon, 29 Jun 2020 14:58:40 +0000 (UTC) Date: Mon, 29 Jun 2020 14:58:40 +0000 (UTC) From: Christopher Lameter X-X-Sender: cl@www.lameter.com To: Srikar Dronamraju cc: Andrew Morton , linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , Mel Gorman , Vlastimil Babka , "Kirill A. Shutemov" , Michael Ellerman , Linus Torvalds , Gautham R Shenoy , Satheesh Rajendran , David Hildenbrand Subject: Re: [PATCH v5 3/3] mm/page_alloc: Keep memoryless cpuless node 0 offline In-Reply-To: <20200624092846.9194-4-srikar@linux.vnet.ibm.com> Message-ID: References: <20200624092846.9194-1-srikar@linux.vnet.ibm.com> <20200624092846.9194-4-srikar@linux.vnet.ibm.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Jun 2020, Srikar Dronamraju wrote: > Currently Linux kernel with CONFIG_NUMA on a system with multiple > possible nodes, marks node 0 as online at boot. However in practice, > there are systems which have node 0 as memoryless and cpuless. Maybe add something to explain why you are not simply mapping the existing memory to NUMA node 0 which is after all just a numbering scheme used by the kernel and can be used arbitrarily? This could be seen more as a bug in the arch code during the setup of NUMA nodes. The two nodes are created by the firmwware / bootstrap code after all. Just do not do it?