Re: [PATCH] Futexes IV (Fast Lightweight Userspace Semaphores)

From: H. Peter Anvin (hpa@zytor.com)
Date: Fri Mar 08 2002 - 18:44:45 EST


Followup to: <20020308225425.772D13FE06@smtp.linux.ibm.com>
By author: Hubertus Franke <frankeh@watson.ibm.com>
In newsgroup: linux.dev.kernel
> >
> > Can we go to cache line alignment - for an array of locks thats clearly
> > advantageous
>
> NO and let me explain.
>
> I would to be able to integrate the lock with the data.
> This is much more cache friendly then putting the lock on a different
> cacheline.
>

Not just cache, but programmer-friendly as well. Data structures
containing locks (sometimes multiple and related) are really the
common case.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 15 2002 - 22:00:10 EST