Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dm vdo indexer: reorder uds_request to reduce padding #85

Merged

Conversation

lorelei-sakai
Copy link
Member

This merges a commit from vdo-devel/244. There is no ticket.

Reorder fields and make uds_request_type and uds_zone_message packed,
to squeeze out some space. Use struct_group so the request reset code
no longer needs to care about field order.

On x86_64 this reduces the struct size from 144 to 120, which saves 48
kB (about 12%) per VDO hash zone.

Signed-off-by: Ken Raeburn <[email protected]>
Signed-off-by: Matthew Sakai <[email protected]>
@lorelei-sakai lorelei-sakai merged commit 9dbebcd into dm-vdo:main Feb 20, 2025
2 checks passed
@lorelei-sakai lorelei-sakai deleted the feature/pack-uds-request-more branch February 20, 2025 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants