event/Loop: initialize io_uring with IORING_SETUP_SINGLE_ISSUER
This might give tiny kernel-side optimizations.
This commit is contained in:
parent
ea2ced6b9f
commit
e309941646
@ -61,7 +61,8 @@ EventLoop::GetUring() noexcept
|
||||
if (!uring_initialized) {
|
||||
uring_initialized = true;
|
||||
try {
|
||||
uring = std::make_unique<Uring::Manager>(*this);
|
||||
uring = std::make_unique<Uring::Manager>(*this, 1024,
|
||||
IORING_SETUP_SINGLE_ISSUER);
|
||||
} catch (...) {
|
||||
fprintf(stderr, "Failed to initialize io_uring: ");
|
||||
PrintException(std::current_exception());
|
||||
|
Loading…
x
Reference in New Issue
Block a user