-
Notifications
You must be signed in to change notification settings - Fork 456
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 IoBufferMut for delta/image layers + pagecache #9169
Closed
yliang412
wants to merge
29
commits into
yuchen/direct-io-aligned-alloc
from
yuchen/direct-io-aligned-alloc-usage-wip
Closed
use IoBufferMut for delta/image layers + pagecache #9169
yliang412
wants to merge
29
commits into
yuchen/direct-io-aligned-alloc
from
yuchen/direct-io-aligned-alloc-usage-wip
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Co-authored-by: Christian Schwarz <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
5013 tests run: 4854 passed, 1 failed, 158 skipped (full report)Failures on Postgres 17
Flaky tests (8)Postgres 16
Postgres 15
Postgres 14
Test coverage report is not availableThe comment gets automatically updated with the latest test results
e565c4f at 2024-10-07T17:59:38.988Z :recycle: |
yliang412
changed the title
use IoBufferMut for delta and image layers
use IoBufferMut for delta/image layers + pagecache
Sep 27, 2024
yliang412
force-pushed
the
yuchen/direct-io-aligned-alloc-usage-wip
branch
from
September 29, 2024 20:55
5839b46
to
fa21578
Compare
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
yliang412
force-pushed
the
yuchen/direct-io-aligned-alloc-usage-wip
branch
from
September 29, 2024 21:00
382fa0f
to
e98a4eb
Compare
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
yliang412
force-pushed
the
yuchen/direct-io-aligned-alloc-usage-wip
branch
from
October 1, 2024 03:58
da57cc4
to
f48ab8b
Compare
5 tasks
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
Signed-off-by: Yuchen Liang <[email protected]>
…ligned-alloc-usage-wip
yliang412
force-pushed
the
yuchen/direct-io-aligned-alloc
branch
3 times, most recently
from
October 7, 2024 20:00
8bde188
to
3ee9877
Compare
yliang412
added a commit
that referenced
this pull request
Oct 9, 2024
## Problem We need a way to incrementally switch to direct IO. During the rollout we might want to switch to O_DIRECT on image and delta layer read path first before others. ## Summary of changes - Revisited and simplified direct io config in `PageserverConf`. - We could add a fallback mode for open, but for read there isn't a reasonable alternative (without creating another buffered virtual file). - Added a wrapper around `VirtualFile`, current implementation become `VirtualFileInner` - Use `open_v2`, `create_v2`, `open_with_options_v2` when we want to use the IO mode specified in PS config. - Once we onboard all IO through VirtualFile using this new API, we will delete the old code path. - Make io mode live configurable for benchmarking. - Only guaranteed for files opened after the config change, so do it before the experiment. As an example, we are using `open_v2` with `virtual_file::IoMode::Direct` in #9169 We also remove `io_buffer_alignment` config in a04cfd7 and use it as a compile time constant. This way we don't have to carry the alignment around or make frequent call to retrieve this information from the static variable. Signed-off-by: Yuchen Liang <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Summary of changes
Checklist before requesting a review
Checklist before merging