mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #49] [CLOSED] feat(ublk): add weight-based I/O scheduler for fair sandbox bandwidth sharing #140
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#140
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/49
Author: @rogeroger-yu
Created: 7/28/2026
Status: ❌ Closed
Base:
main← Head:feat/disk-io-weight-scheduler📝 Commits (2)
a39275dfeat(sandbox): add Firecracker disk I/O rate limiting (bandwidth + IOPS)f955e7bfeat(ublk): add weight-based I/O scheduler for fair sandbox bandwidth sharing📊 Changes
10 files changed (+493 additions, -1 deletions)
View changed files
📝
config/default.toml(+15 -0)📝
src/cfg.rs(+42 -0)📝
src/sandbox/firecracker/config.rs(+3 -0)📝
src/sandbox/firecracker/instance.rs(+20 -1)📝
src/sandbox/firecracker/sandbox.rs(+46 -0)📝
storage/ublk-daemon/src/main.rs(+37 -0)📝
storage/ublk-daemon/src/server.rs(+22 -0)📝
storage/ublk/src/impls/overlaybd_target.rs(+14 -0)➕
storage/ublk/src/io_weight_scheduler.rs(+293 -0)📝
storage/ublk/src/lib.rs(+1 -0)📄 Description
Summary
Closes #47
Changes
storage/ublk/src/io_weight_scheduler.rs: Core scheduler (global singleton, token bucket, async acquire)storage/ublk/src/lib.rs: Export new modulestorage/ublk/src/impls/overlaybd_target.rs: IntegrateIoWeightHandleinto I/O path viaArcSwapstorage/ublk-daemon/src/server.rs: Register devices on pool acquire/createstorage/ublk-daemon/src/main.rs: Initialize global scheduler from configconfig/default.toml: Add[machine.disk_weight_scheduler]sectionsrc/cfg.rs: AddDiskWeightSchedulerConfigstructTest plan
cargo build --release)cargo test -p uvm-ublk)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.