Skip to content

Instantly share code, notes, and snippets.

@iAnatoly
Created June 15, 2017 12:58
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 iAnatoly/0f3deb75c9a3989d61e351ad6a0f3bba to your computer and use it in GitHub Desktop.
Save iAnatoly/0f3deb75c9a3989d61e351ad6a0f3bba to your computer and use it in GitHub Desktop.
MacOS tweaks
# override DHCP hostname assignment
sudo scutil --set HostName myhostname.domain.local
# tweak network
cat >> /etc/sysctl.conf <<EOF
# OSX default of 3 is not big enough
net.inet.tcp.win_scale_factor=8
# increase OSX TCP autotuning maximums
net.inet.tcp.autorcvbufmax=33554432
net.inet.tcp.autosndbufmax=33554432
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment