Content Deep Dive
io_submit: The epoll alternative you've never heard about
Blog post from Cloudflare
Post Details
Company
Date Published
Author
Marek Majkowski
Word Count
2,095
Language
English
Hacker News Points
8
Summary
The article discusses the use of Linux AIO API for network sockets, an addition that was merged in 4.18 kernel. It explains how to use the strengths of Linux AIO API to write better and faster network servers. The author also provides a simplified version of the struct iocb passed to io_submit and the completion notification retrieved from io_getevents. Furthermore, it illustrates the batching aspect of io_submit with examples and demonstrates how to use io_submit for polling as an alternative to epoll(). The author concludes by expressing excitement about the new developments that allow developing faster network servers using Linux AIO API.