Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10383451imu; Wed, 5 Dec 2018 23:25:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vnb2o62ZnsRjEllSaVygBVB9qTHCvU64nuPKpqULte2SMp4DpkYDnJZFQA4Z6OgbDy0O/7 X-Received: by 2002:a17:902:9a41:: with SMTP id x1mr137290plv.126.1544081140771; Wed, 05 Dec 2018 23:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544081140; cv=none; d=google.com; s=arc-20160816; b=nOhAtI3Ol0OagRDj+Pi5drXeOBZ5c5bxN1owJW/G55ZQNU+0Uv2l7zZ60KzMvZXA+T SWCXDzeXegzjlP8qXiTvSTsQ8KQ/Ft2hJO3/zp+MWWsma4AQGTtxRthbYtXrSfFh232X D9mrzF9iY2Xq+ZDFUMQvoPZMk4rgLYzbhmVzHVu71jixmwQE9W4a5DYOh9pExqOQTeN7 Isgjj+mx0TD/fvMloeXSbo897nil/61DJE0xbnScgdgaUY2Vg5JpVyOlBCpvS3UYOrXp pbaO+LQckiO4jQCjcESHXx2QhDyJqnR7QHCY2b0XaqLBEYtSuoTSRfAIctL6WrCF4pdR Q8bw== 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:message-id:subject:cc :to:from:date; bh=pSa93N3+EmFF4hcx0T2oK/66CJMx+csPpqRJw4sV3bw=; b=Bw9BI2yIturxszYXPgc0z8vTwC9/bsYKJSAEyC2gv1OenqilZqNvgkHqpQu1a90bvo t8Sf/2Oia90AvmsgPpdWvkBQCw13tcda+w5zUOV0q7bVY5mOqaTTPdQkFMROWu3Fv1UR +BIVIIylSZ9ybNdlI0J8QypcUTIpkxTUxqZ5tubpd67eoxlHCwjauMGrBVABDp5M/LfE T60rJ9V4a03oKsFlp5Telw6kUIaIDdBZiwBNYrPnxQ0ENsYuBVf2DiQO4uvd+veAXg5F OlXQVELdpgH1w3yQTzNn+RBoG69T1yd1HTkJ2L09CCViNDkJ9Djd0mjYxnDg+yP5EwHd blLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t69si20758520pgb.365.2018.12.05.23.25.24; Wed, 05 Dec 2018 23:25:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729127AbeLFHYB (ORCPT + 99 others); Thu, 6 Dec 2018 02:24:01 -0500 Received: from mx2.suse.de ([195.135.220.15]:33560 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728294AbeLFHYB (ORCPT ); Thu, 6 Dec 2018 02:24:01 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 94044AE66; Thu, 6 Dec 2018 07:23:59 +0000 (UTC) Date: Thu, 6 Dec 2018 08:23:57 +0100 From: Michal Hocko 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 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: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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