Repository navigation
[Store] Add opt-in DFS adapter batching for 3FS - #4498
Merged
Merged
Conversation
Add batch positional I/O entry points to FileSystemAdapter and make backend batching opt-in through SupportsBatchIo, enabled by Hf3fsAdapter. The default adapter batch methods retain sequential I/O. Reuse bucket handles in groups of at most 64 open files and preserve bucket and shard short-transfer handling. Keep POSIX on per-request bucket handles and serialized shard I/O. Cover bucket handle reuse, bounded submissions, short transfers, and POSIX routing. Prepare 3FS integration fixtures through the shard allocator and exercise multi-object batches, 65 buckets, and concurrent shard access. Document the storage layout and execution mode choices in BatchWrite and BatchRead.
This was referenced Oct 8, 2026
fcczzz
approved these changes
Oct 8, 2026
fcczzz
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. The opt-in batching path preserves per-request error mapping and existing short-transfer semantics while retaining POSIX behavior. Bucket handle reuse is bounded, and shard initialization remains synchronized before concurrent I/O.
ykwd
approved these changes
Oct 9, 2026
8 of 36 tasks
7 of 32 tasks
14 of 20 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
DistributedStorageBackend::BatchWriteandBatchReaddispatch eachdescriptor as an individual adapter operation. This PR adds opt-in batch
positional I/O so filesystem adapters can receive multiple requests together.
FdIoRequest,BatchWriteAt,BatchReadAt, andSupportsBatchIo.Default batch implementations execute sequentially and return results
in request order.
Hf3fsAdapter.open per submission.
that opt in, while retaining synchronized shard initialization.
bucket transfers retry; shard transfers report failure.
This is the first implementation step of #4497. HF3FS initially uses the
sequential default batch methods; the second PR implements multiple
in-flight requests through USRBIO rings. The benchmark extension is
maintained separately, and the RFC’s performance results cover the
combined series.
Module
mooncake-store)Type of Change
How Has This Been Tested?
Validation for commit
438b7ee1:adapters, allocators, clients, configuration, master behavior, and
object-storage compatibility.
cluster mounted at
/mnt/3fs, with no skips.bounded submissions across 65 buckets, concurrent access to the same
shard, short transfers, and preservation of POSIX routing.
the dedicated checksum-enabled target.
Checklist
./scripts/code_format.shAI Assistance Disclosure
OpenAI Codex assisted with implementation, test development and validation,
and drafting this PR description. I reviewed the changes and take
responsibility for them.