login
Header Space

 
 

Re: [rfc][patch] x86-64 new smp_call_function design

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nick Piggin <npiggin@...>
Cc: Andi Kleen <ak@...>, Linux Kernel Mailing List <linux-kernel@...>, <linux-arch@...>
Date: Thursday, February 28, 2008 - 4:45 am

* Nick Piggin <npiggin@suse.de> wrote:


i dont mean "implement call-all as a series of call-single" calls, but 
use just a single queue of requests and differentiate on the data 
structure level. Right now you use the vector # as the differentiator.

but ... no strong feelings, i'm just playing the devil's advocate :) 
Your work is great (and i now see that i forgot to state this clearly 
enough in my first mail - i thought i to be obvious, based on your 
numbers!), i'm really just trying to micro-optimize the concept.

Could you try to unify it with the 32-bit code, preferably into a 
separate, unified arch/x86/kernel/smp.c file? Such an approach would 
make it into x86.git in a heartbeat :)


it's ~0.5% of our irq vector space? :-)

we could also try to implement a "NOP" type of single call [ using a nop 
callback is one of the easiest possibilities there ;) ] - which would 
allow us to eliminate the special reschedule vector as well. That means 
we could consolidate all the SMP cross-calls into a single vector.

OTOH, i see how you save multiplexing/demultiplexing complexity on both 
the sending and the receiving side by using the separate vectors. So i 
guess, if it's fast enough, we should indeed do your two vectors 
approach and also merge the reschedule special vector into the 
single-call path and thus have no effect on the size of the vector 
space. (no need to add a new vector even - just rename the reschedule 
vector to single-call vector)

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

Messages in current thread:
[rfc][patch] x86-64 new smp_call_function design, Nick Piggin, (Wed Feb 27, 8:42 am)
Re: [rfc][patch] x86-64 new smp_call_function design, Ingo Molnar, (Wed Feb 27, 9:27 am)
Re: [rfc][patch] x86-64 new smp_call_function design, Nick Piggin, (Wed Feb 27, 9:50 am)
Re: [rfc][patch] x86-64 new smp_call_function design, Ingo Molnar, (Wed Feb 27, 11:02 am)
Re: [rfc][patch] x86-64 new smp_call_function design, Nick Piggin, (Wed Feb 27, 6:14 pm)
Re: [rfc][patch] x86-64 new smp_call_function design, Ingo Molnar, (Thu Feb 28, 4:45 am)
Re: [rfc][patch] x86-64 new smp_call_function design, Andi Kleen, (Thu Feb 28, 8:55 am)
Re: [rfc][patch] x86-64 new smp_call_function design, Andi Kleen, (Wed Feb 27, 9:04 am)
Re: [rfc][patch] x86-64 new smp_call_function design, Nick Piggin, (Wed Feb 27, 9:07 am)
Re: [rfc][patch] x86-64 new smp_call_function design, Andi Kleen, (Wed Feb 27, 9:33 am)
Re: [rfc][patch] x86-64 new smp_call_function design, Avi Kivity, (Sun Mar 16, 10:33 am)
speck-geostationary