Skip to content

feat(transfer): pool passive NIXL windows for concurrent reads - #435

Draft
GatewayJ wants to merge 2 commits into
rustfs:mainfrom
GatewayJ:feat/passive-nixl-download-windows
Draft

GatewayJ wants to merge 2 commits into
rustfs:mainfrom
GatewayJ:feat/passive-nixl-download-windows

Conversation

@GatewayJ

@GatewayJ GatewayJ commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Background

Two reusable client registrations limited concurrent NIXL GET requests for 4, 8 and 16 MiB objects. The server submits the data transfers. The client only needs to register and protect the memory those requests expose. This work has no separate issue.

Changes

  • Allow four windows for full-object NIXL reads at 4, 8 and 16 MiB. Uploads, other NIXL reads and cuObject retain their two-window limit. A failed wider registration reuses or creates a two-window pool and suppresses further wider attempts at that size and above.
  • Let the SDK hold each NIXL window from request signing through receipt verification. An ordinary transport receives the existing ControlExecutor. Only the trusted adapter installed by the native executable receives the alias signing configuration. The SDK signs all three descriptor headers and sends a single request using the alias TLS configuration.
  • Reuse windows after a verified receipt or an authenticated conditional rejection before DMA. After cancellation, timeout or an ambiguous reply the SDK keeps the registration alive, and the CLI retains its share of the process registration budget.
  • Transfer regular files with positional reads and writes directly against idle windows. Streams and whole-object checksum verification use up to 256 KiB of scratch space per active NIXL window. A checksummed file download hashes and writes the same bytes in one pass.

Measurements

These hardware measurements used experimental patches on CLI 760c3101, SDK b8662452 and server d67bdb83. The final experimental client binary with registration fallback had SHA-256 d0d20d2e1810e2116d58f22e854374ff7278d905cec9f8c3e2d318f0077a836f. The current draft changes request signing, completion handling and access to idle memory. Its local validation covers correctness. Hardware throughput and P99 for this revision remain unmeasured.

Two clients ran native rc cp at a total concurrency of 32, with 20 seconds of warmup followed by 100 seconds of requests. The following warm-cache comparison held the server and passive SDK constant and changed the number of client read windows. Each size has one paired measurement.

GET object Two windows, GiB/s Four windows, GiB/s Change Two windows, P99 ms Four windows, P99 ms
4 MiB 2.544 2.769 +8.9% 857.1 852.4
8 MiB 2.946 3.169 +7.5% 875.4 874.9
16 MiB 3.223 3.407 +5.7% 905.3 907.7

A separate comparison included the server change and the passive SDK. Across eight valid 4 MiB GET pairs, median throughput moved from 2.533 to 2.705 GiB/s (paired gain 7.2%, 95% interval 5.8%–8.6%). Median P99 moved from 870.3 to 870.4 ms. In a cold-cache control with one pass per size, combined throughput decreased by 4.5%, 0.7%, and 5.2% for 4, 8, and 16 MiB. The final registration-fallback change was also checked against the preceding optimized client at C32. With one pair per size, final warm GET throughput was 2.817, 3.332, and 3.381 GiB/s, with P99 of 827.2, 863.3, and 925.1 ms.

Dependency and merge order

The native manifest and lockfile pin 58d188a5b42ea995901e8ec83c23cb9543e0739e from the canonical RustFS repository. Merge the SDK first, update the native pin to its final commit on upstream main, and rerun the native checks before merging this draft. Companion SDK draft

Reverting the CLI change restores its previous SDK pin and client registration policy.

Validation

  • Root workspace formatting, all-target Clippy with warnings denied, and cargo test --locked --workspace.
  • Native formatting, cargo test --locked --manifest-path nixl/Cargo.toml using real UCX over TCP loopback, and a serial run of all three additional native pool tests. Coverage includes signed control requests, conditional rejection, cancellation, timeout, four quarantined descriptors, and file/checksum handling across the scratch-buffer boundary.
  • cargo clippy --locked --manifest-path nixl/Cargo.toml --features cuobject --all-targets -- -D warnings and cargo test --locked --manifest-path nixl/Cargo.toml --workspace --features cuobject with the NVIDIA client SDK.
  • cargo package --locked -p rc-s3 --allow-dirty --no-verify produced the 28-file crate. Its normalized manifest contains no Git dependency or native SDK dependency. The root workspace manifest and lockfile are unchanged.

The root workspace passed 2,086 tests with two existing skips. The native suite passed 15 tests, and the three additional native pool tests all passed in the serial run. The cuObject-enabled workspace passed 15 tests, with seven environment-dependent tests skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant