io_submit: The epoll alternative you've never heard about
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.
Company
Cloudflare
Date published
Jan. 4, 2019
Author(s)
Marek Majkowski
Word count
2095
Hacker News points
None found.
Language
English