Skip to content

Instantly share code, notes, and snippets.

@dbremner
Last active June 24, 2019 21:07
Show Gist options
  • Save dbremner/634cdf3a6267c050f6f09597502dd30e to your computer and use it in GitHub Desktop.
Save dbremner/634cdf3a6267c050f6f09597502dd30e to your computer and use it in GitHub Desktop.
disable SACK on Ubuntu 16.04 LTS
#Ubuntu 16.04LTS does not apply network settings after boot.
#See https://bugs.launchpad.net/ubuntu/+source/procps/+bug/50093
#Work around this issue with a cron job to disable SACK
@reboot /bin/sleep 5 && /sbin/sysctl -w net.ipv4.tcp_sack=0
@Vaelatern
Copy link

Question: sysctl.conf should still work, yes?

@dbremner
Copy link
Author

@Vaelatern,
You can edit sysctl.conf but also need to schedule a cron job to run sysctl after a restart.
The 13-year-old open bug for this issue is here.
This is a temporary workaround so it seemed easier to change just the crontab instead of the crontab and sysctl.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment