30.7. 使用 nmcli配置 ethtool 频道设置
ethtool 工具处理基于 IRQ 与相关设备的通信,以管理连接配置文件中的相关频道设置。使用 nmcli 工具在 NetworkManager 连接配置集中配置 ethtool 设置。
流程
显示与网络设备关联的渠道:
# ethtool --show-channels enp1s0 Channel parameters for enp1s0: Pre-set maximums: RX: 4 TX: 3 Other: 10 Combined: 63 Current hardware settings: RX: 1 TX: 1 Other: 1 Combined: 1更新网络接口的渠道设置:
# nmcli connection modify enp1s0 ethtool.channels-rx 4 ethtool.channels-tx 3 ethtools.channels-other 9 ethtool.channels-combined 50重新激活网络配置文件:
# nmcli connection up enp1s0
验证
检查与网络设备关联的更新的渠道设置:
# ethtool --show-channels enp1s0 Channel parameters for enp1s0: Pre-set maximums: RX: 4 TX: 3 Other: 10 Combined: 63 Current hardware settings: RX: 4 TX: 3 Other: 9 Combined: 50