Skip to content

Instantly share code, notes, and snippets.

@spikeekips
Forked from snoby/OS X network optimize.txt
Created September 30, 2019 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spikeekips/030c117599986871a4086698fd359649 to your computer and use it in GitHub Desktop.
Save spikeekips/030c117599986871a4086698fd359649 to your computer and use it in GitHub Desktop.
OSX Sierra Network Performance Tweaks
#
# Reboot into recovery mode (cmd +r ) and in the terminal
#
nvram boot-args="serverperfmode=1 ncl=262144"
#reboot
#
# In regular mode
# https://rolande.wordpress.com/2010/12/30/performance-tuning-the-network-stack-on-mac-osx-10-6/
#create the file /etc/sysctl.conf and reboot
kern.ipc.maxsockbuf=16777216
net.inet.tcp.sendspace=1048576
net.inet.tcp.recvspace=1048576
net.inet.tcp.win_scale_factor=8
net.inet.tcp.autorcvbufmax=33554432
net.inet.tcp.autosndbufmax=33554432
net.inet.tcp.mssdflt=1448
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment