You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Network configuration issue
How to enable TCP SACK for Linux instances to improve network performance
Copy page
Download PDF
How to enable TCP SACK for Linux instances to improve network performance
You can enable TCP SACK on a Linux instance to improve the network performance of the instance.​
This section uses the veLinux2.0 version system as an example. The procedure might vary slightly for other versions. Refer to your actual environment for details.​
Procedure​
  1. Log in to the target instance. For operation details, refer to Logging in to Linux instances.​
  1. Run the following command to access the /etc/sysctl.conf file.​
  • ​
    vim /etc/sysctl.conf​
    ​
  1. Enable TCP SACK.​
  • ​
    Does net.ipv4.tcp_sack-related configuration exist?​
    Procedure​
    The configuration related to net.ipv4.tcp_sack exists.​
    1. Press "i" to enter edit mode.​
    1. Modify net.ipv4.tcp_sack = X to net.ipv4.tcp_sack = 1.​
    1. Press Esc to exit the editing mode.​
    1. Type :wq, and press Enter to save and exit.​
    The configuration related to net.ipv4.tcp_sack does not exist.​
    1. Press the "i" key to enter the editing mode.​
    1. Add the following configuration at the bottom of the file.​
    • ​
      net.ipv4.tcp_sack = 1​
      ​
    • The system displays information similar to the following.​
    • ​​​
    1. Press Esc to exit the editing mode.​
    1. Type :wq, and press Enter to save and exit.​
    ​
  1. Execute the following command to make the configuration take effect.​
  • ​
    sysctl -p​
    ​
​
Last updated: 2026.06.18 17:49:52