Skip to content

Instantly share code, notes, and snippets.

@Zillionx
Last active November 21, 2017 03:48
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Zillionx/a5d3a0a2cf4da8637861 to your computer and use it in GitHub Desktop.
Save Zillionx/a5d3a0a2cf4da8637861 to your computer and use it in GitHub Desktop.
OSX - Tuning the Network Stack TCP
## Quick fix for slow internet after update to OSX 10.11 "El Capitan"
## Changes are not permanent, just restart your mac if it doesn't work.
## write config
sudo su -
sysctl -w net.inet.tcp.doautorcvbuf=0
sysctl -w net.inet.tcp.doautosndbuf=0
sysctl -w net.inet.tcp.win_scale_factor=0
# net.inet.tcp.recvspace=1048576
# net.inet.tcp.sendspace=131072
## optional setup
# sysctl -w net.inet.tcp.recvspace=1048576
# sysctl -w net.inet.tcp.sendspace=131072
## read config
sysctl net.inet.tcp.doautorcvbuf
sysctl net.inet.tcp.doautosndbuf
sysctl net.inet.tcp.win_scale_factor
sysctl net.inet.tcp.recvspace
sysctl net.inet.tcp.sendspace
@csujedihy
Copy link

it will only slow down your network speed due to shallow buffer.

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