Skip to content

Instantly share code, notes, and snippets.

@bjornbouetsmith
Last active April 7, 2023 14:36
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save bjornbouetsmith/2c8201c9e71ef33c0087010a3cf1e186 to your computer and use it in GitHub Desktop.
Save bjornbouetsmith/2c8201c9e71ef33c0087010a3cf1e186 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