支持多队列的网卡

Single-core CPU performance cannot meet the requirement of processing NIC interruptions incurred with the increase of network I/O bandwidth. NIC multi-queue enables multiple CPUs to process ECS NIC interruptions, thereby improving network PPS and I/O performance.

  1. 查看系统是否支持多队列网卡
 lspci -vvv | grep "MSI-X: Enable+ " 

#输出: 说明做大支持64队列
Capabilities: [70] MSI-X: Enable+ Count=64 Masked-

2.查看网卡是否支持多队列

ethtool -l eth0
#输出:

Channel parameters for eth0:
Pre-set maximums:
RX: 0
TX: 0
Other: 1
Combined: 63 #网卡支持64队列
Current hardware settings:
RX: 0
TX: 0
Other: 1
Combined: 8 #目前设置为支持8队列

3.开启多队列

#开启两个队列
[root@localhost ~]# ethtool -L eth0 combined 2

相关资料:
https://support.huaweicloud.com/en-us/ims_faq/ims_faq_0030.html
https://support.telefonicaopencloud.com/en-us/usermanual/ecs/en-us_topic_0058758453.html