If you are interested in Glommio, consider joining our Zulip community. Tell us about exciting applications you are building, ask for help, or just chat with friends 😃
Glommio (pronounced glo-mee-jow or |glomjəʊ|) is a Cooperative Thread-per-Core crate for Rust & Linux based
on io_uring
. Like other rust asynchronous crates, it allows one to write asynchronous code that takes advantage of
rust async
/await
, but unlike its counterparts, it doesn't use helper threads anywhere.
Using Glommio is not hard if you are familiar with rust async. All you have to do is:
use glommio::prelude::*;
LocalExecutorBuilder::default().spawn(|| async move {
/// your async code here
})
.expect("failed to spawn local executor")
.join();
Please note Glommio requires at least 512 KiB of locked memory for io_uring
to work. You can increase the memlock
resource limit (rlimit) as follows:
$ vi /etc/security/limits.conf
* hard memlock 512
* soft memlock 512
To make the new limits effective, you need to log in to the machine again. You can verify that the limits are updated by running the following:
$ ulimit -l
512
Glommio also requires a kernel with a recent enough io_uring
support, at least current enough to run discovery probes.
The minimum version at this time is 5.8.
For more details check out our docs page and an introductory article.
See Contributing.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.