KVM Tuning
For
better performance, turn off TSO/GSO in KVM by following these steps:
- Log in to the KVM host.
-
Check to see if
each of the data interface offloads are on or off.
sudo ethtool -k eno1 | grep offload (Same for eno2 , eno3 and eno4 )
where eno1 is the data interface
[root@localhost ~]# sudo ethtool -k eno1 | grep offload tcp-segmentation-offload: on udp-fragmentation-offload: off generic-segmentation-offload: on generic-receive-offload: on large-receive-offload: off rx-vlan-offload: on tx-vlan-offload: on l2-fwd-offload: off hw-tc-offload: off esp-hw-offload: on esp-tx-csum-hw-offload: on rx-udp_tunnel-port-offload: on
-
If offload is on, turn it off by entering the following command
[root@localhost ~]# ethtool -K eno1 rx off tx off tso off ufo off gso off gro off lro off Cannot change udp-fragmentation-offload [root@localhost ~]# sudo ethtool -k eno1 | grep offload tcp-segmentation-offload: off udp-fragmentation-offload: off generic-segmentation-offload: off generic-receive-offload: off large-receive-offload: off rx-vlan-offload: on tx-vlan-offload: on l2-fwd-offload: off hw-tc-offload: off esp-hw-offload: on esp-tx-csum-hw-offload: on rx-udp_tunnel-port-offload: on [root@localhost ~]#