Re: [PATCH] stack and rcu interaction bug in smp_call_function_mask()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Monday, August 11, 2008 - 11:18 am

Arjan van de Ven wrote:

Well, send-to-all can be special cased (is already at the apic IPI 
level, but we could have a broadcast queue as well).

But I wonder how common an operation that is?  Most calls to 
smp_call_function_mask are sending to mm->cpu_vm_mask.  For a small 
number of cores, that could well be broadcast, but as the core count 
goes up, the likelihood that all cpus have been involved with a given mm 
will go down (very workload dependent, of course).

It could be that if we're sending to more than some proportion of the 
cpus, it would be more efficient to just broadcast, and let the cpus 
work out whether they need to do anything or not.  But that's more or 
less the scheme we have now...

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

Messages in current thread:
Re: [PATCH] stack and rcu interaction bug in smp_call_func ..., Jeremy Fitzhardinge, (Fri Aug 8, 7:17 pm)
Re: [PATCH] stack and rcu interaction bug in smp_call_func ..., Jeremy Fitzhardinge, (Sun Aug 10, 9:26 pm)
Re: [PATCH] stack and rcu interaction bug in smp_call_func ..., Jeremy Fitzhardinge, (Mon Aug 11, 11:18 am)
Re: [PATCH] stack and rcu interaction bug in smp_call_func ..., Jeremy Fitzhardinge, (Mon Aug 11, 11:27 am)
Re: [PATCH] stack and rcu interaction bug in smp_call_func ..., Jeremy Fitzhardinge, (Thu Aug 21, 1:50 pm)