BlogsCloudflareLinux AIO for Network I/O

Linux AIO for Network I/O

Linux AIO for Network I/O

1
posts
2019

Cloudflare is exploring and implementing the Linux AIO API for network I/O operations, moving beyond its traditional use for disk I/O. This involves understanding and leveraging `io_submit` for syscall batching and optimizing event retrieval by directly accessing the kernel's ring buffer, bypassing the `io_getevents` syscall for improved performance in high-concurrency network servers.

2019

io_submit: The epoll alternative you've never heard about

1/4/2019

This post details the exploration of using the Linux AIO API (`io_submit`, `io_getevents`) for network socket I/O, demonstrating its potential for syscall batching to improve performance in high-concurrency network servers. It also introduces a method to bypass the `io_getevents` syscall by directly accessing the kernel's ring buffer for event retrieval, further optimizing performance.