Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7986047imu; Tue, 4 Dec 2018 00:35:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wh+8a64zeWfRdeaYyQ7euMMU01isIbLtJR1CniviroP/JkS/SDUu6MEgeM9R1b8jPtaFlJ X-Received: by 2002:a63:a002:: with SMTP id r2mr15756235pge.212.1543912521062; Tue, 04 Dec 2018 00:35:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543912521; cv=none; d=google.com; s=arc-20160816; b=dps+41GzYItS5tJKjJBi+SD2LxZ1blct3d5tqFSxjjeVfrLn9WpQUmrXlzq0ewWA8d ACfxh4foCEfBPTPdPXi3uIK6jMZlf3kqv8LKZ04XtjluNBrdnwWSQJ3RaBY/jkJ82QIG vWPrALeZGsIoyD0W7MYBF6w/+43n1Ru3WduGdYap6Cp7vZsHDXK/5t/JlQ1eYS6tGgC0 dGOQjpKsf8nvXXX+B59FJS9d72AmXLgj4F6eDbfi168khYRsgwm2v68xcc17LV2zNEyF KeU7qaDxmf6S2tBn+3rRdOXdaGJsjfDDX3K+goGDSN+kKpgn4pRROFjKoh825gJ6E/b0 mARA== 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:dkim-signature; bh=42DPJbxTAc+Ek7zaYRynT9Xbuqdi6d9nrHhRy0JKN9Y=; b=qGB+K16EILu7vadbv+YlFu8FICH/0OCT3M0LUdkuMnJBOVLd5gYVV2aQN6LpFtmRuL RmvvispqMdKUoYBUJXJfxTqx2kj4R1vVh2MR7DTWyNGPSm8cl+UlciqGpwZ9L8aKmEo9 GF00r9+fZHGKgJNwQBc0ggNyLbvX//fqtgocBh27NVOFUwI919Wqmh3ap7DVZ8GaDfAb dMLlxXEwynCOLX5zzsJ325E1+Nipjan7zqhhnpje6sq34IhLXy9L3w5B7b7bUYzPQqBH SMyoEQbb+VAKGgpBkhguH41f1E2yryMGpXRpEM0Ys3fH1wnu2pj8mC9bOM9GJ9W0iK/u 2Mng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mtI7s48J; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j35si13557738pgl.223.2018.12.04.00.35.05; Tue, 04 Dec 2018 00:35:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mtI7s48J; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725797AbeLDIeb (ORCPT + 99 others); Tue, 4 Dec 2018 03:34:31 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:40508 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbeLDIeb (ORCPT ); Tue, 4 Dec 2018 03:34:31 -0500 Received: by mail-ed1-f65.google.com with SMTP id d3so13141388edx.7 for ; Tue, 04 Dec 2018 00:34:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=42DPJbxTAc+Ek7zaYRynT9Xbuqdi6d9nrHhRy0JKN9Y=; b=mtI7s48JboIsB4KkGGP/oCbS57eA28JxdeWH99F2JU4DP1XiRctLl9Jh9/FHd/PcT3 NdPKpbPgcvS8yf0bhguOGXznCf0ve0DwPsMXBHzlKFPBFyir3FBNrhDXuREYqF+oHlvN ClAUqyZsOyJpNkSAKVQMSkr5UI/pPvj8wRvnIxtCSG9HsoGxGeRyJtNBUHFT1sGP4Sfb YQ9S3W6TG930V6LAIzsxLf/N+NVLltZfxc5NgjKD1IiVV0Mnt2PNdhOqxH0ZDzgtdrk7 ULESngTkAM/pA9bNdzWWDet8oZOgBKehEMu0MISB6OJKwPYapOSGKibuXkVMbtjpNc/Z IQdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=42DPJbxTAc+Ek7zaYRynT9Xbuqdi6d9nrHhRy0JKN9Y=; b=jMp95BF8L8yuOyYgpdgIyXvDsnSfsS4/HBhUt1VJo0JzDorMqslgznd24sONlX8gEn cJDK1UmgKwqVyLCxJzBmpm3lCC0HpoH3mhjadYqSoIHwP4qxCHpjZCa/fRkV06+mI7Tq WlQU84b+FyttZpNUx44WwjYIrbkZph3kjrMBVJZYvkU6GKMzSUIudrFwA4/twn+4u7Oz keuVXw8Hn2A3FDg7t9HxgVuDOu9cGP2DwoHYBk3OQm1vxZryYCyr5HeRk71RVQx0E3p0 COsJjWjIuf/2gVHymubsL1aujYIFa7fseFJ8AZjnBPX8wkGRgKtbrcigd1l/T/Co8bDY Uo9w== X-Gm-Message-State: AA+aEWa20aX5VaKvL6pw+8dleB5iSSMSh6GcAOdXFNBcjWYOIjJRU0kX b8B6tzaQQUYX3QIgxn55gXg= X-Received: by 2002:a50:f489:: with SMTP id s9mr16990398edm.101.1543912469323; Tue, 04 Dec 2018 00:34:29 -0800 (PST) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id f20sm4454754edf.19.2018.12.04.00.34.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Dec 2018 00:34:28 -0800 (PST) Date: Tue, 4 Dec 2018 08:34:28 +0000 From: Wei Yang To: Pingfan Liu Cc: richard.weiyang@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Michal Hocko , Vlastimil Babka , Mike Rapoport , Bjorn Helgaas , Jonathan Cameron Subject: Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline Message-ID: <20181204083428.emgcaomg6vulknaq@master> Reply-To: Wei Yang References: <1543892757-4323-1-git-send-email-kernelfans@gmail.com> <20181204065453.4rsyhtsk2aej4vim@master> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 04, 2018 at 03:20:13PM +0800, Pingfan Liu wrote: >On Tue, Dec 4, 2018 at 2:54 PM Wei Yang wrote: >> >> On Tue, Dec 04, 2018 at 11:05:57AM +0800, Pingfan Liu wrote: >> >During my test on some AMD machine, with kexec -l nr_cpus=x option, the >> >kernel failed to bootup, because some node's data struct can not be allocated, >> >e.g, on x86, initialized by init_cpu_to_node()->init_memory_less_node(). But >> >device->numa_node info is used as preferred_nid param for >> >> could we fix the preferred_nid before passed to >> __alloc_pages_nodemask()? >> >Yes, we can doit too, but what is the gain? node_zonelist() is used some places. If we are sure where the problem is, it is not necessary to spread to other places. > >> BTW, I don't catch the function call flow to this point. Would you mind >> giving me some hint? >> >You can track the code along slab_alloc() ->...->__alloc_pages_nodemask() slab_alloc() pass NUMA_NO_NODE down, so I am lost in where the preferred_nid is assigned. > >Thanks, >Pingfan -- Wei Yang Help you, Help me