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

Question: Why does WAL not support directio? Is this intentionally designed that way? #12136

Closed
zgcbj opened this issue Dec 12, 2023 · 1 comment

Comments

@zgcbj
Copy link

zgcbj commented Dec 12, 2023

Why does WAL not support directio? Is this intentionally designed that way?

@ltamasi
Copy link
Contributor

ltamasi commented Dec 12, 2023

Direct I/O is not a good match for the WAL (or the MANIFEST for that matter) because of the requirements it places on both the in-memory and on-disk addresses. Since you can only write entire (4K-aligned) 4K-sized pages this way, using direct I/O would entail rewriting previous records potentially several times (depending on record size), leading to increased write amp for the WAL (as well as potential corruptions).

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

No branches or pull requests

2 participants