[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45F9A063.9040205@redhat.com>
Date: Thu, 15 Mar 2007 12:37:07 -0700
From: Ulrich Drepper <drepper@...hat.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: Pierre.Peiffer@...l.net, mingo@...e.hu,
linux-kernel@...r.kernel.org, jean-pierre.dion@...l.net
Subject: Re: [PATCH 2.6.21-rc3-mm2 4/4] sys_futex64 : allows 64bit futexes
Andrew Morton wrote:
> Well OK. But that doesn't actually explain why 64-bit mutexes are needed.
> It just says they are required.
I can show you the code but it's not easy to understand. For
complicated syn objects like rwlocks the state information is more than
just locked or not. Currently we have to use internal locks, modify the
state information, and then release it. This is terribly inefficient
when many threads are used. With 64bit futexes the state information
can be kept in the futex object and we don't need an internal lock,
hence the speed-up.
--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
Download attachment "signature.asc" of type "application/pgp-signature" (252 bytes)
Powered by blists - more mailing lists