Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2299608ybt; Fri, 3 Jul 2020 06:00:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC8hI0ltzKmfQ+BBXZHIUrFCvr1HRpPIE0MMSeuuHfBw3nGBc0Wm23Gs9myIfYlqbZwRkw X-Received: by 2002:a17:906:2a5b:: with SMTP id k27mr31125401eje.82.1593781213613; Fri, 03 Jul 2020 06:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593781213; cv=none; d=google.com; s=arc-20160816; b=w5LRVjnLxrAlZOTJSWfWX4AAsCQFqclcXwpAPI1n1i/zu+Ozhd+0LwQEUalDDPnjj9 NGdXlVOGPseVHIrCiONZf7lHIHOsgL+D6oIVN9wkWUkR8G3SdXNjImZubWl20o/Y8ATF hOCr/IlDIcB6nnbOSD/D+rFQ5zTAq86zTCrVnwg3gJewGeaKdYSnE0BBtm4r8QmzXw5s PL9gEWkzxjFUTQ5lCcH9ucD/6ar61d89c/HVkinHTiNQAPsoAiHv7dDDqKswuPsOrIL2 LaELjUY2frr+6vdSxWk20/S071jPDKzOdSHtu+heng/TyKDGSISj4/8vEqtQdxYG3xYo HgXg== 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=DFppaJOA1zOByqeGXHW8B2Vejh757tCxsc961hYJZ9Q=; b=uDptGCNZCWywlmn1STdsv/DqObG1G955xfT7bsdmy1pYjSbP36kYA8tZ8mv7xvtomu ibr0x+bq/7We62KTxJCGTbIF4+sUqJ2lLp2hFEC1kfZ3NgHubVbCFJ5RwFzMiizI01nV U8/xgoBv1HUeeaxbDw9pa/wLacFFO3eHxKrQBPgEewNVDSlM3pHIppBYsDTOEUboijLr NB9L7lWkwVmIIqOK1XDVF8KvoQ79QImBMba4leOy1neMF0IH0fUw4zb4lX5RlEZqDztc jztvL/WqXWj/HXdyIzvTmsHKUnE83k8XxB7z3YQi379epJ8FO9sm2X7a95mFeG6z7nlb 0wxg== 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 b6si5445078edr.578.2020.07.03.05.59.49; Fri, 03 Jul 2020 06:00:13 -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 S1726340AbgGCM7n (ORCPT + 99 others); Fri, 3 Jul 2020 08:59:43 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:2704 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726074AbgGCM7n (ORCPT ); Fri, 3 Jul 2020 08:59:43 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 063CUb5E062981; Fri, 3 Jul 2020 08:58:31 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 321cve9ke5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Jul 2020 08:58:30 -0400 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 063CWM5N068303; Fri, 3 Jul 2020 08:58:30 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 321cve9kdg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Jul 2020 08:58:30 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 063CkiGd024370; Fri, 3 Jul 2020 12:58:28 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06ams.nl.ibm.com with ESMTP id 31wwch6tw9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Jul 2020 12:58:28 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 063CwQNW63176796 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 3 Jul 2020 12:58:26 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 73BE052051; Fri, 3 Jul 2020 12:58:26 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by d06av21.portsmouth.uk.ibm.com (Postfix) with SMTP id DDCCA5204E; Fri, 3 Jul 2020 12:58:23 +0000 (GMT) Date: Fri, 3 Jul 2020 18:28:23 +0530 From: Srikar Dronamraju To: Michal Hocko Cc: Michal Such?nek , David Hildenbrand , Gautham R Shenoy , Linus Torvalds , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Satheesh Rajendran , Mel Gorman , "Kirill A. Shutemov" , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Christopher Lameter , Vlastimil Babka , Andi Kleen Subject: Re: [PATCH v5 3/3] mm/page_alloc: Keep memoryless cpuless node 0 offline Message-ID: <20200703125823.GA26243@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20200701084200.GN2369@dhcp22.suse.cz> <20200701100442.GB17918@linux.vnet.ibm.com> <184102af-ecf2-c834-db46-173ab2e66f51@redhat.com> <20200701110145.GC17918@linux.vnet.ibm.com> <0468f965-8762-76a3-93de-3987cf859927@redhat.com> <12945273-d788-710d-e8d7-974966529c7d@redhat.com> <20200701122110.GT2369@dhcp22.suse.cz> <20200703091001.GJ21462@kitsune.suse.cz> <20200703092414.GR18446@dhcp22.suse.cz> <20200703105944.GS18446@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20200703105944.GS18446@dhcp22.suse.cz> 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-07-03_06:2020-07-02,2020-07-03 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 priorityscore=1501 spamscore=0 suspectscore=0 phishscore=0 clxscore=1011 bulkscore=0 malwarescore=0 adultscore=0 mlxscore=0 cotscore=-2147483648 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2007030086 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Michal Hocko [2020-07-03 12:59:44]: > > Honestly, I do not have any idea. I've traced it down to > > Author: Andi Kleen > > Date: Tue Jan 11 15:35:48 2005 -0800 > > > > [PATCH] x86_64: Fix ACPI SRAT NUMA parsing > > > > Fix fallout from the recent nodemask_t changes. The node ids assigned > > in the SRAT parser were off by one. > > > > I added a new first_unset_node() function to nodemask.h to allocate > > IDs sanely. > > > > Signed-off-by: Andi Kleen > > Signed-off-by: Linus Torvalds > > > > which doesn't really tell all that much. The historical baggage and a > > long term behavior which is not really trivial to fix I suspect. > > Thinking about this some more, this logic makes some sense afterall. > Especially in the world without memory hotplug which was very likely the > case back then. It is much better to have compact node mask rather than > sparse one. After all node numbers shouldn't really matter as long as > you have a clear mapping to the HW. I am not sure we export that > information (except for the kernel ring buffer) though. > > The memory hotplug changes that somehow because you can hotremove numa > nodes and therefore make the nodemask sparse but that is not a common > case. I am not sure what would happen if a completely new node was added > and its corresponding node was already used by the renumbered one > though. It would likely conflate the two I am afraid. But I am not sure > this is really possible with x86 and a lack of a bug report would > suggest that nobody is doing that at least. > JFYI, Satheesh copied in this mailchain had opened a bug a year on crash with vcpu hotplug on memoryless node. https://bugzilla.kernel.org/show_bug.cgi?id=202187 -- Thanks and Regards Srikar Dronamraju