Re: [PATCH] memblock, numa: Binary search node id

2013-08-16 Thread Yinghai Lu
On Fri, Aug 16, 2013 at 12:01 PM, Russ Anderson wrote: > On Thu, Aug 15, 2013 at 01:43:48PM -0700, Andrew Morton wrote: >> On Wed, 14 Aug 2013 22:46:29 -0700 Yinghai Lu wrote: >> >> > Current early_pfn_to_nid() on arch that support memblock go >> > over memblock.memory one by one, so will take to

Re: [PATCH] memblock, numa: Binary search node id

2013-08-16 Thread Russ Anderson
On Thu, Aug 15, 2013 at 01:43:48PM -0700, Andrew Morton wrote: > On Wed, 14 Aug 2013 22:46:29 -0700 Yinghai Lu wrote: > > > Current early_pfn_to_nid() on arch that support memblock go > > over memblock.memory one by one, so will take too many try > > near the end. > > > > We can use existing mem

Re: [PATCH] memblock, numa: Binary search node id

2013-08-16 Thread Russ Anderson
On Fri, Aug 16, 2013 at 12:15:21PM -0700, Yinghai Lu wrote: > On Fri, Aug 16, 2013 at 12:01 PM, Russ Anderson wrote: > > On Thu, Aug 15, 2013 at 01:43:48PM -0700, Andrew Morton wrote: > >> On Wed, 14 Aug 2013 22:46:29 -0700 Yinghai Lu wrote: > >> > >> > Current early_pfn_to_nid() on arch that sup

Re: [PATCH] memblock, numa: Binary search node id

2013-08-15 Thread Russ Anderson
On Thu, Aug 15, 2013 at 02:06:44PM -0700, Yinghai Lu wrote: > On Thu, Aug 15, 2013 at 1:43 PM, Andrew Morton > wrote: > > On Wed, 14 Aug 2013 22:46:29 -0700 Yinghai Lu wrote: > > > >> Current early_pfn_to_nid() on arch that support memblock go > >> over memblock.memory one by one, so will take to

Re: [PATCH] memblock, numa: Binary search node id

2013-08-15 Thread Yinghai Lu
On Thu, Aug 15, 2013 at 1:43 PM, Andrew Morton wrote: > On Wed, 14 Aug 2013 22:46:29 -0700 Yinghai Lu wrote: > >> Current early_pfn_to_nid() on arch that support memblock go >> over memblock.memory one by one, so will take too many try >> near the end. >> >> We can use existing memblock_search to

Re: [PATCH] memblock, numa: Binary search node id

2013-08-15 Thread Andrew Morton
On Wed, 14 Aug 2013 22:46:29 -0700 Yinghai Lu wrote: > Current early_pfn_to_nid() on arch that support memblock go > over memblock.memory one by one, so will take too many try > near the end. > > We can use existing memblock_search to find the node id for > given pfn, that could save some time o

[PATCH] memblock, numa: Binary search node id

2013-08-14 Thread Yinghai Lu
Current early_pfn_to_nid() on arch that support memblock go over memblock.memory one by one, so will take too many try near the end. We can use existing memblock_search to find the node id for given pfn, that could save some time on bigger system that have many entries memblock.memory array. Sign