Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7932172imu; Mon, 3 Dec 2018 23:21:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/WGCa7x5KUdfUyOT0uyaSZUH4QWFkUrrL8hdKmH8oE5xcUaYHQDWgwNqjuOSI1XvoYEyTiJ X-Received: by 2002:a62:2c81:: with SMTP id s123mr18737048pfs.174.1543908078054; Mon, 03 Dec 2018 23:21:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543908078; cv=none; d=google.com; s=arc-20160816; b=XCwXF8+ESJvHJ9RyIQlBCAs3D9j8FGQ2QhzbFOIXTeyuc+0GkhRh3m/M8PJOd4PLGX oV1Z0MV40JZ5VLq6KxIKnBvvdgYKfhRQXOpL5rbeMTpSg9FNjgpe4Vr2ohsJYxLuK++S N09tvdDCXbAhWMaJ4egcNpkBJInC/wuaZ4SNrDdhEmcgSD7/lftgBgy3Ae+US9Hri5KQ 7APUpaMrF0yPudaD6BghjTk0U17tBDTblp0vUJVQtA7TCqrpUaabRQvcJHJNwV/oHdVT OMCPfOPq+isggRoZuYx9vuxuv5mLAuVlr9IE2K1qh4QDFI9otIAmawcPL5cjyM5uxkfV 2Zpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BkwZTCjxjMRS0mgg5lpZWC1vgbD+70J+PanvKnwZCp4=; b=H7kk2WY33zV7CY38OOiV9UdvLe2DRYWbCYDoWg0snQpJ59VCiz11sDEG7ef+a9LarH Yl9a/bK9i1jI5etQr0KyWs+SBCfFNQYyyuvRFze5ZYpWNvRwpc1fZibMT59ak8j6Tm7M FZOtZb69wf0QxvF/m3omL97NHLy0YcsJPDppb/BL0KkI0E0Ludr3l9ebJUam/NWpwbz0 sZS59rEaNBtRPYuSeNo498rZgQ6hFf45y0R+0tnTeXbmxfIs2E0+1kuaGBGgVRua+hjx 1tk7tqtU5pj8V06cimw8L/efo6DJFmkJNUsqAm0eRSsrRnonJIvxyhYe8it/+yZ9INNd N+Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="H/BoPqSn"; 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 bi6si16392325plb.279.2018.12.03.23.21.02; Mon, 03 Dec 2018 23:21:18 -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="H/BoPqSn"; 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 S1726013AbeLDHU1 (ORCPT + 99 others); Tue, 4 Dec 2018 02:20:27 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:42487 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbeLDHU1 (ORCPT ); Tue, 4 Dec 2018 02:20:27 -0500 Received: by mail-ed1-f67.google.com with SMTP id j6so12981994edp.9 for ; Mon, 03 Dec 2018 23:20:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BkwZTCjxjMRS0mgg5lpZWC1vgbD+70J+PanvKnwZCp4=; b=H/BoPqSnfaOUCZexBPeRTZj3f4Q1ctVK/LfeYp0wbiYkInEjEJQHnJ/UTcf9VIBYyJ fZGcFWfB+AXJZomsVo4cdy+IANibHi6zo1h9bSPhA+X8R2HHhGAGkuj6SQB3QL/5kJDh O4iF5aptPo1OIq72oqlfM+X5juSgFlwCZHR8lvXDSzSDzkYTVcS8q7TtbncLpgQq1ciQ C3IS7Qwq2jkr1T98HqQQ2UPFzoT7kHFNchLpHzfQL2dFIUusSnX+w2Ti5yXt21AwI1yd YjMBtzL/jPVsopzWAhZM1g4BmIj43Ol5VB+O7uHHGPvBBml8B4XT4zD5K9K9qMC8OUlc PINQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BkwZTCjxjMRS0mgg5lpZWC1vgbD+70J+PanvKnwZCp4=; b=BeWNfBcuUomI97UPKEzk0KF3ATBumSGAn9kbg9sESclJVOA0YRTsYdbk+qE7d8f5ot MUYZ3IC9YCNa03lFx+J2h3VBdsmhBE3X4RS53SGaO8CuTQLmycWb/0HlB4VvZ4Ej5SKw f8muONmV4X14mGa6YdfLP+SzOJN/B3FYlw2GWzAFlhPiwl32ZgOC3K4ntrLvaCBNllLa BY1PzDsqbV2g5f5JaYyX2Z38B17H9e4J+9GmPrHetGSMpt39KH/MB+j+VG1DjBTvM/bn aU7cRf3Miu8q45RGICU9jV6cek49LtDAm3m+ZraUAluBfo0cxV3G/2Q4/bb0l7gZkbb8 tm2w== X-Gm-Message-State: AA+aEWaQPOqXZ0Ml5g1l6wY9bx0z7IjqSNWX2UKsIebp/P8CvDH746+y E1fXWRrsgVob/SR8y/n7V3wUiJspp6aSQWY4wg== X-Received: by 2002:a17:906:3488:: with SMTP id g8-v6mr15107013ejb.11.1543908025330; Mon, 03 Dec 2018 23:20:25 -0800 (PST) MIME-Version: 1.0 References: <1543892757-4323-1-git-send-email-kernelfans@gmail.com> <20181204065453.4rsyhtsk2aej4vim@master> In-Reply-To: <20181204065453.4rsyhtsk2aej4vim@master> From: Pingfan Liu Date: Tue, 4 Dec 2018 15:20:13 +0800 Message-ID: Subject: Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline To: richard.weiyang@gmail.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Michal Hocko , Vlastimil Babka , Mike Rapoport , Bjorn Helgaas , Jonathan Cameron Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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() Thanks, Pingfan