Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3265882ybt; Mon, 29 Jun 2020 21:02:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyztYhOkVInW7n0C1MCJpDwtyNqp9+PxC+QTfmVdzr6bPcAujwhMxRjMpTV8eydKlOUMxYZ X-Received: by 2002:a17:906:384a:: with SMTP id w10mr17314633ejc.235.1593489764629; Mon, 29 Jun 2020 21:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593489764; cv=none; d=google.com; s=arc-20160816; b=x3NoKkQF6Tl/6od3CtHCa81etv+68UjchzjxNGm/CgvprCj+FyI2RBoLHVlcoCTimT g3OOKv0LLyb1gS/gWkm34ho0E8wtRhfqn8xSffugZMRGFXJqyKA/0aE5PBdns9rsMduC Pb0v8O7vHsIMCeyffEvqYhPmNc8cRA0QnMw6DaI0RgP36bwCTcIOa6wCfcPWdVCTahor FBDqUQy2rTIUE03znFwj3BbUiQngwE/V19qwe87gfdb2sV+2f/l3tSSJYcDWhsGw+sXB QHFjAjDNUeS4RDMsvRjO0bo4EQs6/byXKFltkVjf5r9ZTD2nVW9YCUEi+8vEuV/t5UrZ f/bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=Q/IGbnCsUGKeIaLUHXk+a+P717R8GxuDRc6J2U9sMuM=; b=FRr4A1neUbNp497IZFo01+zyQGGRP6Atz5eTKQqJxbkt53JH2yeB6q73i8GicFmdpR nCuTqpyTOiw9q+HVYfNXubekVOSi3/fYlUWjKmThp5t9GcP2hgOq2Pr/uroFJIL5RFNN KVS/FhKY+WJ0m7vf8Rzc8FDWhIoN52VeLbrQjU/jhBiKh8vsF5SLF6bmUts90xgqO+xU zXUOXuhmZawlCauE5xD9Rffalx92AW+7ikD1kFdLMIV+g6cg2Rd+VyjQz8oxjRRj9RmS 97BEu6+2lA4Ub3uninIfvIDQxoZeq6A9X2ltXmfKdtmwlola9rT/BarQTM7TXFDRREhG sPng== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x10si968957ejf.731.2020.06.29.21.02.21; Mon, 29 Jun 2020 21:02:44 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726095AbgF3EBu (ORCPT + 99 others); Tue, 30 Jun 2020 00:01:50 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46110 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbgF3EBu (ORCPT ); Tue, 30 Jun 2020 00:01:50 -0400 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05U3eSuk060397; Tue, 30 Jun 2020 00:01:34 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31xkqk8g41-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jun 2020 00:01:34 -0400 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05U32Rxv060490; Tue, 30 Jun 2020 00:01:33 -0400 Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 31xkqk8g3b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jun 2020 00:01:33 -0400 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05U41V2e009727; Tue, 30 Jun 2020 04:01:31 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma04fra.de.ibm.com with ESMTP id 31wwr81fqb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jun 2020 04:01:31 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05U41SpL53346418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jun 2020 04:01:28 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BD097A4055; Tue, 30 Jun 2020 04:01:28 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 52D9AA4057; Tue, 30 Jun 2020 04:01:26 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by d06av23.portsmouth.uk.ibm.com (Postfix) with SMTP; Tue, 30 Jun 2020 04:01:26 +0000 (GMT) Date: Tue, 30 Jun 2020 09:31:25 +0530 From: Srikar Dronamraju To: Christopher Lameter 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 Message-ID: <20200630040125.GA31617@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20200624092846.9194-1-srikar@linux.vnet.ibm.com> <20200624092846.9194-4-srikar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-06-29_21:2020-06-29,2020-06-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 bulkscore=0 mlxscore=0 adultscore=0 clxscore=1015 phishscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 suspectscore=0 cotscore=-2147483648 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006300021 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Christopher Lameter [2020-06-29 14:58:40]: > 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? > I thought Michal Hocko already gave a clear picture on why mapping is a bad idea. https://lore.kernel.org/lkml/20200316085425.GB11482@dhcp22.suse.cz/t/#u Are you suggesting that we add that as part of the changelog? > 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? > - The arch/setup code in powerpc is not onlining these nodes. - Later on cpus/memory in node 0 can be onlined. - Firmware in this case Phyp is an independent code by itself. -- Thanks and Regards Srikar Dronamraju