Repository navigation
feat(transfer): support the NVIDIA cuObject RDMA client - #432
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aff72c2ea5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
🟡 Changes recommended
The ordered-download regression test discards downloaded bytes and lacks distinct range payloads, so its progress and byte-count assertions cannot detect swapped or duplicated data.
1 open issue
What changed in this PR
Extends the native RDMA transport introduced in #430 with NVIDIA cuObject support, while keeping S3 signing, fallback policy, multipart publication, and integrity checks shared with NIXL.
Changes:
- Adds backend selection through
--rdma-backendandRC_RDMA_BACKEND, with reserved provider headers. - Introduces cuObject SDK bindings, reusable registered windows, and concurrent range downloads with ordered output.
- Adds regression coverage, native SDK CI builds, and setup documentation.
| File | Description |
|---|---|
nixl/tests/interop.sh |
Supports either native backend and the shared bucket variable. |
nixl/src/wire/native_test.rs |
Adapts the native transfer test to window ownership APIs. |
nixl/src/wire.rs |
Makes receipt errors backend-neutral. |
nixl/src/transport/upload.rs |
Uses shared windows and caches upload capability discovery. |
nixl/src/transport/tests.rs |
Adds discovery, range concurrency, and registration lifetime tests. |
nixl/src/transport/download.rs |
Fetches adjacent ranges concurrently and publishes in order. |
nixl/src/transport.rs |
Adds backend factories and scoped capability discovery. |
nixl/src/pool.rs |
Manages bounded window sizes, reuse, and quarantine. |
nixl/src/nvidia.rs |
Adapts cuObject registrations and direction-specific tokens. |
nixl/src/main.rs |
Registers compiled RDMA backends. |
nixl/src/buffer.rs |
Abstracts NIXL and cuObject buffers. |
nixl/cuobject-client/tests/registration_budget.rs |
Tests accounting retention after failed deregistration. |
nixl/cuobject-client/tests/failed_deregistration.cc |
Provides an SDK deregistration failure fixture. |
nixl/cuobject-client/src/lib.rs |
Exposes Rust registration and token APIs. |
nixl/cuobject-client/Cargo.toml |
Defines the optional cuObject client crate. |
nixl/cuobject-client-sys/src/sdk.rs |
Declares the private C++ bridge. |
nixl/cuobject-client-sys/src/lib.rs |
Exports native handles and scopes the unsafe exception. |
nixl/cuobject-client-sys/native/cuobject.h |
Declares native client and window interfaces. |
nixl/cuobject-client-sys/native/cuobject.cc |
Implements SDK registration, tokens, and conservative teardown. |
nixl/cuobject-client-sys/Cargo.toml |
Defines optional bridge dependencies and SDK linkage. |
nixl/cuobject-client-sys/build.rs |
Compiles the bridge and locates SDK libraries. |
nixl/Cargo.toml |
Adds cuObject workspace members and feature selection. |
nixl/Cargo.lock |
Locks new client and bridge dependencies. |
docs/rdma-build.md |
Documents backend setup, transfer behavior, and native tests. |
docs/ADR/0001-object-data-transport.md |
Describes the shared multi-backend architecture. |
crates/s3/src/data_transport.rs |
Adds backend registration and pre-DMA rejection outcomes. |
crates/s3/src/client/object_error.rs |
Validates conditional S3 rejections before window reuse. |
crates/s3/src/client.rs |
Validates headers and implements registered control exchanges. |
crates/core/src/lib.rs |
Re-exports backend selection APIs. |
crates/core/src/data_transport.rs |
Defines backend parsing and process-wide selection. |
crates/core/src/alias.rs |
Rejects caller-supplied RDMA control headers. |
crates/cli/src/commands/mod.rs |
Adds backend options and parsing tests. |
AGENTS.md |
Documents the limited native bridge safety exception. |
.github/workflows/nixl.yml |
Adds SDK-free checks and cuObject build coverage. |
.github/scripts/build-cuobject-client.sh |
Downloads verified SDK packages and builds the combined client. |
Review effort: Balanced

