-
Notifications
You must be signed in to change notification settings - Fork 455
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
integrate tokio-epoll-uring as alternative VirtualFile IO engine #5824
Merged
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
2367 tests run: 2270 passed, 0 failed, 97 skipped (full report)Flaky tests (2)Postgres 16
Postgres 15
Code coverage (full report)
The comment gets automatically updated with the latest test results
7c92164 at 2024-01-25T14:43:45.850Z :recycle: |
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
November 8, 2023 14:55
6b5992d
to
0003744
Compare
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
November 20, 2023 11:36
c1b1da2
to
6c359a4
Compare
problame
added a commit
that referenced
this pull request
Nov 29, 2023
Squashed commit of the following: commit 5ec61ce Author: Christian Schwarz <[email protected]> Date: Wed Nov 29 16:17:12 2023 +0000 bump commit 34c33d1 Author: Christian Schwarz <[email protected]> Date: Mon Nov 20 14:38:29 2023 +0000 bump commit 8fa6b76 Author: Christian Schwarz <[email protected]> Date: Mon Nov 20 11:47:19 2023 +0000 bump commit 6c359a4 Author: Christian Schwarz <[email protected]> Date: Mon Nov 20 11:33:58 2023 +0000 use neondatabase/tokio-epoll-uring#25 commit 7d484b0 Author: Christian Schwarz <[email protected]> Date: Tue Aug 29 19:13:38 2023 +0000 use WIP tokio_epoll_uring open_at for async VirtualFile::open This makes Delta/Image ::load fns fully tokio-epoll-uring commit 51b26b1 Author: Christian Schwarz <[email protected]> Date: Tue Aug 29 12:24:30 2023 +0000 use `tokio_epoll_uring` for read path commit a4e6f0c Author: Christian Schwarz <[email protected]> Date: Wed Nov 8 12:36:34 2023 +0000 Revert "revert recent VirtualFile asyncification changes (#5291)" This reverts commit ab1f37e. fixes #5479
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
December 1, 2023 13:47
5ec61ce
to
f51a08e
Compare
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
December 11, 2023 16:26
f51a08e
to
0ca94f5
Compare
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
January 12, 2024 11:20
256b417
to
b388180
Compare
problame
changed the title
WIP: integrate tokio-epoll-uring
integrate tokio-epoll-uring
Jan 12, 2024
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
January 12, 2024 11:30
b388180
to
ccd2de9
Compare
problame
changed the title
integrate tokio-epoll-uring
integrate tokio-epoll-uring as alternative VirtualFile IO engine
Jan 12, 2024
problame
commented
Jan 12, 2024
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
January 12, 2024 17:06
ccd2de9
to
ccf8ffd
Compare
bayandin
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
January 15, 2024 19:03
0d1bd27
to
f90c159
Compare
bayandin
added
the
run-benchmarks
Indicates to the CI that benchmarks should be run for PR marked with this label
label
Jan 15, 2024
bayandin
approved these changes
Jan 15, 2024
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
January 17, 2024 12:41
75ebc39
to
e99a3a1
Compare
arpad-m
reviewed
Jan 17, 2024
problame
added a commit
that referenced
this pull request
Jan 17, 2024
arpad-m
approved these changes
Jan 17, 2024
VladLazar
reviewed
Jan 17, 2024
problame
added a commit
that referenced
this pull request
Jan 17, 2024
jcsp
reviewed
Jan 18, 2024
jcsp
approved these changes
Jan 18, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with this: only doubt is whether any of the VirtualFile changes might introduce subtle perf regressions, but that's what our shiny new benchmarks are for.
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
January 19, 2024 11:16
aac2a83
to
423b4e1
Compare
Edit: moved to #6373 (comment) |
Edit: moved to #6373 (comment) |
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
January 23, 2024 18:29
298b3e6
to
cb6a8df
Compare
This is prep work for integrating support for runtime-configurable io engines (=> tokio-epoll-uring).
Apart from sticking closer to the comment above the function, this reduces the diff in the next patch.
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
January 24, 2024 16:37
cb6a8df
to
2cf5a4c
Compare
problame
added a commit
that referenced
this pull request
Jan 24, 2024
…exercise it Test `test_eof_before_buffer_full` fails, as discussed in #5824 (comment)
Code is unused though, next commit hooks it up to the CI
- control via env var PAGESERVER_VIRTUAL_FILE_IO_ENGINE - if an io engine other than std-fs is used, it shows up in the test name; this is so that we can continue to use the flaky tests database - raise memlock limit & while at it also raise shmem limit for the Rust tests. It's need on our older runners that use an older 5.10.X LTS kernel, where io_uring SQ and CQ still counted towards the rlimit, see #6373 (comment) for details. Co-authored-by: Alexander Bayandin <[email protected]>
Running both combinations bloats CI times too much. So, we switch to tokio-epoll-uring for 2-3 days, so that the code gets exposure. Then we switch it back a few days before the next release so that the `std-fs` engine gets coverage, because that's what we're going to continue using in prod for the time being.
problame
force-pushed
the
problame/integrate-tokio-epoll-uring/wip
branch
from
January 25, 2024 13:19
a8c9912
to
7c92164
Compare
problame
added a commit
that referenced
this pull request
Jan 26, 2024
PR #5824 introduced the concept of io engines in pageserver and implement `tokio-epoll-uring` in addition to our current method, `std-fs`. We used `tokio-epoll-uring` in CI for a few days to get more exposure to the code. Now it's time to switch CI back so that we test with `std-fs` as well, because that's what we're (still) using in production.
problame
added a commit
that referenced
this pull request
Jan 26, 2024
…#6492) PR #5824 introduced the concept of io engines in pageserver and implemented `tokio-epoll-uring` in addition to our current method, `std-fs`. We used `tokio-epoll-uring` in CI for a day to get more exposure to the code. Now it's time to switch CI back so that we test with `std-fs` as well, because that's what we're (still) using in production.
problame
added a commit
that referenced
this pull request
Feb 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
run-benchmarks
Indicates to the CI that benchmarks should be run for PR marked with this label
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.
(part of #4744 )
This PR integrates
tokio-epoll-uring
as an alternative IO engine for Pageserver'sVirtualFile
open
andread
operations.The IO engine is configurable via pageserver config, and for Rust unit tests, via an env var.
The goal of integrating early is to uncover unknown problems with
tokio-epoll-uring
earlyby exposing the code to staging & CI tests for a few days. Ideally we'd run all the CI tests for both IO engines, but, that would require twice the CI resources.
On older kernel versions, io_uring SQ and CQ is accounted as locked memory.
This PR raises the memlock ulimit wherever we execute our Rust code in CI.
See #6373 for details on memlock.
The PR that will raise memlock ulimit for staging and prod is neondatabase/aws#932;