Skip to content

Instantly share code, notes, and snippets.

@woffleloffle
Created February 21, 2019 16:50
Show Gist options
  • Save woffleloffle/f83591083a75417779fb1c272b9a9b13 to your computer and use it in GitHub Desktop.
Save woffleloffle/f83591083a75417779fb1c272b9a9b13 to your computer and use it in GitHub Desktop.
Speed up shared network server on Mac OS X
## Add the contents below to /etc/sysctl.conf
kern.ipc.maxsockbuf=4194304
kern.ipc.somaxconn=2048
kern.ipc.nmbclusters=2048
net.inet.tcp.rfc1323=1
net.inet.tcp.win_scale_factor=4
net.inet.tcp.sockthreshold=16
net.inet.tcp.sendspace=1042560
net.inet.tcp.recvspace=1042560
net.inet.tcp.mssdflt=1448
net.inet.tcp.v6mssdflt=1428
net.inet.tcp.msl=15000
net.inet.tcp.always_keepalive=0
net.inet.tcp.delayed_ack=3
net.inet.tcp.slowstart_flightsize=20
net.inet.tcp.local_slowstart_flightsize=20
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
net.inet.icmp.icmplim=50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment