Skip to content

Commit

Permalink
add sysctl
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Jul 24, 2024
1 parent d396c3a commit e50b9f0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dist/sysctl_freebsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
kern.ipc.maxsockbuf=67108864
net.inet.tcp.sendbuf_max=67108864
net.inet.tcp.recvbuf_max=67108864
net.inet.tcp.sendbuf_auto=1
net.inet.tcp.recvbuf_auto=1
net.inet.tcp.sendbuf_inc=16384
net.inet.tcp.functions_default=bbr
net.inet.udp.recvspace=1048576
net.netlink.sendspace=1048576
5 changes: 5 additions & 0 deletions dist/sysctl_linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
net.core.rmem_max=26214400 // BDP - bandwidth delay product
net.core.rmem_default=26214400
net.core.wmem_max=26214400
net.core.wmem_default=26214400
net.core.netdev_max_backlog=2048 // proportional to -rcvwnd

0 comments on commit e50b9f0

Please sign in to comment.