From: Keir Fraser Subject: Re: [RFO] #2: removing a concurrency bottleneck Date: Fri, 20 Mar 2009 08:46:55 +0000 Message-ID: References: <49C3622E.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49C3622E.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Dan Magenheimer Cc: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 20/03/2009 08:30, "Jan Beulich" wrote: > It should certainly be num_possible_cpus(), which (hopefully) is identical to > num_present_cpus() until physical CPU hotplug gets supported, in which > case some infrastructure will need to be added anyway so that your and > other code could do such per-CPU allocations on demand. > > Other than Keir suggested, I'd not recommend adding further NR_CPUS > sized arrays (based mostly on how long it took to mostly (fully?) get rid of > them in Linux in order to support huge systems) - just use per-CPU pointers > to dynamically allocated memory. Oh yes, that's a better idea! Please do that instead. -- Keir