Re: Why Semaphore Hardware-Dependent?

Christoph Lameter
2006-08-27T22:14:56Z

On Sun, 27 Aug 2006, Andi Kleen wrote:

> x86-64 always uses the spinlocked version (vs i386 using the atomic one)
> and I haven't heard of anybody complaining.

Ia64 has special counters for rwsemaphores. I'd like to see if there is
any performance loss. mmap_sem is a rwsemaphore. This is performance
critical.