From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752401Ab3HOVhi (ORCPT ); Thu, 15 Aug 2013 17:37:38 -0400 Received: from relay3.sgi.com ([192.48.152.1]:35308 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750977Ab3HOVhg (ORCPT ); Thu, 15 Aug 2013 17:37:36 -0400 Date: Thu, 15 Aug 2013 16:37:34 -0500 From: Russ Anderson To: Yinghai Lu Cc: Andrew Morton , Tejun Heo , Linux MM , Linux Kernel Mailing List Subject: Re: [PATCH] memblock, numa: Binary search node id Message-ID: <20130815213734.GA28658@sgi.com> Reply-To: Russ Anderson References: <1376545589-32129-1-git-send-email-yinghai@kernel.org> <20130815134348.bb119a7987af0bb64ed77b7b@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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. > > > > Looks nice. I wonder how much difference it makes. > > Russ said he would test on his 256 nodes system, but looks he never > got chance. I reserved time tonight on a couple big systems to measure the performance difference. Thanks, -- Russ Anderson, OS RAS/Partitioning Project Lead SGI - Silicon Graphics Inc rja@sgi.com