Re: [PATCH -v3] use per cpu data for single cpu ipi calls

From: Linus Torvalds
Date: Fri Jan 30 2009 - 11:05:21 EST




On Fri, 30 Jan 2009, Peter Zijlstra wrote:
>
> Signed-off-by: Steven Rostedt <srostedt@xxxxxxxxxx>
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>

Acked-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

My only question is whetherr we might even drop the kmalloc() some day:
I suspect that the CSD_FLAG_LOCK is essentially never a contention point,
and the cost (and occasional synchronization) of kmalloc() quite possibly
overwhelms any theoretical scaling ability.

If another CPU hasn't even received its IPI before the same CPU sends the
next one, I'm not sure we _want_ to send one, in fact.

But that's a secondary issue, and isn't a correctness thing, just a "do we
really need three different allocations?" musing..

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/