SUSE Support

Here When You Need Us

Network performance problems and network connectivity issues with virtual machines.

This document (7017597) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 11
 

Situation

Customer has VMware virtual machines with TCP Segmentation offload (TSO) enabled.  Problems seem to be worse when copying a large amount of data.  If connections are reset it seems to work intermittently.
 
Customer is seeing various communication problems.
Connections sometimes work and sometimes hang or time out.  Network seems to be slow.  Unable to copy large amounts of data.  Analyzing LAN Traces shows packet loss, multiple retransmissions of data, as well as out of sequence packets and duplicate acknowledgments.

Resolution

Disable TSO for virtual NICs
 
You can check if the setting is "on" by running:  ethtool -k eth0 | grep tcp-segmentation-offload
 
You can disable TSO like this;  ethtool -K eth0 tso off
 
These changes need to be added to a script, like /etc/init.d/after.local, so they are run each time the server boots up.

Notice: A lowercase -k is used to see the current setting and an uppercase -K is used to change the setting.

Cause

This is a problem with the virtual drivers supplied by VMware.

Additional Information

Using TSO on physical machine NICs improves performance by reducing the CPU/Kernel overhead for TCP/IP network operations by off loading that to the LAN adapter.  Virtual machines have virtual/software LAN adapters.  The benefit gained is minimized on virtual adapters when compared to actual physical hardware.  When some of the TCP functions are offloaded to the virtual LAN adapter the kernel has more CPU cycles to run when compared to letting the kernel do the TCP segmentation.  Some of the virtual LAN adapters for VMware have problems using TSO.  This causes communication problems.
 
If TSO is enabled on a network interface, that network interface divides larger data chunks into TCP segments.
If TSO is disabled, the CPU performs segmentation for TCP.
On virtual machines the operating systems' network interface is virtual therefore the hardware vs. software advantage is negated.
TSO needs to be disabled on virtual interfaces.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7017597
  • Creation Date: 10-May-2016
  • Modified Date:18-Feb-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.