Re:Comparison of Rust async and Linux thread context switch ...
by jorangreef on Friday February 12, 2021 @04:32AM
(#26111944)
> io_uring’s slow path is making one blocking syscall every time you would ordinarily make a blocking syscall.
That's not correct, io_uring was "absolutely" designed, at least in the technical sense, for zero syscalls in the slow path (if you want to):
IORING_SETUP_SQPOLL
When this flag is specified, a kernel thread is created to perform submission queue polling.
An io_uring instance configured in this way enables an application to issue I/O without ever
context switching into the kernel. By using the submission queue to fill in new submission
queue entries and watching for completions on the completion queue, the application can submit
and reap I/Os without doing a single system call.
That's not correct, io_uring was "absolutely" designed, at least in the technical sense, for zero syscalls in the slow path (if you want to):
From the man page: https://manpages.debian.org/unstable/liburing-dev/io_uring_s...This mode required privileges in early kernel versions but that's already changed. Things are moving fast.