Get the latest tech news

Linus Torvalds Improves Futex Code To Improve User-Space Accesses


In between managing all of the pull requests being submitted during this two week long merge window for the Linux 6.13 kernel, Linus Torvalds has merged some of his own code this cycle.

A profile showed that the offending __get_user() was the futex code, which really should be fixed up to not use that horrid legacy case. Rewrite futex_get_value_locked() to use the modern user acccess helpers, and inline it so that the compiler not only avoids the function call for a few instructions, but can do CSE on the address masking. This is just a minor improvement overall but Linux 6.13 as a whole is shaping up to be very exciting from new features to continuing with more performance optimizations.

Get the Android app

Or read this on Phoronix

Read more on:

Photo of Linus Torvalds

Linus Torvalds

Photo of space accesses

space accesses

Photo of futex code

futex code

Related news:

News photo

Linus Torvalds kicked the Russians out of Linux, now they're creating a sovereign Linux community in Russia — Ministry of Digital Development steps in

News photo

Linus Torvalds Lands A 2.6% Performance Improvement With Minor Linux Kernel Patch

News photo

Combustion engines grind Linus Torvalds' gears