美文网首页
2019-06-26

2019-06-26

作者: _爱吃兔子的萝卜_ | 来源:发表于2019-06-26 09:56 被阅读0次

    CPU中断不均衡问题(网卡)

    1、确认是否是网卡中断不均衡,导致某个CPU被打满。

    cat /proc/interrupts

    2、查看当前网卡支持的队列数

    lspci -vvv

    网卡设备属性

    查看Ethernet controller项,如果有MSI-X,Enable+ 并且Count>1,表示该网卡支持多队列,否则不支持,Count=5表示可以有5个队列。

    3、确认中断号

    一般一个队列会对应一个中断号。

    grep eth /proc/interrupts | awk '{print $1, $NF}'

    4、查看中断亲缘性配置「smp_affinity」

    cat /proc/irq/$中断号/smp_affinity

    cat /proc/interrupts|grep eth|awk -F: '{print $1}'|while read irq;do cat /proc/irq/$irq/smp_affinity;done|sort|uniq

    相关文章

      网友评论

          本文标题:2019-06-26

          本文链接:https://www.haomeiwen.com/subject/pcsqcctx.html