3. API Reference for Developers#
Integration requires modifying the S3 SDK on the client side and the storage software on the server side.
3.1. Client Side API (cuObject client library)#
The client library manages RDMA configuration and memory registration.
- Initialization
cuObjClient(CUObjOps_t& ops, cuObjProto_t proto)- Data Operations
cuObjGet(...)Initiates a GET operation by inserting the
x-amz-rdma-tokentag in the HTTP header.cuObjPut(...)Initiates a PUT operation by inserting the
x-amz-rdma-tokentag in the HTTP header.
Both functions accept
void *ctx,void *ptr(buffer),size_t size, andloff_t offset.
3.2. Server Side API (cuObject server library)#
The server library handles RDMA buffer registration and performs RDMA operations.
- Buffer Management
registerBuffer(const void *ptr, size_t size)Registers a memory region for RDMA.
allocHostBuffer(size_t size)Allocates pinned memory on the CPU.
- Request Handling
handleGetObject(...)Performs
RDMA_WRITEto push data to the remote client.handlePutObject(...)Performs
RDMA_READto pull data from the remote client.
- Memory Descriptors
Supports simple blob data (
registerBuffer) and scatter gather lists (getRDMABufferFromSgList).