Skip to content

standalone: ability to set viona rx/tx queue sizes#1162

Merged
rzezeski merged 1 commit into
masterfrom
rpz/viona-qsz
Jul 22, 2026
Merged

standalone: ability to set viona rx/tx queue sizes#1162
rzezeski merged 1 commit into
masterfrom
rpz/viona-qsz

Conversation

@rzezeski

Copy link
Copy Markdown
Contributor

While running local network performance benchmarks I find it useful to be able to change queues sizes.

@FelixMcFelix FelixMcFelix left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks Ryan, some minor questions around value validity.

Comment thread bin/propolis-standalone/src/main.rs Outdated
dev.options.get("vnic").unwrap().as_str().unwrap();
let rxqsz = match dev.options.get("rx-queue-size") {
Some(toml::Value::Integer(v)) => {
hw::virtio::VqSize::new(*v as u16)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The disposition inside VqSize::new is already to panic if we're not power-of-two aligned. In that light can we have u16::try_from(*v).unwrap() here? That feels better than doing a silent truncation of the most-significant bits.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Comment thread bin/propolis-standalone/src/main.rs Outdated
};
let txqsz = match dev.options.get("tx-queue-size") {
Some(toml::Value::Integer(v)) => {
hw::virtio::VqSize::new(*v as u16)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ditto here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@FelixMcFelix FelixMcFelix left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@rzezeski
rzezeski merged commit 372a574 into master Jul 22, 2026
14 checks passed
@rzezeski
rzezeski deleted the rpz/viona-qsz branch July 22, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants