Non Aligned Reads #936
Answered
by
axboe
Hemanth-Eduru
asked this question in
Q&A
Non Aligned Reads
#936
-
Hi I am new to use of liburing I have the following doubts
|
Beta Was this translation helpful? Give feedback.
Answered by
axboe
Aug 28, 2023
Replies: 1 comment 3 replies
-
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. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Hemanth-Eduru
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.