有人能告诉我,我运行哪个命令来确定我的10GNIC是在单个RX队列模式还是多队列模式下运行的?根据cat /proc/interrupts,它看起来只有一个RX/TX队列
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如果它在单队列模式下运行,我将如何启用多队列?
发布于 2016-04-26 03:54:33
ethtool -l <interface>将显示与接口相关联的队列的状态,如果接口的驱动程序支持这种情况的话。在ethtool中,多队列由“通道”表示。
如果你看到伦理工具的反应,比如:
homeserver-02 ~ # ethtool -l enp4s0
Channel parameters for enp4s0:
Cannot get device channel parameters
: Operation not supported
homeserver-02 ~ #那么NIC驱动程序就不支持多队列。如果您认为应该,确保您使用的NIC最匹配的驱动程序,升级到最新的稳定内核,看看该功能是否已启用,并检查是否有特殊的固件要求为NIC。
此外,https://blog.cloudflare.com/how-to-achieve-low-latency/编写者提供的更多信息对于低延迟的10 of以太网优化可能很有用。
$ man ethtool # for reference on -l and -L干杯!希望这能帮上忙。
发布于 2016-04-25 15:45:32
https://www.kernel.org/doc/Documentation/networking/multiqueue.txt的文档有许多有用的概念,并使用tc命令操作可用的多队列参数。在不知道你的意图的情况下,很难给出一个具体的答案,但是这些信息应该会让你指向正确的方向。
发布于 2019-05-23 17:10:05
您可以看到有多少队列可用:ethtool -S [interface]
如果启用了多个队列,它们将出现。此外,还可以使用watch命令监视rx (tx)队列上的通信量:
watch -d -n 2 "ethool -S [interface] | grep rx | grep packets | column
对于筛选队列,请使用:tc qdisc show dev [interface]
如果您有ADq或DCB队列,它们将出现在这里。
https://serverfault.com/questions/772380
复制相似问题