Repository navigation
perf(io): tune native S3 reads with per-operation AIMD settings - #11364
Merged
Merged
Conversation
BubbleCal
marked this pull request as ready for review
November 23, 2026 03:22
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Xuanwo
approved these changes
Nov 23, 2026
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.
Changes
Configure read, write, delete, and list AIMD controllers independently. Each field takes the category storage option, category environment variable, generic storage option, generic environment variable, then the provider default, in that order. The generic burst and retry settings still apply to every category.
Raise the read ceiling to 11,000 requests/s for general-purpose S3 buckets using the built-in Amazon S3 client and default AWS endpoint. The read controller starts at 2,000 requests/s and increases by 300 requests/s per success window. The write, delete, and list controllers use a 10,000 requests/s ceiling. The higher read ceiling follows the published S3 capacity guidance. AWS announcement
Recognize a bodyless HTTP 503 even when the underlying object_store client has no retries. A live S3 503 escaped the baseline AIMD wrapper during the sweep. The regression test verifies that the wrapper retries a bodyless S3 HEAD failure.
Historical AWS measurements
Same-region general-purpose S3 from an x86_64 c8i.8xlarge in us-east-1. The baseline was
f9fd19edand the measured feature build was6914cbe6, both using Rust 1.98.1, release-no-lto, and the native Amazon S3 provider. The figures describe those two builds. CI is validating the updated head4f70dbdf, whose base includes the upstreamurl2.5.9 fix. The fixed synthetic fixture used 128 objects of 4 MiB each. The AIMD comparison used 4 KiB range reads, 1,024 in-flight operations per process, and 55-second runs from cold client processes. Single-process values use two runs per build in alternating order. The two-process comparison ran one pair per build.f9fd19ed6914cbe6The open-loop GET and HEAD ramps reached 29.9–30.0k successful requests/s for both grouped and 24-bit distributed layouts, with zero HTTP 503 responses. The hottest single-object trial reached 46.6k successful requests/s during its top step. The baseline 14k sweep saw two isolated HTTP 503 responses. The measured feature build's separate hot-object stress trial saw two HTTP 503 responses and zero escaped throttle errors. That stress trial also saw one independent HTTP 500.
Sophon impact
The AIMD budget is per process and per bucket/store configuration. Separate PEs can send overlapping traffic to one S3 prefix. The dual-process trial measured that composition on one host. Tiered cache hits serve from the cache, and origin reads can use the new ceiling. Job Framework's generic retry settings keep their existing meaning.
Keep the 64-slot I/O default. The 8-scheduler, 1 MiB random-read case delivered 1,636 MiB/s at 64 slots and 1,305 MiB/s at 128 slots. Peak process RSS was 850 MiB and 1,555 MiB, respectively. Values are medians of three runs. This exercises the Lance scheduler and serves as a PE concurrency model. Sophon's fallback buffer budget and fragment readahead grow with the I/O slot count.
Validation
Added coverage for config precedence, provider defaults, and the S3 HEAD retry regression. Local formatting and diff checks passed. Rust correctness checks run in GitHub CI. The branch now includes the upstream fix for RUSTSEC-2026-0592. Checks on
4f70dbdfare pending. Dependency fix