Skip to content

Instantly share code, notes, and snippets.

@corifeo
Forked from bjornbouetsmith/etc-sysctl.conf
Created August 20, 2020 22: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 corifeo/d881fc3fcbed3c041950af76155ba856 to your computer and use it in GitHub Desktop.
Save corifeo/d881fc3fcbed3c041950af76155ba856 to your computer and use it in GitHub Desktop.
FreeNAS 10GBe tuning
Add these lines to the file /etc/sysctl.conf
#10GBE tuning
kern.ipc.soacceptqueue=2048
kern.ipc.somaxconn=2048
kern.ipc.maxsockbuf=33554432
net.inet.tcp.recvbuf_inc=2097152 # (default 16384)
net.inet.tcp.recvbuf_max=16777216 # (default 2097152)
net.inet.tcp.recvspace=4194304 # (default 65536)
net.inet.tcp.sendbuf_inc=2097152 # (default 8192)
net.inet.tcp.sendbuf_max=16777216 # (default 2097152)
net.inet.tcp.sendspace=4194304 # (default 32768)
net.inet.tcp.sendbuf_auto=1
net.inet.tcp.recvbuf_auto=1
Add these lines to /boot/loader.conf
net.isr.maxthreads="-1"
net.isr.bindthreads="1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment