Data Infrastructure & Analytics
io_submit: The epoll alternative you've never heard about

io_submit: The epoll alternative you've never heard about

1/4/2019 · Marek Majkowski

What this post added

This post introduces the Linux AIO API as a potential alternative to epoll for network servers, focusing on its ability to batch syscalls like read and write. It explains how Linux AIO, traditionally for disk I/O, can be used with network sockets to reduce context switching overhead and improve performance, especially in high-traffic scenarios. The post also details how to bypass the `io_getevents` syscall by directly interacting with the kernel's ring buffer for completion events, further optimizing performance.

Read the original post ↗