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

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

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

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 r...@sgi.com 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 ying...@kernel.org wrote: Current

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 ying...@kernel.org 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

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 r...@sgi.com 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 ying...@kernel.org wrote: Current early_pfn_to_nid() on arch that support memblock go over memblock.memory one by

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

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

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

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 ying...@kernel.org 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

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 a...@linux-foundation.org wrote: On Wed, 14 Aug 2013 22:46:29 -0700 Yinghai Lu ying...@kernel.org 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

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 a...@linux-foundation.org wrote: On Wed, 14 Aug 2013 22:46:29 -0700 Yinghai Lu ying...@kernel.org wrote: Current early_pfn_to_nid() on arch that support memblock go over

[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.

[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.