Re: [PATCH 2.6.21-rc3-mm2 4/4] sys_futex64 : allows 64bit futexes

Ulrich Drepper
2007-03-15T19:37:22Z

[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

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 ❖

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]