Skip to content

Commit e309941

Browse files
committed
event/Loop: initialize io_uring with IORING_SETUP_SINGLE_ISSUER
This might give tiny kernel-side optimizations.
1 parent ea2ced6 commit e309941

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/event/Loop.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ EventLoop::GetUring() noexcept
6161
if (!uring_initialized) {
6262
uring_initialized = true;
6363
try {
64-
uring = std::make_unique<Uring::Manager>(*this);
64+
uring = std::make_unique<Uring::Manager>(*this, 1024,
65+
IORING_SETUP_SINGLE_ISSUER);
6566
} catch (...) {
6667
fprintf(stderr, "Failed to initialize io_uring: ");
6768
PrintException(std::current_exception());

0 commit comments

Comments
 (0)