Skip to content

Non Aligned Reads #936

Answered by axboe
Hemanth-Eduru asked this question in Q&A
Aug 28, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

This isn't related to io_uring, these are O_DIRECT restrictions. For O_DIRECT, you have to read in multiples of the sector size of the device. Depending on the kernel version, the buffer used must also be aligned to the sector size, or (in newer kernels), just aligned to the DMA restrictions of the device.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Hemanth-Eduru
Comment options

@axboe
Comment options

@Hemanth-Eduru
Comment options

Answer selected by Hemanth-Eduru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants