Enhancing Intel i210 Network Card Performance with Static IRQ Affinity on Linux

Abstract: Resolve high latency and packet loss on Intel i210 network cards by binding IRQs to dedicated CPU cores via static affinity.

Created: 2026-08-27 by
Configuring static IRQ affinity for the Intel i210 network card on Linux significantly reduces latency and increases packet processing throughput by binding specific interrupt requests to dedicated CPU cores. This optimization prevents context switching overhead and cache misses, ensuring that network traffic is handled efficiently without competing with other system processes for CPU time.

Understanding Interrupt Request Affinity

In a standard Linux configuration, the kernel dynamically assigns interrupts from hardware devices, such as network interfaces, to available CPU cores. While this automatic balancing works well for general-purpose computing, it introduces variability in performance. When an interrupt handler runs on a core that is already busy or has a cold cache, packet processing can suffer from delays. By manually setting the affinity of these interrupts, you ensure that the network driver’s interrupt handlers run exclusively on specified cores, leading to more predictable and higher performance.

This technique is particularly valuable for servers handling high-throughput network traffic, virtualization hosts, or any application where low latency is critical. The Intel i210 is a popular Gigabit Ethernet controller known for its reliability, but like many NICs, its default interrupt handling may not be optimized for heavy loads. Static affinity allows administrators to pin these interrupts to the first four cores of the system, isolating them from user-space applications and background services.

Identifying the Relevant IRQ Numbers

The first step in optimizing your Intel i210 card is identifying the specific Interrupt Request (IRQ) lines assigned to its network queues. Modern NICs often use multiple receive queues to parallelize packet processing, each associated with its own IRQ. You can view the current IRQ assignments by examining the /proc/interrupts file or using the lspci command to find the device address.

  1. Find the PCI address: Run lspci | grep -i ethernet to locate your Intel i210 adapter. Note the bus:device.function identifier, typically starting with numbers like 03:00.0.
  2. List IRQs: Execute cat /proc/interrupts and look for entries containing e1000e or i210. Each line represents a queue or feature, showing which CPU cores are currently handling the interrupts.
  3. Note the IRQ numbers: Record the numerical IRQ values associated with the network interface. These are the identifiers you will modify in the next steps.

If you have multiple queues, you will see several IRQ lines for the same device. It is important to handle all relevant IRQs to ensure balanced performance across all receive channels. For a comprehensive guide on troubleshooting connectivity issues that might arise during hardware changes, you may refer to our article on Troubleshooting Linux Device Not Reachable During Network Ping.

Setting Static IRQ Affinity via sysfs

Linux exposes the ability to set CPU affinity for interrupts through the /proc/irq//smp_affinity interface. This file accepts a hexadecimal bitmask representing the CPU cores that should handle the interrupt. To bind an IRQ to the first four cores (CPU 0, 1, 2, and 3), you need to calculate the bitmask value.

The bitmask is calculated as 2^0 + 2^1 + 2^2 + 2^3 = 1 + 2 + 4 + 8 = 15. In hexadecimal, this is f. Therefore, to assign an IRQ to the first four cores, you write 0xf to the corresponding smp_affinity file. This operation must be performed with root privileges.

# Replace IRQ_NUM with the actual interrupt number found earlier
echo f > /proc/irq/IRQ_NUM/smp_affinity

You should repeat this command for every IRQ associated with your Intel i210 network queues. If you have four queues, you might distribute the load evenly or pin all to the same four cores depending on your workload. For single-queue setups, pinning to cores 0-3 is a safe default. Remember that changing these settings resets after a reboot, so persistence requires additional configuration.

Making the Configuration Persistent

Since modifying /proc/irq/*/smp_affinity is volatile, you need a mechanism to apply these settings automatically at boot. The most robust method is using a systemd service or a udev rule. A systemd service is often easier to manage and debug.

Create a script, for example /usr/local/bin/set-i210-affinity.sh, that iterates through the detected IRQs and sets their affinity. Then, create a systemd unit file /etc/systemd/system/i210-affinity.service that executes this script during the early boot phase. Ensure the service has After=network-pre.target and Wants=network-pre.target to guarantee the network interfaces are initialized before the affinity is set.

[Unit]
Description=Set IRQ Affinity for Intel i210
After=network-pre.target
Wants=network-pre.target

[Service]
Type=oneshot
ExecStart=/usr/local/bin/set-i210-affinity.sh
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Enable the service with systemctl enable i210-affinity.service. This approach ensures that your performance optimizations survive reboots and updates. For users interested in other hardware diagnostics, checking your storage health is also crucial for overall system stability; see our guide on Check Hard Drive Status for Personal Photos in Linux.

Verifying Performance Improvements

After applying the static affinity, verify that the settings are active by checking /proc/irq/IRQ_NUM/smp_affinity again. Use tools like top or htop to monitor CPU usage on the pinned cores during network stress tests. You should observe a reduction in softirq time spikes and more consistent packet processing rates.

Additionally, consider using perf or bpftrace to measure interrupt latency before and after the change. A successful configuration will show lower variance in interrupt handling times. This optimization complements other network tuning parameters, such as increasing ring buffer sizes or adjusting TCP window scaling, to maximize the potential of your Intel i210 hardware.

Frequently Asked Questions

Can I set IRQ affinity for all CPUs instead of just the first four?

Yes, you can set the bitmask to include all available cores by calculating the sum of powers of two for each CPU index. However, spreading interrupts too widely can negate the benefits of cache locality, so limiting it to a subset of cores is often better for performance.

Does this configuration affect the transmit queues as well?

The primary focus of IRQ affinity is usually on receive interrupts, as they dictate how quickly packets enter the system. Transmit queues are often polled or use completion interrupts that are less frequent, but you can adjust their affinity similarly if needed for bidirectional traffic optimization.

What happens if I pin an IRQ to a core that is already overloaded?

Pinning an IRQ to an overloaded core can lead to increased latency and packet drops because the interrupt handler cannot run promptly. It is essential to choose cores that are relatively idle or dedicate specific cores solely for network processing to avoid contention.

Is there a risk of breaking network connectivity with this change?

There is minimal risk if you correctly identify the IRQs and maintain a valid bitmask. However, if you accidentally exclude all CPUs (by setting the mask to 0), the system may fail to process interrupts for that device. Always keep a console session open to revert changes if necessary.

How do I determine the correct bitmask for my specific CPU layout?

The bitmask corresponds directly to the CPU IDs reported by nproc or lscpu. If you want to target CPU 0 and CPU 2, the bitmask is 1 + 4 = 5, which is 0x5 in hexadecimal. You can use online converters or simple arithmetic to derive the hex value for your desired core selection.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More