- Documentation
Elastic Compute Service
Elastic Compute Service
Troubleshooting
Network configuration issue
Recommended network configuration solutions
Network configuration issue
Recommended network configuration solutions
Recommended network configuration solutions
This topic describes how to improve network performance by modifying (increasing) the number of network interface queues. In the following content, CentOS Stream 9 64 bit operating system with the multiqueue feature enabled is used as an example to illustrate modification details.
In the example provided in this topic, the primary network interface of the target instance is named "eth0".
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.
Background
Under the same network PPS and bandwidth conditions, a greater number of queues delivers more significant performance improvements. For example, compared with one queue, using two queues can increase network performance by 50% to 100%.
Prerequisites
The instance type and image support the multiqueue feature. For details, refer to Instance types. Procedure
- Execute the following command to view the multiqueue status of the primary network interface.
- If the returned information contains two Combined entries, this indicates that the multiqueue feature is enabled for the primary network interface. Proceed to customize the number of queues for the primary network interface based on your needs.
Channel parameters for eth0:
Combined: 2 # A maximum of 2 queues are supported for configuration
Current hardware settings:
Combined: 1 # A total of 1 queue is currently active
- Execute the following command to configure two queues for the primary network interface.
sudo ethtool -L eth0 combined 2
-
Last updated: 2026.04.13 16:50:02