TECHNOLOGY

Spread packet reception across the intended CPU queues

In this article
THE QUICK TAKE

Trace RSS hashing, active RX queues, IRQ affinity and optional RPS before using queue count to explain packet-processing imbalance.

Packet processing saturates one CPU while other cores are idle on an inference gateway. More receive queues might help, but only if traffic distribution and interrupt placement explain the imbalance. Trace the mapping from flow hash to hardware queue and then to processing CPU. Queue count, interrupt affinity and application thread count are related observations with different controls.

Inspect hardware steering

RSS uses packet-header information to choose a receive queue, commonly through a hash and indirection table. Save enabled channels, supported hashing and the active indirection configuration. The maximum advertised queue count is not necessarily the active count. Explicit steering rules or dedicated RSS contexts can override the distribution assumed from a default table, so retain their presence during diagnosis.

Preserve the flow population

A single ordered flow is ordinarily kept on one queue by the steering policy. Several busy connections can also hash to the same queue. Increasing queue count therefore does not guarantee even work or divide one connection freely across CPUs. Record the number and endpoint diversity of active flows before interpreting unused queues as evidence of a broken NIC.

Follow interrupts to CPUs

Map queue interrupts to observed CPU activity and allowed IRQ affinity. An affinity mask describes permitted targets, not proof of equal work. A management daemon can change assignments after a manual adjustment. Preserve effective observations over the workload interval, and compare local memory topology when moving packet work far from the NIC or its consuming application threads.

Separate software steering

RPS assigns protocol processing in software later than hardware RSS. It does not simply create more hardware receive queues. Additional handoffs can introduce communication overhead, so stacking steering mechanisms is not automatically beneficial. Inspect the configured software CPU masks alongside RSS and IRQ state to explain which stage actually processes the packets attributed to a queue.

Compare useful delivery

Run matched multi-flow and single-flow synthetic traffic within an isolated equivalent. Compare per-queue work, CPU pressure, drops and application delivery timing. A useful configuration reduces the diagnosed processing constraint without unacceptable overhead elsewhere. It does not establish that the model needs more tokenization threads, predict every flow distribution or promise a linear speed increase from adding queues to the NIC.

Primary references

Linux RSS and Software Packet Steering.

ethtool Driver Settings and Statistics.

Linux IRQ Affinity Semantics.

Related reading: GPU, NVMe and NIC contention on a shared PCIe path; GPU networking and availability: beyond internet speed.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles