Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(driver,iour): allow to specify cqsize#834

Merged
Berrysoft merged 1 commit into
compio-rs:masterfrom
Berrysoft:dev/cqsize
Apr 3, 2026
Merged

feat(driver,iour): allow to specify cqsize#834
Berrysoft merged 1 commit into
compio-rs:masterfrom
Berrysoft:dev/cqsize

Conversation

@Berrysoft
Copy link
Copy Markdown
Member

Closes #783

Also force dontfork because we always don't share resources across forks in Rust. All other resources are created with CLOEXEC.

@Berrysoft Berrysoft requested a review from Copilot April 3, 2026 16:12
@Berrysoft Berrysoft self-assigned this Apr 3, 2026
@Berrysoft Berrysoft added the driver: io-uring About the io-uring driver label Apr 3, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds configurability for the io_uring completion queue size via ProactorBuilder, and updates io_uring initialization to apply the configured CQ size and force the NOFORK (dontfork) setup flag.

Changes:

  • Add cqsize: Option<u32> to ProactorBuilder plus a cqsize() setter.
  • Apply setup_cqsize() during io_uring driver initialization when configured.
  • Always set dontfork() on the io_uring builder.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
compio-driver/src/lib.rs Extends ProactorBuilder with a CQ size option and exposes it via a public builder method.
compio-driver/src/sys/iour/mod.rs Wires the new builder option into io_uring setup and enforces dontfork() during ring creation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread compio-driver/src/lib.rs
Comment thread compio-driver/src/lib.rs
Comment thread compio-driver/src/lib.rs
Comment thread compio-driver/src/sys/iour/mod.rs
Comment thread compio-driver/src/sys/iour/mod.rs
Comment thread compio-driver/src/lib.rs
@Berrysoft Berrysoft requested a review from George-Miao April 3, 2026 16:23
Copy link
Copy Markdown
Member

@George-Miao George-Miao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Berrysoft Berrysoft added this pull request to the merge queue Apr 3, 2026
Merged via the queue into compio-rs:master with commit 7bd4209 Apr 3, 2026
70 checks passed
@Berrysoft Berrysoft deleted the dev/cqsize branch April 3, 2026 17:38
@github-actions github-actions Bot mentioned this pull request Apr 3, 2026
This was referenced Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

driver: io-uring About the io-uring driver

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: Specify SQ and CQ size separately

3 participants