From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by kanga.kvack.org (Postfix) with ESMTP id C0E016B78BC for ; Thu, 6 Dec 2018 02:24:01 -0500 (EST) Received: by mail-ed1-f71.google.com with SMTP id y35so11103146edb.5 for ; Wed, 05 Dec 2018 23:24:01 -0800 (PST) Received: from mx1.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id i12si5878072edq.264.2018.12.05.23.24.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 23:24:00 -0800 (PST) Date: Thu, 6 Dec 2018 08:23:57 +0100 From: Michal Hocko Subject: Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline Message-ID: <20181206072357.GA1286@dhcp22.suse.cz> References: <1543892757-4323-1-git-send-email-kernelfans@gmail.com> <20181204072251.GT31738@dhcp22.suse.cz> <20181204085601.GC1286@dhcp22.suse.cz> <20181205092148.GA1286@dhcp22.suse.cz> <20181205094327.GD1286@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Pingfan Liu Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Vlastimil Babka , Mike Rapoport , Bjorn Helgaas , Jonathan Cameron , "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org On Thu 06-12-18 11:34:30, Pingfan Liu wrote: [...] > > I suspect we are looking at two issues here. The first one, and a more > > important one is that there is a NUMA affinity configured for the device > > to a non-existing node. The second one is that nr_cpus affects > > initialization of possible nodes. > > The dev->numa_node info is extracted from acpi table, not depends on > the instance of numa-node, which may be limited by nr_cpus. Hence the > node is existing, just not instanced. Hmm, binding to memory less node is quite dubious. But OK. I am not sure how much sanitization can we do. We need to fallback anyway so we should better make sure that all possible nodes are initialized regardless of nr_cpus. I will look into that. -- Michal Hocko SUSE Labs