A thread-per-core async runtime for Rust and Linux, built on io_uring
open sourceApache-2.0 OR MITself-hostablefree
glommio is a cooperative thread-per-core async runtime for Rust on Linux, built on io_uring and made by Datadog. Each executor runs on its own thread, usually pinned to one CPU, and unlike other async runtimes it uses no helper threads anywhere: storage and network I/O go through io_uring, and work is shared between cores by message passing rather than work stealing. It suits shard-per-core designs such as databases, proxies and storage engines that want predictable latency. It needs Linux 5.8 or newer and at least 512 KiB of locked memory per executor, and it's dual-licensed under Apache-2.0 or MIT.
Problems it solves
- a thread-per-core async runtime for a Rust database or storage engine with predictable latency
- do async file and network I/O in Rust through io_uring
- run one executor pinned per CPU core with no work stealing or helper threads in my Rust service
- a shard-per-core architecture in Rust like Seastar does in C++
- avoid cross-thread synchronization overhead in a high-throughput Rust server
Features
- cooperative thread-per-core executors
- no helper threads: I/O goes through io_uring
- async file and network I/O
- built on Rust async/await, like other Rust async runtimes
Limitations
- Doesn't run on macOS or Windows: glommio is Linux only and needs kernel 5.8 or newer for io_uring1
Alternatives
The same job
These do what glommio does.
