Created
September 8, 2024 14:33
-
-
Save mokshchadha/c4695e08012536449f006f513fc9e8b1 to your computer and use it in GitHub Desktop.
FreeBSD - sysctl
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 the following flags to your sysctl.conf file | |
# | |
kern.ipc.shmmax=134217728 | |
kern.ipc.shmmin=1 | |
kern.ipc.shmmni=1048576 | |
kern.ipc.shmseg=1024 | |
kern.ipc.shmall=1048576 | |
kern.ipc.somaxconn=32767 | |
kern.maxfiles=1048576 | |
kern.maxvnodes=1048576 | |
kern.maxfilesperproc=8192 | |
kern.ipc.maxsockbuf=134217728 | |
net.inet.tcp.delayed_ack=0 | |
net.inet.ip.forwarding=0 | |
net.inet.icmp.bmcastecho=0 | |
net.inet.tcp.blackhole=2 | |
net.inet.udp.blackhole=1 | |
net.inet.tcp.msl=3000 | |
net.inet.tcp.mssdflt=1460 | |
net.inet.tcp.win_scale_factor=2 | |
net.inet.tcp.sendspace=4194304 | |
net.inet.tcp.recvspace=4194304 | |
net.inet.tcp.autorcvbufmax=134217728 | |
net.inet.tcp.autosndbufmax=134217728 | |
net.inet.ip.portrange.first=32768 | |
net.inet.ip.portrange.last=65535 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To see the changes immediately enter
sudo sysctl -f /etc/sysctl.conf