All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Security
Security
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Comparing epoll and io_uring for Asynchronous I/O in Linux

By

Sibexico

17d ago· 5 min readenInsight

Summary

A technical article comparing epoll and io_uring as asynchronous I/O mechanisms in Linux. The author describes their journey building a reverse proxy server called TinyGate with students, starting with a simple worker-based model, then upgrading to epoll for significant performance gains, and finally rewriting with io_uring. The article provides an overview of both queueing systems, explaining their strengths and limitations for handling asynchronous I/O operations.

Source

Hacker NewsComparing epoll and io_uring for Asynchronous I/O in Linuxsibexi.co

Key quotes

· 4 pulled
But my students weren't as happy as I was - they wanted to build something genuinely useful, and they were really disappointed that our 'product' had strong architectural limits and couldn't outperform titans like nginx and haproxy.
So they literally forced me to research together how those tools work under the hood and how to handle asynchronous I/O to cut down on the heavy overhead…
It still lost to nginx/haproxy in benchmarks, but it had a dramatic performance boost compared to the first version.
But epoll isn't perfect either (as I'll explain below), and we eventually switched to io_uring, which led to a full rewrite of our project from scratch, again…
Snippet from the RSS feed
First, I want to tell you how exactly I got to this point and why I started researching different options for handling asynchronous I/O on Linux… Last year, my students and I built a reverse proxy server called TinyGate. It was super simple, worker-based,

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.