arXiv:2611.11991cs.NINov 2026

Manuscript Offprint

arXiv:2611.11991

MTRDMA: Lightweight User-Space Control-Plane Isolation for Multi-Tenant RDMA

Hongyu Wang, Peihao Huang, Bangbo Liang, Lei Wang, Guo Chen

Hongyu Wang why2021@hnu.edu.cn Hunan University Changsha, China

Peihao Huang hph101001@hnu.edu.cn Hunan University Changsha, China

Bangbo Liang lbb@hnu.edu.cn Hunan University Changsha, China

Lei Wang jordanwanglei@hnu.edu.cn Hunan University Changsha, China

Guo Chen* guochen@hnu.edu.cn Hunan University Changsha, China

Abstract

In managed multi-tenant clouds, RDMA's lack of control-plane (CP) resource isolation lets a noisy tenant exhaust shared NIC microarchitectural caches, degrading victim throughput by up to 96.4%. Data-path schedulers leave CP resources unprotected, and hardware approaches require FPGAs or SmartNICs rather than the commodity RNICs operators already deploy.

We present MTRDMA, a lightweight user-space CP isolation mechanism for commodity RNICs, applicable to managed runtimes such as containers and sandboxed processes. MTRDMA intercepts library-level CP operations to enforce hierarchical quotas while preserving the zero-copy data path, using atomic shared-memory quota state with per-process cached admission (~0.13 µs), a hybrid garbage collector that reclaims orphaned quota within seconds, and rdma-cggroup caps with ledger-kernel reconciliation to bound and detect residual tampering. On ConnectX-6 RNICs, MTRDMA cuts victim degradation under Queue Pair (QP) cache exhaustion from 94.5% to 0.08%, extends protection to Memory Region (MR) cache exhaustion, and scales to 256 concurrent tenants with negligible data-plane overhead.

Keywords: Multi-Tenant RDMA, Control-Plane Isolation, Resource Management, User-Space Interposition

1 Introduction

Remote Direct Memory Access (RDMA) provides microsecond-scale latency and kernel-bypass data transfer for high-performance distributed systems [8, 12, 13, 18, 34]. To improve utilization, operators consolidate workloads from multiple tenants onto hosts that share a single RDMA NIC (RNIC) [2–4, 10–12, 16, 20, 26, 40, 41]. In managed runtimes—containers and sandboxed processes—the operator controls the platform and tenants bring arbitrary binaries that may misbehave [20, 50]. This paper addresses control-plane (CP) resource isolation between such tenants on commodity RNICs.

*Corresponding author.

RDMA's kernel-bypass design splits the NIC into two paths. The data path (DP) bypasses the kernel entirely: applications post work requests and ring doorbell registers directly. The CP–Queue Pair (QP) creation, Memory Region (MR) registration—enters the kernel through the uverbs interface, but the kernel treats these commands as opaque pass-throughs: it records that a process created a QP but not how much of the RNIC's finite on-chip SRAM (QP, MR, and WQE caches) each tenant consumes. Nothing therefore stops one tenant from exhausting these caches. Reproducing an attack from Kong et al. [22], after a noisy neighbor creates 100 QPs a victim's throughput drops from 91.5 to 3.3 Gbps (96.4%) on an unsaturated link (§2.2)—cache eviction, not bandwidth; the effect extends to MR and WQE caches [22, 23].

A solution in this setting must meet four deployment requirements: it must not require application modification or recompilation (R1), because tenants bring arbitrary binaries; it must not modify the kernel, drivers, or firmware (R2), because production fleets run vendor-validated kernels whose changes must pass a long revalidation cycle; it must run on commodity RNICs (R3), ruling out FPGA or SmartNIC dependencies; and it must leave the DP untouched (R4), since kernel bypass is the reason RDMA is deployed.

On the standard path, every QP or MR creation walks the same route: the application calls libivberbs, which issues a uverbs system call, and the driver then commits the state to the RNIC. Admission must sit before the commit: committed contexts are non-preemptable, and the harm—a victim's eviction from on-chip SRAM—happens at commit time. R1–R4 themselves veto the application, the kernel, and NIC firmware or hardware, confining the admission point to unprivileged user space. The kernel case is the subtle one: the stock kernel exposes no RDMA-object hook that authorizes individual creations, so kernel-path enforcement—a kernel module, eBPF [33], or a custom LSM [48]—means kernel changes.

