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.
11 Comments