mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #201] [MERGED] refactor(overlaybd): decouple LocalFile from io_uring #249
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/201
Author: @huang-jl
Created: 8/21/2026
Status: ✅ Merged
Merged: 8/24/2026
Merged by: @yingdi-shan
Base:
main← Head:hjl/overlaybd-portable-local-io📝 Commits (3)
df52096refactor(overlaybd): decouple local files from io_uringd779becrefactor(overlaybd): gate io_uring fast path06e1689fix(overlaybd): offload unbounded-latency LocalFile syscalls📊 Changes
41 files changed (+671 additions, -957 deletions)
View changed files
📝
Cargo.lock(+0 -1)📝
crates/e2e-tests/tests/snapshot_oss_e2e_test.rs(+3 -5)📝
src/sandbox/firecracker/overlaybd_snapshot.rs(+1 -4)📝
src/sandbox/ublk/overlaybd.rs(+9 -27)📝
src/snapshot/p2p.rs(+3 -12)📝
src/snapshot/repository/backends/common/acr/source_image.rs(+1 -6)📝
src/snapshot/repository/backends/common/mod.rs(+6 -11)📝
src/snapshot/repository/backends/posixfs/artifacts.rs(+5 -20)📝
storage/overlaybd/Cargo.toml(+1 -1)📝
storage/overlaybd/src/backend/cache/cached_fs.rs(+10 -8)📝
storage/overlaybd/src/backend/cache/full_file_cache/cache_store.rs(+16 -6)📝
storage/overlaybd/src/backend/cache/tests.rs(+10 -31)📝
storage/overlaybd/src/backend/local.rs(+351 -188)📝
storage/overlaybd/src/backend/registryfs_v2.rs(+2 -6)📝
storage/overlaybd/src/backend/switch.rs(+18 -24)📝
storage/overlaybd/src/backend/tar.rs(+7 -1)📝
storage/overlaybd/src/compression/zfile.rs(+11 -13)📝
storage/overlaybd/src/config.rs(+2 -3)📝
storage/overlaybd/src/dense_export.rs(+3 -15)📝
storage/overlaybd/src/ext4_stat.rs(+1 -2)...and 21 more files
📄 Description
What
Make OverlayBD
LocalFileusable on Unix platforms without requiring Linux io_uring, while preserving the existing io_uring fast path for ublk consumers.Why
Allow other platform (e.g., macOS) to use overlaybd crate.
Design and behavior changes
IoRingHandlefromLocalFileconstructors.VirtualFileoperations.storage-utilandoverlaybd.io-uringfeature foruvm-ublkanduvm-ublk-daemon.Compatibility and operations
nr_io_ringsconfiguration is useless.Validation
make fmtmake clippymake test-unitmake -C services test(required whenservices/changes)maketargetCompared:
836711761f20612c9d322f0cdcb7412314426e2bThe full
ublk_overlaybdCriterion benchmark was run on the same NVMe host, pinned to one CPU, with 50 samples across log, hybrid, and sparse upper modes.No performance regression was detected:
-0.75%to+1.13%.1.5%–2.0%.2.2%–3.2%.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.