减少网卡中断收包产生的CPU消耗

本文旨在减少网卡中断收包带来的CPU消耗。通过调整igb.RSS队列数从8减至5,以及设置rx-usecs参数为450来优化中断调用频率。ethtool工具可用于查看和修改这些设置。rx-usecs值的选择影响中断延迟与CPU利用率,如设置为1000us,可能导致最大500us的延迟。
摘要由CSDN通过智能技术生成

目标:减少网卡中断收包产生的CPU消耗。

优化的措施:

1,  减少收包的队列数:igb.RSS

2,  减少中断调用的次数:rx-usecs

 

Some useful tips:

1,  IGB driver requires the following parameter

igb.RSS

which demonstrates the number of Receive-Side Scaling (RSS)descriptor queues,in the case, it reduces from 8 to 5 which means enable 5 queues。

 

2,  rx-usecs

The parameterto modify are called interrupt coalescing parameters,  It is the number of usecs to wait beforeraising an RX interrupt after a packet has been received, when rx-usesc is setto 0 rx-frames is used.

  You may wish toreduce rx-usecs if latency is more important and you are using a low-latencyswitch or a point-to-point connection. Similarly, you may wish to increaserx-usecs if you are interested in reducing CPU overhead for large transfers.Note that rx-usecs controls both transmit and receive coalescing, In the

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值