Last active
April 7, 2023 14:36
-
-
Save bjornbouetsmith/2c8201c9e71ef33c0087010a3cf1e186 to your computer and use it in GitHub Desktop.
FreeNAS 10GBe tuning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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