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

eliminate read-on-write problem with write buffer padding #329

Open
tabokie opened this issue Aug 30, 2023 · 0 comments
Open

eliminate read-on-write problem with write buffer padding #329

tabokie opened this issue Aug 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@tabokie
Copy link
Member

tabokie commented Aug 30, 2023

read-on-write problem refers to when an unaligned write I/O is issued, an additional read is needed to prefetch the data into page cache. In practice we have only observed this phenomenon when log recycling is enabled.

The situation can be improved by:

  • Support Direct I/O #168
  • When write offset is 4K aligned, zero-pad the write buffer into multiple of 4K. This way we can always initialize the page cache without reading.
@tabokie tabokie added the enhancement New feature or request label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant