#18464·rook

NVMe-oF: SPDK reactor threads consume 100% CPU per core via busy-polling even when idle

Author: OdedVinerCreated Sep 28, 2026Updated Sep 28, 2026

Summary

When the NVMe-oF gateway is deployed, SPDK reactor threads immediately consume ~100% CPU per core due to busy-polling, even when no I/O is being served. On a shared node this can starve co-located workloads (monitoring, OSD, kubelet, etc.) and artificially inflate the node load average.

This is particularly dangerous in environments where other critical applications share the same nodes. The aggressive CPU polling can cause cascading performance degradation — impacting Ceph OSDs, monitoring agents (Prometheus), kubelet responsiveness, and any other pods scheduled on the same node. Without clear documentation or warnings, users may unknowingly destabilize their cluster by simply enabling the NVMe-oF gateway.

This raises the question: should dedicated nodes be required (or at least strongly recommended) for NVMe-oF gateway pods? If busy-polling is inherent to the SPDK design, users need guidance on whether to use node affinity, taints/tolerations, or CPU pinning to isolate the gateway from other workloads.

Observed Behavior

Before gateway starts — system is essentially idle:

%Cpu(s):  2.2 us,  0.8 sy,  0.0 ni, 96.4 id
load average: 0.48, 0.81, 0.88

After gateway starts — no I/O workload connected, no NVMe-oF initiators:

%Cpu(s): 27.4 us,  1.0 sy,  0.0 ni, 70.6 id
load average: 5.46, 4.68, 2.83

Per-thread breakdown (4 reactors, each pinned to a core):

    PID USER  PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
2277875 root  20   0 4575572 312968 235760 R  99.3   0.5   8:20.99 reactor_0
2277879 root  20   0 4575572 312968 235760 R  99.3   0.5   8:21.08 reactor_3
2277877 root  20   0 4575572 312968 235760 R  99.0   0.5   8:20.27 reactor_1
2277878 root  20   0 4575572 312968 235760 R  99.0   0.5   8:20.84 reactor_2
2277876 root  20   0 4575572 312968 235760 S   0.0   0.5   0:00.00 dpdk-intr

Each reactor spins at 100% regardless of actual I/O load.

Impact

  • CPU waste: 4 full cores consumed with zero useful work when idle.
  • Load average inflation: Load jumps from < 1 to > 5, which can trigger node-pressure alerts and affect scheduling decisions.
  • Danger to co-located applications: Any other workload on the same node (Ceph OSDs, Prometheus, kubelet, application pods) will compete for CPU time, potentially causing latency spikes, OOM due to health-check timeouts, or even pod evictions.
  • Scaling concern: More gateway instances = more stolen cores. In a 3-gateway deployment across 3 nodes, this is 12 cores permanently consumed cluster-wide even when no NVMe-oF I/O is happening.
  • No warning to users: There is currently no documentation warning that enabling the NVMe-oF gateway will permanently consume multiple full CPU cores per node, making it easy to unknowingly degrade cluster health.

Questions

  1. Should NVMe-oF gateway pods require dedicated nodes with taints/tolerations to prevent impact on other workloads?
  2. If dedicated nodes are not required, should the gateway pods at minimum have CPU requests/limits set to reflect their actual consumption so the scheduler can account for it?
  3. Is there a plan to support SPDK's dynamic scheduler or interrupt mode to reduce idle CPU consumption?

Environment

  • 4 SPDK reactor threads per gateway instance
  • Gateway deployed on shared worker node (no dedicated CPU pinning / cpuset isolation)
  • No NVMe-oF initiators connected at the time of observation