TECHNOLOGY

Place device interrupts without stealing inference feeder cores

In this article
THE QUICK TAKE

Map device interrupts, balancing ownership and software processing separately from the model threads before changing CPU placement.

A model’s preparation threads are pinned to selected CPUs, yet those CPUs spend substantial time servicing a busy device. Application affinity does not establish interrupt placement. Map the relevant interrupt sources and their policy owner before proposing to reserve feeder CPUs or move every interrupt away from the model indiscriminately.

Associate interrupts with the device

Record the actual device and queue identities, interrupt vectors and observed per-CPU counter changes during the workload. One device can use several vectors, and an interrupt label alone can be ambiguous. Preserve a before-and-after interval rather than a large count accumulated since boot. Counts establish activity, not the duration of each handler or direct ownership by an inference request.

Read the allowed interrupt CPUs

The kernel documents smp_affinity and its CPU-list form as permitted targets for a particular IRQ. Controller support affects whether an assignment can be changed. A configured mask is therefore an input to inspect, not universal proof of effective placement. Compare observed delivery with the intended mask and the CPU set actually available to the preparation threads.

Identify the balancing owner

An active irqbalance service can manage interrupt placement separately from a one-time manual write. Its documented exclusions and policy options define which sources it leaves alone. Establish that ownership before preparing a change. Competing writers can undo each other’s assignments and produce an unstable benchmark whose results depend on when the sample happened.

Separate receive processing layers

For networking, receive hardware queue selection, interrupt CPU placement and software protocol processing can differ. The networking guide distinguishes RSS and RPS responsibilities. Moving one IRQ does not prove all packet work left a CPU, nor does it automatically improve cache locality. Observe the relevant layers before using a new interrupt mask as the explanation for changed host latency.

Compare a bounded queue workload

In an isolated supported setup, keep device traffic and model preparation fixed while evaluating one justified placement change under a single owner. Compare handler activity, host completion timing and neighboring effects. Acceptance is an explained placement tradeoff. It does not provide dedicated cores, remove every interrupt source or justify assigning all device work to one CPU without capacity evidence.

Primary references

Linux Interrupt Affinity.

irqbalance Policy and Ownership.

Linux Receive and Transmit Steering.

Related reading: First touch and NUMA: locating GPU host buffers; Idle GPU, throttled CPU: diagnosing container CPU quota.

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