Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

csujedihy commented Aug 3, 2017

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
You can’t perform that action at this time.