首页 > 其他 > 详细

网卡多队列

时间:2017-12-15 19:54:38      阅读:538      评论:0      收藏:0      [点我收藏+]

简单命令

推荐使用较新的 Linux 发行版(如 CentOS 7.2)配置网卡多队列。

这里以 CentOS 7.2 为例介绍如何配置网卡多队列,假设是 2 个队列,网卡 interface 名称为 eth0。

查看网卡是否支持多队列。运行命令:ethtool -l eth0。

设置网卡当前使用多队列。运行命令:ethtool -L eth0 combined 2。

对于有多个网卡的用户,可以对多个网卡分别进行设置:

  [root@localhost ~]# ethtool -l eth0
  Channel parameters for eth0:
  Pre-set maximums:
  RX:        0
  TX:        0
  Other:        0
  Combined:    2       # 这一行表示最多支持设置2个队列
  Current hardware settings:
  RX:        0
  TX:        0
  Other:        0
  Combined:    1     #表示当前生效的是1个队列
  [root@localhost ~]# ethtool -L eth0 combined 2    # 设置eth0当前使用2个队列

网卡多队列

原文:http://www.cnblogs.com/muahao/p/8044583.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!