Skip to content

perf(io): tune native S3 reads with per-operation AIMD settings - #11364

Merged
BubbleCal merged 4 commits into
mainfrom
yang/s3-read-aimd
Nov 23, 2026
Merged

BubbleCal merged 4 commits into
mainfrom
yang/s3-read-aimd

Conversation

@BubbleCal

@BubbleCal BubbleCal commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

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 f9fd19ed and the measured feature build was 6914cbe6, 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 head 4f70dbdf, whose base includes the upstream url 2.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.

Scenario / metric Measured baseline f9fd19ed Measured feature build 6914cbe6 Observed ratio
Single process, first 30 s throughput (higher is better) 6,307 req/s 6,346 req/s 1.006x
Single process, final 15 s throughput (higher is better) 10,000 req/s 11,000 req/s 1.100x
Single process, final 15 s median per-second P99 (lower is better) 136.2 ms 125.0 ms 1.089x
Two processes, final 15 s throughput (higher is better) 20,001 req/s 22,001 req/s 1.100x

The 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 4f70dbdf are pending. Dependency fix

@github-actions github-actions Bot added A-encoding Encoding, IO, file reader/writer A-docs Documentation enhancement New feature or request labels Nov 22, 2026
@BubbleCal BubbleCal changed the title feat(io): configure AIMD rates by operation category perf(io): tune native S3 reads with per-operation AIMD settings Nov 22, 2026
@BubbleCal
BubbleCal marked this pull request as ready for review November 23, 2026 03:22

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

No merge-blocking issues found. Local tests cover configuration precedence, provider defaults, and bodyless S3 HEAD retries.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 23, 2026
@BubbleCal
BubbleCal merged commit 27b1735 into main Nov 23, 2026
46 of 52 checks passed
@BubbleCal
BubbleCal deleted the yang/s3-read-aimd branch November 23, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-docs Documentation A-encoding Encoding, IO, file reader/writer enhancement New feature or request K-approved Latest Gatekeeper recommendation permits acceptance. performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants