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

Use STATX_DIOALIGN to get direct I/O alignment #161

Open
nirs opened this issue Nov 2, 2022 · 0 comments
Open

Use STATX_DIOALIGN to get direct I/O alignment #161

nirs opened this issue Nov 2, 2022 · 0 comments
Labels
enhancement Enhancing the system by adding new feature or improving performance or reliability help wanted

Comments

@nirs
Copy link
Member

nirs commented Nov 2, 2022

When using the file backend we use a pretty horrible probing mechanism to detect direct I/O
alignment size. Since Linux 6.1 we have official way to get the right value from the
kernel that works with ext4, xfs, nvme, and dm-crypt.

See https://lists.nongnu.org/archive/html/qemu-block/2022-11/msg00050.html

Tasks:

  • Try to use statx to get the alignment
  • If not available fallback to probing
@nirs nirs added the enhancement Enhancing the system by adding new feature or improving performance or reliability label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancing the system by adding new feature or improving performance or reliability help wanted
Projects
None yet
Development

No branches or pull requests

1 participant