Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rather than rcu

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andi Kleen <andi@...>
Cc: Paul E. McKenney <paulmck@...>, Christoph Lameter <cl@...>, Pekka Enberg <penberg@...>, Ingo Molnar <mingo@...>, Nick Piggin <nickpiggin@...>, Pallipadi, Venkatesh <venkatesh.pallipadi@...>, Suresh Siddha <suresh.b.siddha@...>, Jens Axboe <jens.axboe@...>, Rusty Russell <rusty@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Sunday, August 24, 2008 - 12:55 am

Andi Kleen wrote:

Just longer code path, I think.  It calls the generic
smp_call_function_mask(), which then does a popcount on the cpu mask
(which it needs to do anyway), sees only one bit set, and then punts to
the smp_call_function_single() path.  If we maintained a cpus_online
count, then we could fast-path the call to smp_call_function_single() in
the two core/cpu case more efficiently (would still need to scan the
mask to extract the cpu number).

Or alternatively, maybe it isn't actually worth special casing
smp_call_function_single() with a multi-queue smp_call_function_mask()
implementation?

    J
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] smp_call_function: use rwlocks on queues rather ..., Jeremy Fitzhardinge, (Thu Aug 21, 8:29 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Christoph Lameter, (Fri Aug 22, 10:01 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Paul E. McKenney, (Fri Aug 22, 11:11 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Christoph Lameter, (Fri Aug 22, 1:14 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Christoph Lameter, (Fri Aug 22, 2:36 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Christoph Lameter, (Fri Aug 22, 4:03 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Paul E. McKenney, (Mon Aug 25, 11:12 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Christoph Lameter, (Mon Aug 25, 11:44 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Christoph Lameter, (Mon Aug 25, 11:46 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Paul E. McKenney, (Wed Aug 27, 11:16 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Jeremy Fitzhardinge, (Fri Aug 22, 2:35 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rat..., Jeremy Fitzhardinge, (Sun Aug 24, 12:55 am)