29.3. nmcli を使用した ethtool coalesce の設定
NetworkManager を使用して、接続プロファイルに ethtool coalesce を設定できます。
手順
たとえば、
enp1s0接続プロファイルで受信パケットの最大数を128に設定するには、次のコマンドを実行します。nmcli connection modify enp1s0 ethtool.coalesce-rx-frames 128
# nmcli connection modify enp1s0 ethtool.coalesce-rx-frames 128Copy to Clipboard Copied! Toggle word wrap Toggle overflow coalesce 設定を削除するには、null 値に設定します。たとえば、
ethtool.coalesce-rx-frames設定を削除するには、次のコマンドを実行します。nmcli connection modify enp1s0 ethtool.coalesce-rx-frames ""
# nmcli connection modify enp1s0 ethtool.coalesce-rx-frames ""Copy to Clipboard Copied! Toggle word wrap Toggle overflow ネットワークプロファイルを再度アクティブにするには、以下を実行します。
nmcli connection up enp1s0
# nmcli connection up enp1s0Copy to Clipboard Copied! Toggle word wrap Toggle overflow
検証
ethtool -cコマンドを使用して、ネットワークデバイスの現在のオフロード機能を表示します。ethtool -c network_device
# ethtool -c network_deviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow