任何人都可以告诉我什么命令我运行,以确定如果我的10G网卡运行在单RX-TX队列模式或multiqueue? 它看起来像根据cat /proc/interrupts只有1个RX / TX队列
root@vwsl-sec-ids01: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
如果它在单队列模式下运行,我将如何启用多队列?
ethtool -l <interface>
将显示与接口关联的队列的状态,如果该接口的驱动程序支持这样的事情。 在ethtool土地,multiqueue由“渠道”指示。
如果你看到ethtool的反应如下:
homeserver-02 ~ # ethtool -l enp4s0 Channel parameters for enp4s0: Cannot get device channel parameters : Operation not supported homeserver-02 ~ #
那么你的网卡驱动不支持multiqueue。 如果您认为它应该 ,请确保您的网卡使用的是最匹配的驱动程序,升级到最新的稳定内核以查看该function是否已启用,并检查是否有特殊的固件要求。
此外,来自https://blog.cloudflare.com/how-to-achieve-low-latency/的作者的更多信息可能对于低延迟的10Gb以太网调优非常有用。
$ man ethtool # for reference on -l and -L
干杯! 希望有所帮助。
https://www.kernel.org/doc/Documentation/networking/multiqueue.txt中的文档有许多有用的概念,并使用tc命令来处理可用的多队列参数。 不知道你的意图,很难给出具体的答案,但这个信息应该让你指出正确的方向。