From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [02/17][PATCH] Implement smp_call_function_mask for ia64 - V8 Date: Mon, 31 Mar 2008 08:02:22 -0700 Message-ID: <47F0FCFE.5010106@goop.org> References: <42DFA526FC41B1429CE7279EF83C6BDC01048240@pdsmsx415.ccr.corp.intel.com> <47F0AB18.2010707@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Zhang, Xiantao" , Carsten Otte , "Luck, Tony" , linux-ia64@vger.kernel.org, kvm-ia64-devel@lists.sourceforge.net, kvm-devel@lists.sourceforge.net, virtualization@lists.linux-foundation.org, "Xu, Anthony" To: Jes Sorensen Return-path: In-Reply-To: <47F0AB18.2010707@sgi.com> Sender: linux-ia64-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Jes Sorensen wrote: > I'm a little wary of the performance impact of this change. Doing a > cpumask compare on all smp_call_function calls seems a little expensive. > Maybe it's just noise in the big picture compared to the actual cost of > the IPIs, but I thought I'd bring it up. > > Keep in mind that a cpumask can be fairly big these days, max NR_CPUS > is currently 4096. For those booting a kernel with NR_CPUS at 4096 on > a dual CPU machine, it would be a bit expensive. > Unless your hardware has remarkably fast IPIs, I think really the cost of scanning 512 bytes is going to be in the noise... This change has been on the x86 side for ages, and not even Ingo made a peep about it ;) > Why not keep smp_call_function() the way it was before, rather than > implementing it via the call to smp_call_function_mask()? > Because Xen needs a different core implementation (because of its different IPI implementation), and it would be better to just have to do one of them rather than N. J