The ASPM Bottleneck
To maximize battery life on laptops and reduce power draw on servers, Ubuntu utilizes Active State Power Management (ASPM) for devices connected via the PCI Express (PCIe) bus. When ASPM is active, the Linux kernel will automatically put PCIe devices (like dedicated network cards, NVMe storage drives, or secondary graphics cards) into a low-power, suspended state if they are not actively transmitting data. While energy-efficient, this automatic suspension introduces a wake-up latency. For high-performance computing, competitive gaming, or low-latency network routing, that tiny delay when the PCI device wakes up causes micro-stutters, dropped packets, and unpredictable performance.
Disabling PCI Express Power Management
To prioritize raw performance and zero latency over energy efficiency, and to stop Ubuntu from automatically suspending PCI devices, you must disable ASPM by passing a parameter to the kernel at boot.
You need to modify your GRUB bootloader configuration. Open a terminal (Ctrl+Alt+T) and type sudo nano /etc/default/grub, pressing Enter and providing your password. Use the arrow keys to locate the line starting with GRUB_CMDLINE_LINUX_DEFAULT. You need to append the ASPM override command inside the quotation marks. Modify the line so it includes pcie_aspm=off (e.g., GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=off"). This completely disables Active State Power Management at the hardware level. Press Ctrl+O then Enter to save, and Ctrl+X to exit nano. You must apply this change by running sudo update-grub. After you reboot your machine, the kernel will provide constant, uninterrupted power to all PCI Express lanes, ensuring maximum performance at the cost of higher power consumption.