WHITE PAPER 09 Research Concept Group C • Memory & Distributed Systems

Distributed Inference and RDMA Memory Fabric

Multi-Node Model Execution and Remote RAM Streaming Without Unnecessary Data Copying

Series: Apolynux Modular Intelligence Version: 1.0 Date: 2026-12-01 Read: 10 min read

01 Abstract

Distributing large models across multiple commodity servers expands aggregate RAM capacity without requiring monolithic single-server hardware. However, conventional TCP/IP networking introduces kernel transitions, CPU overhead, and repeated buffer copies. Apolynux investigates an RDMA-enabled distributed memory fabric over InfiniBand or RoCE to treat peer-node RAM as a fast remote tier for warm model components and MoE experts — distributing work only when compute or memory gains exceed communication cost.

02 Problem Statement

Small enterprise clusters of 2–8 commodity servers collectively hold substantial DRAM, yet standard socket-based RPC paths add milliseconds of serialisation and copy overhead when fetching model weights or KV blocks across nodes. Conversely, blindly distributing every layer across the network degrades performance whenever communication latency dominates local execution.

03 Background & Foundations

Remote Direct Memory Access (RDMA) via InfiniBand and RDMA over Converged Ethernet (RoCE) allows one node to issue RDMA Read/Write operations directly against registered peer RAM via hardware Queue Pairs and Completion Queues, bypassing the remote CPU and OS network stack.

04 Existing Architectural Limitations

  • TCP/IP socket transfers incur heavy kernel-copy and CPU-interrupt overhead on both sender and receiver.
  • Naively tensor-paralleling small workloads over commodity networks stalls on frequent all-reduce barriers.
  • Lack of locality-aware placement causes hot weights to traverse the network repeatedly.

05 Proposed Apolynx Architecture

Each cluster node exposes registered memory regions over RDMA, enabling locality-tiered placement (local hot, local warm, remote hot, remote cold) and zero-copy remote expert fetches.

Multi-Node RDMA Distributed Memory Fabric — Peer-node RAM acts as a low-overhead remote residency tier interconnected via zero-copy RDMA Queue Pairs.
Figure 09 — Multi-Node RDMA Distributed Memory Fabric: Peer-node RAM acts as a low-overhead remote residency tier interconnected via zero-copy RDMA Queue Pairs. Full-Resolution SVG

Node Local Stack

Local CPU, RAM, NVMe, lockless execution queues, optional NPU/GPU, and an RDMA-capable NIC.

Registered Memory Registry

Pre-registered RDMA memory regions holding partitionable expert weights and KV slabs for direct zero-copy reads.

RDMA Transport Engine

Manages InfiniBand/RoCE Queue Pairs, RDMA Read/Write verbs, and nonblocking Completion Queues.

Locality-Aware Cluster Scheduler

Weighs network bandwidth, latency, transfer size, remote contention, and failure recovery before dispatching remotely.

06 Technical Design

A guiding principle governs all distributed routing: do not distribute every operation. Local execution is always preferred for hot data. When a requested MoE expert is absent locally, the node checks the cluster residency directory; if a peer holds the slab in registered RAM, an asynchronous RDMA Read streams it directly into local RAM, bypassing remote CPU interrupts.

07 Execution Workflow

  • 1. Local Check: Node A checks its local residency table for the required expert or weight component.
  • 2. Peer Discovery: On a local miss, Node A queries the lightweight cluster residency directory for a peer holding the slab.
  • 3. RDMA Read: Node A posts an asynchronous RDMA Read on its Queue Pair targeting the peer's registered RAM region.
  • 4. Zero-Copy Landing: The RDMA NIC transfers the weight slab directly into Node A's pre-allocated local buffer.
  • 5. Completion & Execution: Completion Queue signals readiness, unlocking local compute execution and caching policy.

08 Algorithms, Interfaces & Specification

Distributed Expert Streaming Path Over RDMA
NODE A (Requesting Execution)
  |
  | 1. Expert requested
  v
LOCAL RESIDENCY CHECK
  |
  | (Cache Miss)
  v
REMOTE NODE DISCOVERY  ---> Peer Node B (Registered RAM MR)
  |
  v
RDMA READ TRANSFER     <=== Zero-Copy via InfiniBand / RoCE
  |                         (Bypasses Peer CPU & Kernel TCP)
  v
LOCAL RAM BUFFER
  |
  v
EXPERT EXECUTION

09 Implementation Considerations

  • Memory registration overhead is non-trivial; register persistent slab pools upfront rather than per transfer.
  • RoCE deployments require careful network switch configuration (PFC/ECN lossless flow control) to avoid packet drops.
  • Cluster scheduler must support graceful fallback to local NVMe whenever a peer node becomes unreachable.

10 Performance Evaluation Methodology

Benchmark RDMA Read latency and throughput across slab sizes (1 MiB–64 MiB), compare remote peer RAM fetch latency against local NVMe random reads, and measure multi-node scaling efficiency.

11 Limitations & Scope Boundaries

  • Research Concept stage: RDMA transport integration is scheduled for Phase 5 of the implementation roadmap.
  • Requires RDMA-capable NICs (InfiniBand or RoCE); environments limited to standard Ethernet must fall back to local NVMe or optimised TCP.

12 Open Research Questions & Challenges

  • What expert-partitioning strategy minimises cross-node RDMA traffic across 2–4 node enterprise clusters?
  • How should failure recovery and slab replication balance resilience against aggregate cluster RAM capacity?

13 Future Directions

  • Hybrid placement combining hot local pinned RAM, warm peer RDMA RAM, and cold local NVMe.
  • Extending RDMA Write paths for disaggregated Prefill-to-Decode KV-cache transfers.

14 Primary Technical References

  1. InfiniBand Architecture Specification — InfiniBand Trade Association (IBTA) — RDMA Read/Write, Queue Pairs, and Completion Queues.
  2. Linux rdma-core / libibverbs Documentation — User-space verbs API for InfiniBand and RoCE zero-copy transport.
  3. RoCEv2 Specification (Annex A17) — RDMA over Converged Ethernet transport and congestion management.
Related Technical Glossary Terms

Research Status: Research Concept • Scientific Integrity Disclosure

This research programme explicitly separates established computer science principles, existing open-source technologies, Apolynux architectural proposals, experimental implementations, and independently validated results. Apolynux does not claim to have invented OpenFlow, lock-free algorithms, RDMA, hugepages, or Mixture-of-Experts. Our research contribution is the proposed integration of these disciplines into a unified programmable inference architecture, evaluated strictly through repeatable empirical measurement.

Related White Papers

WP 06 Experimental Prototype

Hierarchical Memory Architecture

WP 07 Experimental Prototype

Predictive MoE Streaming