News for hackers. Stuff that matters.
Re:Without the Futex, It's Futile by viega on Tuesday August 19, 2025 @10:43AM (#44952125)
Yes, it's gotten quite large, but I think with far fewer wrong turns in the API compared to the futex. Enough was available async via `epoll()` + having fd interfaces to things that I never was as worried about the arbitrary latency of syscalls, but it's still incredibly cool, especially in the number of calls it avoids outright.
Re:Without the Futex, It's Futile by johncolanduoni on Tuesday August 19, 2025 @11:07AM (#44952429)
`epoll` doesn’t actually do any IO though, so it doesn’t help with syscall latency. It just avoids the overhead of doing IO via a large number of threads (memory overhead, hard context switches, etc.).
Re:Without the Futex, It's Futile by viega on Tuesday August 19, 2025 @11:17AM (#44952555)
No it doesn't, which is one key reason why I am a fan of `io_uring`. I brought `epoll` up because it does help with the blocking though, for most of the things that matter when it comes to async (at a cost to latency, of course).