lkml.org 
[lkml]   [2013]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 20/20] x86, mm, numa: Put pagetable on local node ram for 64bit
From
On Sun, Mar 10, 2013 at 10:49 PM, Tang Chen <tangchen@cn.fujitsu.com> wrote:
> On 03/10/2013 02:44 PM, Yinghai Lu wrote:
>>
>> Calling init_mem_mapping in early_initmem_init for every node.
>> alloc_low_pages will alloc page table in following order:
>> BRK, local node, low range
>> So page table will be on low range or local nodes.
...
> IIUC, we call init_mem_mapping() for each node ranges. In the first time,
> local_max_pfn_mapped = begin >> PAGE_SHIFT;
> local_min_pfn_mapped = real_end >> PAGE_SHIFT;
> which means
> local_min_pfn_mapped >= local_max_pfn_mapped
> right ?
>
> So, the first page allocated by alloc_low_pages() is not on local node,
> right ?

It is from BRK with kernel code.

> Furthermore, the first page of pagetable is not on local node, right ?

It is in BRK for node with start = 0.

Other node, it is from low_range aka node with start = 0.

Thanks

Yinghai


\
 
 \ /
  Last update: 2013-03-11 08:01    [W:0.344 / U:1.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site