Skip to content

Bump batch size from uint8_t to uint16_t#797

Merged
zakird merged 1 commit intozmap:mainfrom
droe:droe/batchsize-u16
Feb 28, 2024
Merged

Bump batch size from uint8_t to uint16_t#797
zakird merged 1 commit intozmap:mainfrom
droe:droe/batchsize-u16

Conversation

@droe
Copy link
Contributor

@droe droe commented Feb 28, 2024

I'd like to suggest to promote batch size to a uint16_t. I am testing on 10GbE hardware on which batch size somewhere above 256 is currently a sweet spot (with netmap); the current uint8_t limits me to 255. While there might be other perf improvements with bigger impact than what I see from batch size tuning, I see no real downside in allowing for a larger range of batch sizes.

Tested on macOS Sonoma and FreeBSD 14.0.

Copy link
Member

@zakird zakird left a comment

Choose a reason for hiding this comment

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

Sounds good. I think this was pretty arbitrary on our part originally.

@zakird zakird merged commit 586fc8b into zmap:main Feb 28, 2024
@droe droe deleted the droe/batchsize-u16 branch March 11, 2024 08:01
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