[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFgQCTv5-jeqwRVkJuDHvv0vq6uCzfdV2ZmVAU3eUzn2w2ReEQ@mail.gmail.com>
Date: Thu, 6 Dec 2018 11:07:33 +0800
From: Pingfan Liu <kernelfans@...il.com>
To: Vlastimil Babka <vbabka@...e.cz>
Cc: mhocko@...nel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Mike Rapoport <rppt@...ux.vnet.ibm.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>
Subject: Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline
On Wed, Dec 5, 2018 at 5:40 PM Vlastimil Babka <vbabka@...e.cz> wrote:
>
> On 12/5/18 10:29 AM, Pingfan Liu wrote:
> >> [ 0.007418] Early memory node ranges
> >> [ 0.007419] node 1: [mem 0x0000000000001000-0x000000000008efff]
> >> [ 0.007420] node 1: [mem 0x0000000000090000-0x000000000009ffff]
> >> [ 0.007422] node 1: [mem 0x0000000000100000-0x000000005c3d6fff]
> >> [ 0.007422] node 1: [mem 0x00000000643df000-0x0000000068ff7fff]
> >> [ 0.007423] node 1: [mem 0x000000006c528000-0x000000006fffffff]
> >> [ 0.007424] node 1: [mem 0x0000000100000000-0x000000047fffffff]
> >> [ 0.007425] node 5: [mem 0x0000000480000000-0x000000087effffff]
> >>
> >> There is clearly no node2. Where did the driver get the node2 from?
>
> I don't understand these tables too much, but it seems the other nodes
> exist without them:
>
> [ 0.007393] SRAT: PXM 2 -> APIC 0x20 -> Node 2
>
> Maybe the nodes are hotplugable or something?
>
I also not sure about it, and just have a hurry look at acpi spec. I
will reply it on another email, and Cced some acpi guys about it
> > Since using nr_cpus=4 , the node2 is not be instanced by x86 initalizing code.
>
> Indeed, nr_cpus seems to restrict what nodes we allocate and populate
> zonelists for.
Yes, in init_cpu_to_node(), since nr_cpus limits the possible cpu,
which affects the loop for_each_possible_cpu(cpu) and skip the node2
in this case.
Thanks,
Pingfan
Powered by blists - more mailing lists