Skip to content

Instantly share code, notes, and snippets.

@iMilnb
Last active October 1, 2016 14:45
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 iMilnb/dd668daf48072fb878b85cfc7c60e8fd to your computer and use it in GitHub Desktop.
Save iMilnb/dd668daf48072fb878b85cfc7c60e8fd to your computer and use it in GitHub Desktop.
sysctl kernel parameters for full gigabit throughput on NetBSD
# documentation
# https://calomel.org/freebsd_network_tuning.html
# https://mail-index.netbsd.org/tech-net/2015/08/03/msg005317.html
# http://proj.sunet.se/E2E/tcptune.html
#
# Warning: this is aimed at a **client** setup, a server with
# many connexions could exhaust its memory with values this high
#
kern.sbmax=16777216
net.inet.tcp.recvbuf_auto=1
net.inet.tcp.sendbuf_auto=1
net.inet.tcp.sendbuf_max=16777216
net.inet.tcp.recvbuf_max=16777216
net.inet.tcp.sendspace=3217968
net.inet.tcp.recvspace=3217968
net.inet.tcp.init_win=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment