select vs poll vs epoll vs io_uring — cost per request from 100 to 100,000 connections

local processing
A counting model of I/O multiplexing: system calls, descriptors scanned in the kernel and in user space, bytes copied, context switches and thread stacks per ready request. See why select stops at FD_SETSIZE 1024, why poll scans everything, why epoll scales with ready connections, and what io_uring batching and SQPOLL change. Computed in your browser.