如何确认是否启用io_uring
目前我是这样:
```rust
// 检查当前运行时类型
let builder: RuntimeBuilder<IoUringDriver> = RuntimeBuilder::new();
let runtime = builder.with_entries(0).build();
match runtime {
Ok(runtime) => {
let runtime = runtime.into();
match runtime {
FusionRuntime::Uring(_) => println!("Monoio 使用 io_uring 运行时"),
FusionRuntime::Legacy(_) => println!("Monoio 使用 epoll 运行时"),
}
}
Err(e) => {
eprintln!("错误: 无法创建io_uring运行时: {}", e);
}
}
```
在我本机wsl2+ubuntu 22.04上显示"Monoio 使用 io_uring 运行时",但在aws+RockyLinux 9上则是“错误: 无法创建io_uring运行时: Operation not permitted (os error 1)”,这是有问题吗,请问如何解决
2 条评论