Skip to content

Instantly share code, notes, and snippets.

@fbion
Forked from snoby/OS X network optimize.txt
Created March 5, 2020 11:05
Show Gist options
  • Save fbion/893fe8d6fb612fab6585e72b8dfd2905 to your computer and use it in GitHub Desktop.
Save fbion/893fe8d6fb612fab6585e72b8dfd2905 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