On Mon, 13 Mar 2000, Ingo Molnar wrote:
>of course there is some overhead here, but it's not at all as slow as you
>imagine. It's these two additional (nonlocked) instructions on x86:
>
> decl %0
> jz 1f
>.section offline.preempt
> call do_reschedule
So you if you do:
sys_xxx {
spin_lock()
spin_unlock()
}
then the spin_unlock for sure jumps always far away out of line and you'll
see that change in the bench numbers.
Andrea
-
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/
This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:25 EST