Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp637820imu; Thu, 20 Dec 2018 02:57:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/VkY7MyZLFXWTE24qSCgxLBFBWSXXLp9rHS4p/2UD86TS2YN2JYDil3oNmL/RyRvSn6aT0u X-Received: by 2002:a17:902:6946:: with SMTP id k6mr3424838plt.101.1545303473439; Thu, 20 Dec 2018 02:57:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545303473; cv=none; d=google.com; s=arc-20160816; b=QbGk6ZIdx2PtDSNdvkMON8w6muH8QYwyIlnnW+cFJV11lJ+1hjOxmkVRC+ldKcuE/K Bg+a1HkdanBj3kvgVcP4cI/yoLFCTgOLWG0kHR12YiNAmwEiS5FbwJy/pi9DYL8RULSm VLqXXbp50eQKTsM80SADVacCqXTpSOdOYwJbqo7IOsBP3POvplytytLiPst91BAKuwTf KjGaGPQEvrcS/uNQZ/Au+/bU5w1bnXJZYWSBBPSvg0HiXx43CL11NdIt77/k7VmkaX8+ oENjwfUEL8yoqBRzXfUnWbsvdN6zHpogo3zxEmn5OQ6JMIUkOQgzYwlyv/nSpeYFgwdE K0OQ== 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=mE+B0OwhS+QiQ0QSphZwrzI9j6Xq5Jxlza4uUq1dweQ=; b=eUHynSBPeRFdFiR6MtswdY3M3FhXAkkiKjTKe086HHF+NSY9BzOlSdA4YFhDpfoQyF /KGdkKcy/Fup0Gd0eb1gsd7h5+H+z7xIZIVEW0vbE2J7jxImDqDxDhWgAPMx9/QKAd6M 7ZE3kSBLNmGkgmkzEdAc6x0ytWdMHLs8S6e3v07vusR0SpZoIwx3SthNcWmkhQw/tQxO SBY3OjhDqjyt/mSPo9h4dG8PgwuN8nYQDuUO1u7ONSTSDcxQG9kh6VW2Qs7EKCY+eDpx dJw4uNLPbKQRzWPuW7n/pQvR43V3gtdYw/q/phl3vsRqu+T9vArdi0Bpx2crgkL3UgnD MMOQ== 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 z3si17700358pln.430.2018.12.20.02.57.37; Thu, 20 Dec 2018 02:57:53 -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 S1730345AbeLTJTr (ORCPT + 99 others); Thu, 20 Dec 2018 04:19:47 -0500 Received: from mx2.suse.de ([195.135.220.15]:52022 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730206AbeLTJTi (ORCPT ); Thu, 20 Dec 2018 04:19:38 -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 0EB1EB012; Thu, 20 Dec 2018 09:19:35 +0000 (UTC) Date: Thu, 20 Dec 2018 10:19:34 +0100 From: Michal Hocko To: Pingfan Liu Cc: Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Mike Rapoport , Bjorn Helgaas , Jonathan Cameron Subject: Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline Message-ID: <20181220091934.GC14234@dhcp22.suse.cz> References: <20181207142240.GC1286@dhcp22.suse.cz> <20181207155627.GG1286@dhcp22.suse.cz> <20181210123738.GN1286@dhcp22.suse.cz> <20181212115340.GQ1286@dhcp22.suse.cz> <20181217132926.GM30879@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 20-12-18 15:19:39, Pingfan Liu wrote: > Hi Michal, > > WIth this patch applied on the old one, I got the following message. > Please get it from attachment. [...] > [ 0.409637] NUMA: Node 1 [mem 0x00000000-0x0009ffff] + [mem 0x00100000-0x7fffffff] -> [mem 0x00000000-0x7fffffff] > [ 0.419858] NUMA: Node 1 [mem 0x00000000-0x7fffffff] + [mem 0x100000000-0x47fffffff] -> [mem 0x00000000-0x47fffffff] > [ 0.430356] NODE_DATA(0) allocated [mem 0x87efd4000-0x87effefff] > [ 0.436325] NODE_DATA(0) on node 5 > [ 0.440092] Initmem setup node 0 [mem 0x0000000000000000-0x0000000000000000] > [ 0.447078] node[0] zonelist: > [ 0.450106] NODE_DATA(1) allocated [mem 0x47ffd5000-0x47fffffff] > [ 0.456114] NODE_DATA(2) allocated [mem 0x87efa9000-0x87efd3fff] > [ 0.462064] NODE_DATA(2) on node 5 > [ 0.465852] Initmem setup node 2 [mem 0x0000000000000000-0x0000000000000000] > [ 0.472813] node[2] zonelist: > [ 0.475846] NODE_DATA(3) allocated [mem 0x87ef7e000-0x87efa8fff] > [ 0.481827] NODE_DATA(3) on node 5 > [ 0.485590] Initmem setup node 3 [mem 0x0000000000000000-0x0000000000000000] > [ 0.492575] node[3] zonelist: > [ 0.495608] NODE_DATA(4) allocated [mem 0x87ef53000-0x87ef7dfff] > [ 0.501587] NODE_DATA(4) on node 5 > [ 0.505349] Initmem setup node 4 [mem 0x0000000000000000-0x0000000000000000] > [ 0.512334] node[4] zonelist: > [ 0.515370] NODE_DATA(5) allocated [mem 0x87ef28000-0x87ef52fff] > [ 0.521384] NODE_DATA(6) allocated [mem 0x87eefd000-0x87ef27fff] > [ 0.527329] NODE_DATA(6) on node 5 > [ 0.531091] Initmem setup node 6 [mem 0x0000000000000000-0x0000000000000000] > [ 0.538076] node[6] zonelist: > [ 0.541109] NODE_DATA(7) allocated [mem 0x87eed2000-0x87eefcfff] > [ 0.547090] NODE_DATA(7) on node 5 > [ 0.550851] Initmem setup node 7 [mem 0x0000000000000000-0x0000000000000000] > [ 0.557836] node[7] zonelist: OK, so it is clear that building zonelists this early is not going to fly. We do not have the complete information yet. I am not sure when do we get that at this moment but I suspect the we either need to move that initialization to a sooner stage or we have to reconsider whether the phase when we build zonelists really needs to consider only online numa nodes. [...] > [ 1.067658] percpu: Embedded 46 pages/cpu @(____ptrval____) s151552 r8192 d28672 u262144 > [ 1.075692] node[1] zonelist: 1:Normal 1:DMA32 1:DMA 5:Normal > [ 1.081376] node[5] zonelist: 5:Normal 1:Normal 1:DMA32 1:DMA I hope to get to this before I leave for christmas vacation, if not I will stare into it after then. Thanks! -- Michal Hocko SUSE Labs