How to Fix Failed to Start irqbalance.service in Ubuntu

The irqbalance daemon distributes hardware and software interrupts across available CPU cores on symmetric multiprocessing (SMP) systems, preventing single-core starvation and optimizing network and disk I/O throughput. When booting an Ubuntu server or executing systemctl start irqbalance, administrators may encounter the service failure: Job for irqbalance.service failed because the control process exited with error code. This disruption typically occurs on single-core virtual machines, containers, or systems with mismatched CPU affinity configurations.

Inspect systemd Status and Daemon Failure Logs

Querying the systemd journal reveals the exact condition that caused the daemon process to exit:

  1. Open a terminal with root or sudo administrative access.
  2. Query the systemd service status:
    sudo systemctl status irqbalance.service
  3. Inspect recent journal messages from the unit:
    sudo journalctl -u irqbalance.service -e --no-pager
  4. Common failure messages include “irqbalance: Balancing is ineffective on systems with fewer than 2 CPUs” or affinity mask syntax errors in configuration files.

Disable or Mask irqbalance on Single-Core Virtual Machines and Containers

By design, irqbalance cannot balance interrupts on systems equipped with only one CPU core or single-vCPU cloud instances (such as entry-level AWS EC2, DigitalOcean Droplets, or Linode VPS instances). If your system has one core, irqbalance is completely unnecessary:

  1. Check the total number of recognized CPU cores:
    nproc
  2. If nproc returns 1, disable and mask the service to eliminate boot errors permanently:
    sudo systemctl stop irqbalance.service
    sudo systemctl disable --now irqbalance.service
    sudo systemctl mask irqbalance.service
  3. Masking ensures that package updates do not attempt to re-enable the service automatically.

Configure CPU Affinity Masks in /etc/default/irqbalance

On multi-core servers, if specific isolated CPU cores (e.g., cores reserved for DPDK or real-time tasks) conflict with default balancing routines, specify an explicit CPU ban mask:

  1. Open the default configuration file:
    sudo nano /etc/default/irqbalance
  2. Locate the IRQBALANCE_BANNED_CPUS parameter.
  3. Ensure the parameter contains a valid hexadecimal CPU mask or leave it commented out if you desire automatic balancing across all cores:
    # Ban no CPUs (balance across all available cores):
    IRQBALANCE_ARGS=""
  4. Save the file, exit the editor, and reload systemd units:
    sudo systemctl daemon-reload
    sudo systemctl restart irqbalance.service

Reinstall irqbalance and Reset Service State

If binary files or systemd unit definitions were corrupted during an incremental operating system upgrade, reinstalling the package restores clean configuration defaults:

  1. Update package indexes:
    sudo apt update
  2. Reinstall the package:
    sudo apt install --reinstall irqbalance
  3. Enable and start the service:
    sudo systemctl unmask irqbalance.service
    sudo systemctl enable --now irqbalance.service
    sudo systemctl status irqbalance.service

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.