Cloudflare

io_submit: The epoll alternative you've never heard about

Jan 4, 2019Marek Majkowski
io_submit: The epoll alternative you've never heard about
SummaryAI, from the source post

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.

More from the Data Infrastructure & Analytics trail