Skip to content

RFC futex: Add support for attached futexes

Thomas Gleixner lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7futex: Provide helpers for hash bucket add/removekernel/futex.c+33 -60 replies
2/7futex: Add some more function commentrykernel/futex.c+12 -30 replies
3/7futex: Make key init a helper functionkernel/futex.c+61 -60 replies
4/7futex: Add support for attached futexesinclude/linux/futex.h include/linux/sched.h include/uapi/linux/futex.h +2 more+458 -1315 replies
5/7perf/bench/futex-hash: Support for attached futexestools/perf/bench/futex-hash.c tools/perf/bench/futex.h+44 -100 replies
6/7futex.2: Document attached modeman2/futex.2+75 -30 replies
7/7glibc: nptl: Add support for attached pthread_mutexesnptl/Makefile nptl/Versions nptl/pthreadP.h +18 more+208 -383 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC patch 0/7] futex: Add support for attached futexes

The standard futex mechanism in the Linux kernel uses a global hash to store transient state. Collisions on that hash can lead to performance degradation and on real-time enabled kernels to unbound priority inversions.

To guarantee futexes without collisions on the global kernel hash, we provide a mechanism to attach to a futex. This creates futex private state which avoids hash collisions and on NUMA systems also cross node memory accesses.

The full explanation of the mechanism is in the changelog of patch 4/7 'futex: Add support for attached futexes'.

The last two patches in the series contain a first update to the futex man page and initial glibc support.

For your conveniance the kernel part is available at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.futex

Thanks,

tglx