Skip to content

feat(snapshots): enable direct io for snapshot and archive creation#12015

Draft
kskalski wants to merge 4 commits intoanza-xyz:masterfrom
kskalski:ks/snap_config
Draft

feat(snapshots): enable direct io for snapshot and archive creation#12015
kskalski wants to merge 4 commits intoanza-xyz:masterfrom
kskalski:ks/snap_config

Conversation

@kskalski
Copy link
Copy Markdown

@kskalski kskalski commented Apr 17, 2026

Builds on top of #12014

Problem

Summary of Changes

Fixes #

`large_file_buf_writer` previously created its own `IoSetupState::default()`
internally, making it impossible for callers to influence I/O configuration.
Expose the parameter so callers can pass their own setup. All existing
callers pass `&IoSetupState::default()` to preserve current behavior.
Move `use_registered_io_uring_buffers` and `snapshots_use_direct_io` from
`AccountsDbConfig` into `SnapshotConfig` (renamed to `use_direct_io`), where
they semantically belong. Thread `&SnapshotConfig` through
`verify_and_unarchive_snapshots`, `bank_from_snapshot_archives`, and
`bank_from_latest_snapshot_archives` so the unarchive path can construct
`IoSetupState` from snapshot config flags. Archive writer uses default
`IoSetupState` for now.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.89170% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.2%. Comparing base (85c24be) to head (f2c27ae).
⚠️ Report is 20 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12015   +/-   ##
=======================================
  Coverage    83.2%    83.2%           
=======================================
  Files         859      859           
  Lines      321697   321698    +1     
=======================================
+ Hits       267851   267887   +36     
+ Misses      53846    53811   -35     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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