Yes, but which flavour depends on the surrounding context.
> I have seen figures (from a DEC/Compaq guy) for the cost of
> an uncontended mutex lock+unlock over the Alpha generations, and it
> looked to have stayed pretty constant relative to the typical IPC for
> the processors. I suppose that as ll/sc has got cheaper, the memory
> barriers have got more expensive.
Not really. Add a full `mb' and the total comes to 70 cycles
on an ev56. More expensive, yes, but a far cry from ev4 lossage.
The effect of `wmb' isn't visible in small tests.
r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/