The remaining candidates are user-space mechanisms on this path (§2.3 examines each family), and two further constraints reduce them to one. DP schedulers [25, 50] see traffic only after creation has committed, too late to reject it. A supervisor at the system-call boundary—a privileged daemon or a per-container watcher—also sits before the commit, but its per-creation IPC round trip violates the low-latency admission requirement (§2.2; quantified in §2.3). The one remaining spot is the libibverbs boundary, the last point on the path before the kernel. Interposing there meets all four requirements at once: applications run unmodified (R1), the kernel, drivers, and NIC stay untouched (R2, R3), and the DP is not involved (R4). This boundary sees only the standard path; §3.1 describes how the platform closes the rest-mandating preload, guarding the uverbs device node, and capping committed objects with rdma-cgroup—so library-level admission and platform-level bounding together cover all creation paths.

But this choice has a built-in weakness. Conventional resource control polices from above: a kernel or a hypervisor runs at a higher privilege than the processes it constrains, so the constrained party cannot tamper with the mechanism. The libibverbs boundary has no such advantage—the interposition layer runs inside the tenant's own process, at the tenant's privilege level, and a tenant can simply skip or overwrite a check that lives inside its own address space.

MTRDMA therefore splits enforcement in two. A thin interposer inside libibverbs only catches each CP call before it commits, consults the quota, and lets the call through or fails it; it holds no authoritative state. All authoritative quota state lives in a separate, operator-launched user-space Resource Manager that stays off the per-operation path, so admission needs no IPC and no single daemon serializes the tenants. Yet this equal privilege creates two problems.

The first is the quota ledger (Challenge 1: an untrusted ledger). At equal privilege, the ledger must be tamper-resistant, fast under bursty creation, and exact under concurrent updates—a trilemma. A privileged arbiter keeps an unforgeable ledger but pays an IPC round trip per check and serializes every tenant through one process; counters in the tenant's own memory are fast but tenant-writable and cannot express tenant- or global-level quotas at all. MTRDMA's move is to stop trying to make the ledger unforgeable and instead make forgery pointless: it keeps authoritative counters in a daemon-initialized shared-memory segment, reads them through a per-process optimistic cache that admits in ~0.13 µs without IPC (§3.3), and caps every tenant's real commitment at the kernel—above the tenant's privilege—with rdma-cgroup object limits. A tenant can rewrite the ledger, but not the kernel's cap; reconciliation turns any drift into a detectable divergence (§5.10).

The second is reclamation (Challenge 2: invisible reclamation). A process that exits cleanly destroys its QPs and MRs, and the ledger subtracts them; one killed by SIGKILL or a crash does not. The kernel eventually reclaims those orphaned hardware contexts, but it does so asynchronously and invisibly to user space, so the ledger keeps charging the dead tenant and its quota leaks away. Linux also recycles

PIDs aggressively, so reclaiming by PID alone would eventually release a live process's resources as if it belonged to the dead one. MTRDMA gives up on learning the exact death time and instead closes both leaks with cheap redundancy: pidfd events report deaths within seconds, a periodic scan catches the deaths pidfd misses when its file descriptors run out, and a process's recorded start time makes a reused PID unambiguously a new tenant (§3.4, §5.9).

MTRDMA realizes this design as a library-level interposition layer, the shared-memory ledger, and a resource-management daemon. Like any library-level mechanism, MTRDMA is a resource-containment layer rather than a security boundary; §3.1 states the residual scope. On commodity ConnectX-6 RNICs, MTRDMA reduces victim degradation under QP cache exhaustion from 94.5% to 0.08% and under MR cache exhaustion from 76.3% to 0.1%, adds ~36 µs to QP creation with no measurable data-plane bandwidth overhead, protects unmodified HERD [18], an RDMA key-value store, and scales to 256 concurrent tenants (§5). To our knowledge, MTRDMA is the first system to enforce control-plane resource quotas for unmodified applications on commodity RNICs without kernel, driver, or firmware changes.

This paper makes the following contributions:

  • We formulate CP resource isolation for managed multi-tenant RDMA as a requirements problem and show that, together with pre-commit, low-latency admission, the requirements leave the libibverbs boundary as the only viable enforcement point—one running at the tenant's own privilege level (§2.2, §2.3).

  • We characterize what quota bookkeeping can guarantee at equal privilege—bounded transient overshoot under concurrency, second-scale reclamation of orphaned quota, and detection of residual tampering—and design the mechanisms achieving these bounds: atomic shared-memory admission and a hybrid garbage collector (§3).

  • We implement and evaluate MTRDMA on commodity RNICs, reducing victim degradation under cache exhaustion from 94.5% to 0.08% with negligible overhead and scaling to 256 tenants (§5). We release MTRDMA as open source at https://github.com/mtrdma/mtrdma.