linux NICマルチキューとバインドcpu
799 ワード
1.eth 0 NICの現在の設定を表示する
出力:
Channel parameters for eth0: Pre-set maximums: RX: 0 TX: 0 Other: 1 Combined: 63 Current hardware settings: RX: 0 TX: 0 Other: 1 Combined: 24
2.NICで現在使用されているマルチキューの設定
3.NIC対応の割り込み番号の表示
4.割り込み番号対(例えば24)のcpu親和性の表示
出力:
0001は24番がcpu 0にバインドを中断したことを示す
5.バインド割り込み番号をあるcpuに、以下は24番をcpu 1にバインドする
6.参考: https://www.cnblogs.com/lsgxeva/p/11124762.html https://xixiliguo.github.io/post/multi-queue/ https://www.jianshu.com/p/d82d1dbfc7a2
ethtool -l eth0
出力:
Channel parameters for eth0: Pre-set maximums: RX: 0 TX: 0 Other: 1 Combined: 63 Current hardware settings: RX: 0 TX: 0 Other: 1 Combined: 24
2.NICで現在使用されているマルチキューの設定
ethtool -L eth0 combined N
3.NIC対応の割り込み番号の表示
cat /proc/interrupts
4.割り込み番号対(例えば24)のcpu親和性の表示
cat /proc/irq/24/smp_affinity
出力:
0001は24番がcpu 0にバインドを中断したことを示す
5.バインド割り込み番号をあるcpuに、以下は24番をcpu 1にバインドする
echo 2 > /proc/irq/24/smp_affinity
6.参考: