In this article
Use aligned softirq time, vector counts and traffic evidence to distinguish host packet processing from model-thread work.
CPU use rises with request traffic while a model’s own threads show modest execution time. Packet processing can consume host CPU outside those user threads. Correlate softirq time and network activity before attributing all host work to tokenization or assuming that an idle-looking GPU requires more model compute capacity.
Distinguish counters from time
The proc accounting interface exposes CPU time spent servicing softirqs as well as separate softirq occurrence counts. They are not interchangeable units. A burst of cheap events and fewer expensive events can produce different relationships. Use changes over the same interval and preserve whether the observation is an aggregate or a particular CPU’s accounting.
Identify relevant vectors
Softirq includes work beyond networking. Inspect the supported vector observations and compare receive or transmit activity with the tested interface. A growing total alone does not prove packet processing caused the delay. Keep model completion, traffic and host accounting aligned in time; otherwise unrelated background storage or timer work can be incorrectly assigned to the serving request path.
Follow packet steering
The networking guide separates hardware queue distribution from software receive steering. A task’s affinity does not automatically pin every stage of its packets to the same CPU. Inspect effective queue and steering configuration rather than assuming a single busy kernel thread is the entire network datapath. Moving application threads can change locality without eliminating kernel processing demand.
Avoid single-thread accounting traps
Some processing runs in interrupt-related contexts and can involve deferred work. One process list does not provide a complete per-request cost attribution. A busy ksoftirqd observation is useful context, not proof that every networking event executes there. Compare CPU-time categories and workload evidence instead of subtracting one visible thread’s usage from the host total and labeling the remainder unexplained.
Compare traffic while holding model work
In an isolated setup, keep bounded model input and output work fixed while comparing a controlled connection or packet pattern. Observe softirq time, relevant event deltas and useful request completion. Acceptance identifies a host-processing contribution under that traffic shape. It does not prove a defective NIC, establish universal steering settings or guarantee that reducing one CPU’s softirq percentage improves end-to-end inference.
Primary references
Linux CPU and Interrupt Accounting.
Linux Receive and Transmit Steering.
Related reading: Idle GPU, throttled CPU: diagnosing container CPU quota; Throughput and latency: choosing a GPU operating point.
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.