dob*_*bbs 7 nic kernel 10gbethernet interrupts
谁能告诉我我运行什么命令来确定我的 10G 网卡是在单 RX-TX 队列模式还是多队列模式下运行?根据它看起来只有 1 个 RX/TX 队列cat /proc/interrupts
root@hostname:scripts]# cat /proc/interrupts | grep ens1f0
94: 360389979 0 0 0 184 0 330 0 0 0 0 0 0 0 0 0 0 169 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-edge ens1f0-TxRx-0
95: 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-edge ens1f0
Run Code Online (Sandbox Code Playgroud)
如果它在单队列模式下运行,我将如何启用多队列?
Jes*_*man 16
ethtool -l <interface>
Run Code Online (Sandbox Code Playgroud)
将显示与接口关联的队列的状态,如果该接口的驱动程序支持这样的事情。在 ethtool-land 中,多队列由“通道”表示。
如果您看到来自 ethtool 的响应,例如:
homeserver-02 ~ # ethtool -l enp4s0
Channel parameters for enp4s0:
Cannot get device channel parameters
: Operation not supported
homeserver-02 ~ #
Run Code Online (Sandbox Code Playgroud)
那么您的 NIC 驱动程序不支持多队列。如果您认为应该,请确保为您的 NIC 使用最匹配的驱动程序,升级到最新的稳定内核以查看该功能是否已启用,并检查是否对 NIC 有特殊的固件要求。
此外,来自https://blog.cloudflare.com/how-to-achieve-low-latency/的作者的更多信息可能对 10Gb 以太网的低延迟调整有用。
$ man ethtool # for reference on -l and -L
Run Code Online (Sandbox Code Playgroud)
干杯! 希望有帮助。
小智 1
https://www.kernel.org/doc/Documentation/networking/multiqueue.txt上的文档有许多有用的概念,并使用tc命令来操作可用的多队列参数。在不知道您的意图的情况下,很难给出具体的答案,但这些信息应该可以为您指明正确的方向。
| 归档时间: |
|
| 查看次数: |
22552 次 |
| 最近记录: |