# How epoll and kqueue Taught Operating Systems to Stop Asking and Start Notifying

Original title: Epoll and Kqueue: How Operating Systems Learned to Wait Efficiently

> Hacker News story 49778467 · language: en · submitted 2026-09-20
> Web version: https://zeli.app/story/49778467
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 13 · by [adletbalzhanov](<https://news.ycombinator.com/user?id=adletbalzhanov>) · 💬 2
[original](<https://thecodinggopher.substack.com/p/epoll-and-kqueue-how-operating-systems>) · [HN discussion](<https://news.ycombinator.com/item?id=49778467>)

## Summary

Every high-performance server hits the same wall: waiting for I/O. Early systems used select and poll, which scanned every file descriptor on each call, so cost grew with connection count. epoll on Linux and kqueue on BSD flipped the model: register interest once, and the kernel notifies you only when something changes. Waiting becomes proportional to activity, not capacity. This shift made tens of thousands of concurrent connections practical and underpins runtimes like Go's network scheduler.

## Key quote

> The real issue wasn’t that waiting was slow—it was that checking was expensive.

---

## Cite

- Page: https://zeli.app/story/49778467
- Date: 2026-09-20
- Source: thecodinggopher.substack.com (https://thecodinggopher.substack.com/p/epoll-and-kqueue-how-operating-systems)
- Hacker News: https://news.ycombinator.com/item?id=49778467

## Other languages

- zh: https://zeli.app/zh/story/49778467 · markdown: https://zeli.app/zh/story/49778467.md
- ja: https://zeli.app/ja/story/49778467 · markdown: https://zeli.app/ja/story/49778467.md
- ko: https://zeli.app/ko/story/49778467 · markdown: https://zeli.app/ko/story/49778467.md
- de: https://zeli.app/de/story/49778467 · markdown: https://zeli.app/de/story/49778467.md
- es: https://zeli.app/es/story/49778467 · markdown: https://zeli.app/es/story/49778467.md
- ru: https://zeli.app/ru/story/49778467 · markdown: https://zeli.app/ru/story/49778467.md
