LoginSignup
40
35

More than 5 years have passed since last update.

NICのオフロード機能を無効にする

Posted at

NICのオフロード機能(OS側ではなくNIC側でパケットの分割とかを行う機能)を利用しているとバグのせいかままRSTが発生したりしてパケットの再送(tcpだと強制的に3s待たされる)が起こりネットワークで遅延する場合が増えることがある。やっかいなことにデフォルトではこの機能がonになっていることが多いのでそれをoffにする方法。ethtoolコマンドで行える。

  • オフロード機能の状態確認
ethtool -k eth0
  • rx-checksumming 無効
ethtool -K eth0 rx off
  • tx-checksumming 無効
ethtool -K eth0 tx off
  • tcp-segmentation-offload
ethtool -K eth0 tso off
  • generic-receive-offload 無効
ethtool -K eth0 gro off
40
35
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
40
35