You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
IP Address
Enabling the multiqueue feature for network interfaces
Copy page
Download PDF
Enabling the multiqueue feature for network interfaces
This topic describes how to enable the multiqueue feature for primary and secondary network interfaces associated with ECS instances.​
Applicable scenario​
The multiqueue feature can distribute network interrupts of an instance across multiple CPUs. This improves network performance and response speed. Additionally, the multiqueue feature can mitigate performance degradation due to the bottleneck where one vCPU handles all network interrupts.​
Usage notes​
The network interface multiqueue automatic configuration tool adjust-nic-queue currently supports only the following images:​
​
Operating systems​
Operating system version​
veLinux​
  • veLinux 1.0 64 bit​
  • veLinux 1.0 CentOS compatible version 64 bit​
  • veLinux 2.0 64 bit​
CentOS​
  • CentOS Stream 9 64 bit​
  • CentOS 8.3 64 bit​
  • CentOS 7.x 64 bit​
RHEL​
  • RHEL 9.3 64 bit​
  • RHEL 9.2 64 bit​
  • RHEL 8.8 64 bit​
  • RHEL 7.8 64 bit​
Debian​
  • 64-bit Debian 9​
  • 64-bit Debian 10​
  • Debian 11 64 bit​
Ubuntu​
  • Ubuntu 16.04 64 bit​
  • Ubuntu 18.04 64 bit​
  • Ubuntu 20.04 64 bit​
  • Ubuntu 22.04 64 bit​
  • Ubuntu 24.04 64 bit​
Rocky Linux​
Rocky Linux 8.5 64 bit​
​
Procedure​
Automatically enable multiqueue via the tool​
  1. Log in to an ECS instance. For more information, refer to Logging in to Linux instances.​
  1. Execute the following command to check whether the network interface supports the multiqueue feature and the number of enabled queues.​
Replace eth0 with the name of the target network interface.​
  • ​
    ethtool -l eth0​
    ​
  • For example:​
In the command output, if the Combined parameter values under Pre-set maximums and Current hardware settings​ are the same, it means that the multiqueue is enabled for the network interface. And no further actions are required.​
  1. Execute the following commands to configure the extra-tools software source or download and install the package.​
​
veLinux
CentOS
RHEL
Debian
Ubuntu
Rocky Linux
​
  • veLinux 1.0​
  • ​
    echo 'deb http://mirrors.ivolces.com/extra-tools/velinux/ orion main' >> /etc/apt/sources.list.d/extra-tools.list​
    wget -O - http://mirrors.ivolces.com/extra-tools/velinux/GPG-KEY-system | apt-key add -​
    ​
  • veLinux 2.0​
  • ​
    echo 'deb http://mirrors.ivolces.com/extra-tools/velinux/ lyra main' >> /etc/apt/sources.list.d/extra-tools.list​
    wget -O - http://mirrors.ivolces.com/extra-tools/velinux/GPG-KEY-system | apt-key add -​
    ​
  • veLinux 1.0 CentOS Compatible​
  • ​
    echo -e '[extra-tools]\nname= extra-tools\nbaseurl=http://mirrors.ivolces.com/extra-tools/centos/7/rpms/\nenabled=1\ngpgcheck=0' >> /etc/yum.repos.d/extra-tools.repo​
    ​
​
  1. Execute the following commands to install the network interface multiqueue automatic configuration tool (adjust-nic-queue).​
​
veLinux 1.0 CentOS Compatible/CentOS/Rocky Linux
RHEL
veLinux 1.0 & 2.0/Debian/Ubuntu
​
​
yum makecache​
yum install -y adjust-nic-queue​
​
​
  1. After being installed, adjust-nic-queue automatically enables multiqueue for the primary and secondary network interfaces associated with the instance.​
If you associate a new secondary network interface after installing the tool, restart the instance. This allows the tool to automatically enable the multiqueue feature of the new network interface when the instance restarts.​
  1. Execute the following command to verify whether you enable the multiqueue feature.​
Replace eth0 with the name of the target network interface.​
  • ​
    ethtool -l eth0​
    ​
  • If the output appears as shown below, the multiqueue is enabled for the network interface eth0.​
  • ​​​
Manually enable multiqueue​
  1. Log in to an ECS instance. For more information, refer to Logging in to Linux instances.​
  1. Execute the following command to check whether the network interface supports the multiqueue feature and the number of enabled queues.​
Replace eth0 in the command with the name of the target network interface.​
  • ​
    ethtool -l eth0​
    ​
  • For example:​
In the command output, if the Combined parameter value is the same under Pre-set maximums and Current hardware settings, it means that the multiqueue is enabled for the network interface. And no further actions are required.​
  1. Execute the following command to manually adjust the queue count for the primary or secondary network interface to the maximum value.​
tip​
  • Replace eth0 in the command with the name of the target primary or secondary network interface.​
  • Replace 4 in the command with the maximum number of queues supported by the network interface.​
  • ​
    ethtool -L eth0 combined 4​
    ​
  1. Execute the following command to verify whether you enable the multiqueue feature.​
Replace eth0 with the name of the target network interface.​
  • ​
    ethtool -l eth0​
    ​
  • If the output appears as shown below, the multiqueue is enabled for the network interface eth0.​
  • ​​​
Last updated: 2026.06.18 17:49:50