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