Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2607443ybk; Tue, 12 May 2020 03:46:51 -0700 (PDT) X-Google-Smtp-Source: APiQypJEspGQWXvfppTEHQB1wXAHTFJp3Nj2CkTk1SomUvrdY59kpjo3l3CC+CD+sAHV6M4RCE8c X-Received: by 2002:a05:6402:7d6:: with SMTP id u22mr17129929edy.149.1589280411477; Tue, 12 May 2020 03:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589280411; cv=none; d=google.com; s=arc-20160816; b=YDo2msbr28zurxCtfranG2jLFybot7H+HPcPxfxm7xELhFSprkhWAywFjenkGog4MT EYcUubohO82hUIKFVdyZY4x65zMjTw8DIgjg8xX83o/XcjNZQFOvZsmaL48+5wEj2lr/ 1JmYJ5gJR4D60c0V14NQgjMK8QSS0GBLDBg/80WnbPArO/e7SBQYlTBs0wSljRbsNVA8 gwaL7r7fImfLjr+B6Pa9Ud77m2VsVMmTszsuc3rBix5spw2S+suXaZouA/ZhRw7moovj SPFdiNPoKwrFJNupt64x+6L6BWA7zT06I/FiV0jVIT0r/q2tmVtOW84pcwxTFo2+lneQ LgmQ== 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=sjbHJGUkgrp/lbRbinzMcnjLmnLtOMwU/JHV3rzuLRQ=; b=AEHtL4sQVh9ufjo8gRZ9RAWMi170nATRQfrp3O44kJRdNUMImv1uGdwkWF3uA014g3 db7quhJQAYuNtM/9NfBOe3Ms+nx4C1jZs6QSwdxi04r5o3u5y9kAyNyV1DopkiiA2Jdl DiRz25xXa9v//88u1dcxqSWXD5lnp/Gd19CUrOmTTE1T/XuJBQ3984WVl7+tvIG8vgmx 07A2hzA488rKVZuHHDHt5WWah0G8SSHm3/eahxeFf77vEI0Axhyrxu5nBsnd4JZXbv11 nneC/XGN6pqnk7UXEKMvI8PTeOogsOq9mfoC/0s+d4DKSAGi9HigvEYxK2ZBLGmSGTIe vqQA== 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 co20si272593edb.86.2020.05.12.03.46.29; Tue, 12 May 2020 03:46:51 -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 S1729570AbgELKmv (ORCPT + 99 others); Tue, 12 May 2020 06:42:51 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:56742 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbgELKmu (ORCPT ); Tue, 12 May 2020 06:42:50 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04CA25KD188014; Tue, 12 May 2020 06:42:35 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 30y8wtcwra-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 May 2020 06:42:34 -0400 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 04CA36YA005388; Tue, 12 May 2020 06:42:34 -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 30y8wtcwqa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 May 2020 06:42:34 -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 04CAeQU1004639; Tue, 12 May 2020 10:42:32 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03ams.nl.ibm.com with ESMTP id 30wm55p8td-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 May 2020 10:42:31 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 04CAgThg62652518 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 May 2020 10:42:29 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B6EB5A4053; Tue, 12 May 2020 10:42:29 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6A65DA404D; Tue, 12 May 2020 10:42:27 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by d06av23.portsmouth.uk.ibm.com (Postfix) with SMTP; Tue, 12 May 2020 10:42:27 +0000 (GMT) Date: Tue, 12 May 2020 16:12:26 +0530 From: Srikar Dronamraju To: David Hildenbrand Cc: Michal Hocko , Andrew Morton , linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mel Gorman , Vlastimil Babka , "Kirill A. Shutemov" , Christopher Lameter , Michael Ellerman , Linus Torvalds , Satheesh Rajendran Subject: Re: [PATCH v2 3/3] mm/page_alloc: Keep memoryless cpuless node 0 offline Message-ID: <20200512104226.GE1961@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20200428165912.ca1eadefbac56d740e6e8fd1@linux-foundation.org> <20200429014145.GD19958@linux.vnet.ibm.com> <20200429122211.GD28637@dhcp22.suse.cz> <20200430071820.GF19958@linux.vnet.ibm.com> <20200504093712.GL22838@dhcp22.suse.cz> <20200508130304.GA1961@linux.vnet.ibm.com> <3bfe7469-1d8c-baa4-6d9d-f4786492eaa8@redhat.com> <20200511174731.GD1961@linux.vnet.ibm.com> <45d50d80-c998-9372-42eb-ca753a7258b9@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <45d50d80-c998-9372-42eb-ca753a7258b9@redhat.com> 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-12_02:2020-05-11,2020-05-12 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 phishscore=0 impostorscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 mlxlogscore=974 spamscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005120077 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * David Hildenbrand [2020-05-12 09:49:05]: > On 11.05.20 19:47, Srikar Dronamraju wrote: > > * David Hildenbrand [2020-05-08 15:42:12]: > > > > > > [root@localhost ~]# cat /sys/devices/system/node/online > > 0 > > [root@localhost ~]# cat /sys/devices/system/node/possible > > 0-1 > > > > Even without my patch, both the combinations, I am still unable to see a > > cpuless, memoryless node being online. And the interesting part being even > > Yeah, I think on x86, all memory-less and cpu-less nodes are offline as > default. Especially when hotunplugging cpus/memory, we set them offline > as well. I also came to the same conclusion that we may not have a cpuless,memoryless node on x86. > > But as Michal mentioned, the node handling code is complicated and > differs between various architectures. > I do agree that node handling code differs across various architectures and quite complicated. > > if I mark node 0 as cpuless,memoryless and node 1 as actual node, the system > > somewhere marks node 0 as the actual node. > > Is the kernel maybe mapping PXM 1 to node 0 in that case, because it > always requires node 0 to be online/contain memory? Would be interesting > what happens if you hotplug a DIMM to (QEMU )node 0 - if PXM 0 will be > mapped to node 1 then as well. > Satheesh Rajendra had tried with cpu hotplug on a similar setup and we found that it crashes the x86 system. reference: https://bugzilla.kernel.org/show_bug.cgi?id=202187 Even if we were able to hotplug 1 DIMM memory into node 1, that would no more be a memoryless node. -- Thanks and Regards Srikar Dronamraju