码迷,mamicode.com
首页 > 其他好文 > 详细

网卡多队列

时间:2017-12-15 20:10:19      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:命令   for   war   队列   lin   localhost   tool   down   名称   

简单命令

推荐使用较新的 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个队列

网卡多队列

标签:命令   for   war   队列   lin   localhost   tool   down   名称   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!