mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #3487] perf(store): batch io_uring reads in BucketStorageBackend #893
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#893
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?
Originally created by @982945902 on GitHub (Aug 17, 2026).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/3487
Problem
BucketStorageBackend::BatchLoad()groups requested objects by bucket, but the io_uring path then callsread_aligned()once per key. Each call submits its SQEs and immediately waits for completion before the next key is processed.This keeps cross-key queue depth at one even though
UringFile::batch_read()already exists for submitting up to 32 independent reads together. The existing batch API only returns aggregate bytes, so it cannot safely identify per-key CQE failures or short reads.Proposed behavior
UringFile::batch_read().completed,bytes_read, anderrorper descriptor.BatchLoad()API; only device-side execution becomes batched.SSD benchmark
Development-machine SSD, ext4, O_DIRECT, registered buffers, one thread, queue depth 32. Sequential and batch modes use the same file, buffers, random offsets, and alternate execution order.
The benchmark is intended for relative comparison on the same machine; absolute throughput depends on the SSD/controller/filesystem.
Validation needed
@github-actions[bot] commented on GitHub (Aug 17, 2026):
Thanks for opening this issue, @982945902!
49055103A maintainer will triage this when possible. To help us respond faster, please include:
Useful links: Documentation · Contributing guide