Motivation
RustFS servers can expose S3 object data through either NIXL/UCX or NVIDIA cuObject. The native client introduced in #430 advertises a NIXL descriptor. A cuObject server expects a direction-specific NVIDIA token, so selecting required RDMA could not transfer an object to that server.
Changes
Select the native provider with
--rdma-backend nixl|cuobjectorRC_RDMA_BACKEND. Keep transport policy, signing, verified HTTPS, multipart publication, checksum validation and transfer receipts in the shared Rust implementation.The native binary uses
rustfs-cuobject-clientfor host registrations and direction-specific tokens. Its optional dependencyrustfs-cuobject-client-sysowns the C++ bridge, NVIDIA SDK discovery, compilation and linking. The native binary and the Rust client library forbid unsafe Rust code.Read and write files directly through reusable registered windows. New pools size their windows to the part or range. Uncertain DMA retains its registration and budget. Confirmed completion permits reuse. Reserve the native provider headers in CLI input and S3 configuration.
Fetch up to two adjacent ranges concurrently through the shared NIXL/cuObject download path. Reserve the earlier window first and settle both control exchanges. Publish progress and verify complete objects in byte order.
Validation
DPU verification of RDMA GET and small-pool PUT
Both RDMA backends use the same ordered range GET. Mixed failures retain an uncertain result, and endpoint/backend/operation-scoped discovery prevents repeated window exposure to ordinary S3. The native registration owns its accounting guard through SDK teardown, including a failed deregistration.
Both native provider builds exercised ordered ranges and HTTP-only discovery. Both g1 devices ran cancellation, token and native registration lifetime tests, including an SDK returning a deregistration error.
Open test failure. The 128 MiB NIXL GET at total concurrency 6 failed. One g1 CLI process exited with
SIGABRTin the UCX 1.22 VFS path database, then that load generator stopped after 31 s. Its final file passed SHA-256, but the CLI exit was a request error. No repeat measurement was performed. A separate clean exit showed UCX worker destruction and global VFS cleanup on different threads during process exit. This observation does not identify the caller that triggered the assertion in the timed run.The two g1 clients and two g2 servers ran one clock-coordinated 100-second measurement per configuration. GET baselines are the previous measured heads; the new measurements used the same fixture contents, six EC:3 disks and strict persistence. The separate fixture bucket names can change erasure-shard placement. Each GET includes starting the CLI, writing the destination, and checking SHA-256. The client control request used HTTPS and the object bytes used RDMA. Inter-node shard I/O used HTTP in both runs. The NIXL server binary remained fixed. CPU numbers sum the average cores across the two clients or the two servers. MR values are per-node sampled peaks on mlx5_2.
Independent counter runs on the same four cross-entry GETs (768 MiB) and eight small-pool PUTs. Counter totals were cuObject GET
processCompletions1,523 → 768, NIXL GETuct_ib_mlx5_poll_cq195,751 → 200,333, cuObject PUTprocessCompletions0 → 0. UCX polling includes empty progress polls. The 12 MiB whole-object PUT used the NVIDIA SDK with 8 MiB of staging per server. Each transfer receipt and all final object digests were checked.ARM DPU GET comparison
Two g1 clients read SHA-256 objects through two g2 servers using the actual
rc getexecutable and verified HTTPS. Each variant, backend, size and concurrency had a single 100-second measurement. Throughput includes draining outstanding GETs. P99 combines whole-object latencies across both clients, including process startup, registration, checksumming and writing to tmpfs. Each process used two existing 64 MiB windows. The six SSDs used EC:3 and strict persistence. Application caching and compression were disabled. The NIXL/UCX comparison kept its server binary and process unchanged.Registered memory was measured from the native mlx5_2 MR list and sampled by process. One old cuObject 128 MiB run at concurrency 8 had incomplete system sampling and one client stopped early. It was excluded; concurrency 6 was measured on both versions. Each valid configuration used the same object sizes, concurrency and registration budgets before and after.
The measured ARM64 RustFS commit is
705b37acebb62f5db069fa5f202948d6b3a774fc(SHA-25681a0102b2d385776e0f92d5456724e0bd85f5ef2b611bc8d2d8e2df444605eac). The measured CLI production source is10f091c3d9255f8813d24323a64328ab1e908e9e(SHA-256557b8822a81865d594ba29d7c4f07cd47a6d8f72cc03af2015a698b8c4a1e946). Subsequent CLI commits update documentation and regression coverage.cuobject peak MR bytes, in MiB per DPU, before to after. Clients (C2: 128/128 to 128/128, C6: 384/384 to 384/384, C8: 512/512 to 512/512). Servers: 384/384 to 384/384.
nixl peak MR bytes, in MiB per DPU, before to after. Clients (C2: 375.13/375.13 to 375.13/375.13, C6: 1125.38/1125.38 to 1125.38/1125.38, C8: 1500.5/1500.5 to 1500.5/1500.5). Servers: 647.5/647.5 to 647.5/647.5.
During four additional cross-entry cuObject GETs (768 MiB total), g2 .189 recorded 384 to 0 channel allocations and 384 to 0 completion FD lookups. SDK completion polling calls went from 384 to 755. These probes count invocations, including empty polls.
During four additional cross-entry cuObject GETs (768 MiB total), g2 .216 recorded 384 to 0 channel allocations and 384 to 0 completion FD lookups. SDK completion polling calls went from 384 to 762. These probes count invocations, including empty polls.
Earlier DPU verification
The two g1 ARM clients ran CLI
f809d60facd1222a0d571441f650849f40172cce(SHA-256940ad315290c0eea07b1f1f02a737800c2ce84e87540c25689b308261966c91f) against both entries of a two-g2, six-SSD EC:3 cluster with strict persistence and verified HTTPS. The ARM64 RustFS binary was built from9c016b22b005bf03e6568b92e3029a48a9a171f4(SHA-256907c6dba46b15f239b32760ef6d075b167fe44661e44ca53727d510ac12eb186). The following RustFS commitbc84516c03f866cc713efbe850ece4c782a9c266updates only the architecture documentation.cargo checkwith C++ disabled and an unavailable SDK. CI checks this condition before installing the NVIDIA client SDK.Earlier measurements
Expect: 100-continue. This reproduced on both the updated server and the older NIXL build. A fresh connection, or omitting Expect on the second request, passed independent readback. The concurrent cuObject GET fixture used a verified RDMA PUT.