大网数据广告活动
服务器运维问答

Linux Traffic Control: qdisc mq

· 52CE 我爱测

On my Linux system I see this: # ip link list .... 2: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000 .... What's qdisc mq ? In http://lartc.org/lartc.html I find only information about I…

问题原文

原帖链接 · Zak · CC BY-SA 3.0

On my Linux system I see this:

# ip link list
....
2: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000
....

What's qdisc mq? In http://lartc.org/lartc.html I find only information about IMQ.

In the examples in the howto there are also qdisc noop and qdisc noqueue, but no details about them.

已采纳解答

原帖链接 · the-wabbit · CC BY-SA 4.0

A google search would have easily yielded this article from the vger kernel mailing list:

These patches contain a classful multiqueue ("mq") dummy scheduler to fix a couple of problems with the current multiqueue TC API integration. The changelogs of patch 05 and 07 contain more details.

The mq scheduler does two things:

  • present device TX queues as classes, allowing to attach different qdiscs to them, which are grafted to the TX queues

  • present accumulated statistics of all device queue root qdiscs

Its used by default for multiqueue devices instead of the regular pfifo_fast qdisc, but can also be attached manually to restore multiqueue behaviour after attaching a non-multiqueue (shared) qdisc.

Multiqueue is a feature is otherwise referenced as RSS (Receive-Side-Scaling) which basically is distributing the load of packet processing among several cores. Further reading: https://elixir.bootlin.com/linux/latest/source/Documentation/networking/scaling.rst

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2013-01-31)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。