How to disable interrupt coalescing on Ubunto 22.04 Print

  • 0

  1. Identify the name of the network interface you want to modify by running the following command in a terminal:

    ip link show

    This will display a list of all network interfaces on your system along with their names.

  2. Install ethtool if it's not already installed by running the following command in a terminal:

    sudo apt-get install ethtool
  3. Disable interrupt coalescing on the network interface by running the following command in a terminal, replacing "INTERFACE_NAME" with the name of the interface you want to modify:

    sudo ethtool -C INTERFACE_NAME rx-usecs 0 rx-frames 1

    This will disable interrupt coalescing on the specified network interface.

  4. To make the changes permanent, create a script that runs the ethtool command on boot. Create a new file in the /etc/network/if-up.d/ directory, for example:

    sudo nano /etc/network/if-up.d/disable-coalescing
  5. Add the following content to the file:

    #!/bin/bash if [ "$IFACE" = "INTERFACE_NAME" ]; then ethtool -C INTERFACE_NAME rx-usecs 0 rx-frames 1 fi

    Replace "INTERFACE_NAME" with the actual name of the network interface.

  6. Save the file and make it executable by running the following command:

    sudo chmod +x /etc/network/if-up.d/disable-coalescing
  7. Restart the networking service to apply the changes by running the following command:

    sudo systemctl restart networking

    Alternatively, you can reboot the system to ensure the changes take effect.

Note that some network interfaces may not support interrupt coalescing or may require different settings to disable it. You can check the documentation for your specific NIC to determine the appropriate settings.


Was this answer helpful?

« Back