by staticassertion · 4y ago · 0 comments
Up to 1.6x faster than epoll: https://twitter.com/axboe/status/1362271500489793539
io_uring 11% faster for non-polled IO: https://twitter.com/axboe/status/1465358880502861829/photo/1
And it's not like io_uring is complete. With every kernel release the gap over epoll gets bigger.
https://github.com/axboe/liburing/issues/189
edit: I'm not sure why I'm unable to reply to the comment below but I don't think anyone is being unnecessarily combative. I linked it twice because it is relevant to both replies to my comment. There is useful information in that thread if you read it end to end. What it does demonstrate is io_uring isn't a clear cut improvement over a much simpler approach. That may change in the future as it is improved though.
io_uring should be faster by design but it currently doesn’t seem to be. Maybe disk io is a different story.
Most likely there is some tweak to batching and maybe SQE submission watermarks, but I haven't found the formula yet.
I was surprised to find the sqpoll thread spins instead of a fast timer. Seems like a contention problem on a single core system, which still exist in VMs, etc.
As for performance, I wouldn't judge based on a year ago, obviously a lot has changed since then - you can find numbers if you'd like, I saw the maintainer posting benchmarks only a few weeks ago.