Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp43099ybj; Fri, 8 May 2020 06:10:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLXXorywXcdaWmG7Cy2I22Q4FIf8YpFqSMCgkLj5NLbfPV4caxfoBCD19QkFuX7CiFsRyZ9 X-Received: by 2002:a17:906:e098:: with SMTP id gh24mr1885214ejb.44.1588943428143; Fri, 08 May 2020 06:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588943428; cv=none; d=google.com; s=arc-20160816; b=WUUIHygp/6sumxdbV7ZaZcpcPbEM++8TuDYBL/MzElmgH7BYegE+jrxeergLjhkw46 2N2ENxBGCHfTxGCCif2a2N8nPEHPFKdGW9NkzJHT13zUz6BDKLRs0tUm+bYvhbhDSbcW zpUGK6/Bk6V2EOt5GeGi+A1fJJ/tPUNUU5C5WuZTHbMAwS/yAkNX1zFcmWLhVsgKmyJm YUPeW03YiiT27tjycTokFzo+tK9CBG8w+OxjO2eDhlhLlbsvS13UKnsqXeMIsBqV4qpM LBALbHABOX16U7uZ4Libfc93N0TKOySnaOzOYm1mMJSBqbL2SaVovw8WwyXXurCCYP/a hsRw== 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=/xfAukGY1CwmDDNzjoBPtYSG0bvu7QvLGBxaAaHG8Oc=; b=ZKalY+B+lNhLnf/ASmPm2D/caoGLe4CqAMg3hLA8NsudbGwja9BEzsxNTAfaaWiRkn 0CFiRrbEZNcET92W0KjKtg++Wb0txVcEtGqeurUTMYFogaeaKCl22gwIday2NjT578ZP j7YC/GAmXbZa4AtjCBiQvtO3M1Mp9Nhb+yRaqQoo5gO4MkHREOFpoF+fcwv20OgbmBIH vU+8taHwAzlJTw0LVm2hT3Kdnlq2G5iT+qQovMbuGn8sBs7MnMbh0MU/bOZhyeHoqkJi kecrjlsXk+CGh0S1xyQq2usFk+/v7/PNMirUHIYH5XbFyO7d7GQ9fEI35XseYPxaXp4x nrUg== 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 r25si920869edb.189.2020.05.08.06.09.59; Fri, 08 May 2020 06:10:28 -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 S1729770AbgEHNGd (ORCPT + 99 others); Fri, 8 May 2020 09:06:33 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:29936 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728303AbgEHNGJ (ORCPT ); Fri, 8 May 2020 09:06:09 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 048D34s8024535; Fri, 8 May 2020 09:05:41 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 30vtt0m578-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 May 2020 09:05:41 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 048D01rw018164; Fri, 8 May 2020 13:05:39 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma03ams.nl.ibm.com with ESMTP id 30s0g5wffg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 May 2020 13:05:39 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 048D5bR264356640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 8 May 2020 13:05:37 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EA1BC4C046; Fri, 8 May 2020 13:05:36 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D55094C04A; Fri, 8 May 2020 13:05:34 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by d06av22.portsmouth.uk.ibm.com (Postfix) with SMTP; Fri, 8 May 2020 13:05:34 +0000 (GMT) Date: Fri, 8 May 2020 18:35:34 +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 Subject: Re: [PATCH v3 3/3] mm/page_alloc: Keep memoryless cpuless node 0 offline Message-ID: <20200508130534.GB1961@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20200501031128.19584-1-srikar@linux.vnet.ibm.com> <20200501031128.19584-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.216,18.0.676 definitions=2020-05-08_12:2020-05-07,2020-05-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 mlxscore=0 malwarescore=0 spamscore=0 bulkscore=0 suspectscore=0 phishscore=0 adultscore=0 impostorscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005080116 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Christopher Lameter [2020-05-02 23:05:28]: > On Fri, 1 May 2020, Srikar Dronamraju wrote: > > > --- a/mm/page_alloc.c > > +++ b/mm/page_alloc.c > > @@ -116,8 +116,10 @@ EXPORT_SYMBOL(latent_entropy); > > */ > > nodemask_t node_states[NR_NODE_STATES] __read_mostly = { > > [N_POSSIBLE] = NODE_MASK_ALL, > > +#ifdef CONFIG_NUMA > > + [N_ONLINE] = NODE_MASK_NONE, > > Hmmm.... I would have expected that you would have added something early > in boot that would mark the current node (whatever is is) online instead? Do correct me, but these are structure initialization in page_alloc.c Wouldn't these happen much before the numa initialization happens? I think we are already marking nodes as online as soon as we detect the nodes. -- Thanks and Regards Srikar Dronamraju