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

refactor(ephemeral_file): bring back pre-warming of PS page cache on write #7511

Conversation

problame
Copy link
Contributor

Parent PR #7484 is showing a performance regression in test_bulk_ingest.py.

I tracked it down to the removal of PS page cache pre-warming: the InMemoryLayer=>L0 writing path seems to benefit from PS page cache for its reads.

So, this PR adds back the pre-warming.
We don't funnel through RequestContext down to the VirtualFile level yet, so, I use a static request context.

See https://neondb.slack.com/archives/C033RQ5SPDH/p1713890189520339?thread_ts=1713433920.576379&cid=C033RQ5SPDH for more details on the perf investigation.

…or-ephemeral-file-reuse-buffered-io' into problame/larger-buffers-io/refactor-ephemeral-file-reuse-buffered-io--with-write-path-prewarming
…e-buffered-io' into problame/larger-buffers-io/refactor-ephemeral-file-reuse-buffered-io--with-write-path-prewarming
Copy link

github-actions bot commented Apr 25, 2024

2766 tests run: 2646 passed, 0 failed, 120 skipped (full report)


Flaky tests (1)

Postgres 16

  • test_empty_branch_remote_storage_upload: release

Code coverage* (full report)

  • functions: 28.3% (6542 of 23105 functions)
  • lines: 47.0% (46186 of 98203 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
d928ad6 at 2024-04-25T14:33:25.921Z :recycle:

Copy link
Contributor

@VladLazar VladLazar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct. More of a meta point, but I feel like these interfaces have grown too flexible and we're discovering that it's only safe to plug them in certain ways.

@problame problame merged commit 287d1bf into problame/larger-buffers-io/refactor-ephemeral-file-reuse-buffered-io Apr 25, 2024
42 of 43 checks passed
@problame problame deleted the problame/larger-buffers-io/refactor-ephemeral-file-reuse-buffered-io--with-write-path-prewarming branch April 25, 2024 14:12
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

Successfully merging this pull request may close these issues.

2 participants