Skip to content

Commit

Permalink
event/Loop: initialize io_uring with IORING_SETUP_SINGLE_ISSUER
Browse files Browse the repository at this point in the history
This might give tiny kernel-side optimizations.
  • Loading branch information
MaxKellermann committed Jan 30, 2025
1 parent e55b281 commit 7c459a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/event/Loop.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 7c459a2

Please sign in to comment.