logoalt Hacker News

dijityesterday at 6:26 PM3 repliesview on HN

yeah, but you have IO Completion Ports…

IO_Uring is still a pale imitation :(


Replies

asveikauyesterday at 6:29 PM

io_uring does more than IOCP. It's more like an asynchronous syscall interface that avoids the overhead of directly trapping into the kernel. This avoids some overheads IOCP cannot. I'm rusty on the details but the NT kernel has since introduced an imitation: https://learn.microsoft.com/en-us/windows/win32/api/ioringap...

loegyesterday at 6:32 PM

IOCP is great and was ahead of Linux for decades, but io_uring is also great. It's a different model, not a poor copy.

show 1 reply
senderistayesterday at 10:21 PM

If that were true then presumably Microsoft wouldn't have ported it to Windows:

https://learn.microsoft.com/en-us/windows/win32/api/ioringap...

Although Windows registered network I/O (RIO) came before io_uring and for all I know might have been an inspiration:

https://learn.microsoft.com/en-us/previous-versions/windows/...

show 1 reply