Show Your Support: This site is primarily supported by advertisements. Ads are what have allowed this site to be maintained on a daily basis for the past 18+ years. We do our best to ensure only clean, relevant ads are shown, when any nasty ads are detected, we work to remove them ASAP. If you would like to view the site without ads while still supporting our work, please consider our ad-free Phoronix Premium.
Linux 5.17 To Boast Latency Optimization For AF_UNIX Sockets
A new patch series was queued up on Friday in net-next for improving the AF_UNIX code. That patch series by Kuniyuki Iwashima of Amazon Japan is ultimately about replacing AF_UNIX sockets' single big lock with per-hash locks. The series replaces the AF_UNIX big lock and also as part of the series has a speed-up to the autobind behavior.
The patch series is enticing for heavy AF_UNIX usage. Replacing the big lock has a nice latency improvement in testing conducted by Amazon AWS:
Relaxing a race within unix_autobind() provides for another nice latency improvement in cases of autobind'ing many sockets in parallel by searching for a name from a random number.
Linux 5.17 material continues piling up to make for an exciting next kernel cycle in 2022.