#!/sbin/sysctl -f # # $NetBSD: sysctl.conf,v 1.8 2011/09/25 21:47:22 christos Exp $ # # sysctl(8) variables to set at boot time. # Default on panic: dump core and reboot. See savecore(8) for information. # Switch this to 1 if you want to enter the kernel debugger on crashes # instead. See ddb(4) for an introduction and also try the "help" command # at the db> prompt. # If you understand the implication and want to change the behaviour before # /etc/rc.d/sysctl is run, use the kernel option DDB_ONPANIC, see options(4). ddb.onpanic?=0 # Default core name template: #kern.defcorename=%n.core # Number of kernel threads to use for NFS client #vfs.nfs.iothreads=4 # Default tty/pty character queue sizes. Should be bumped to 32K or so if # used in networking (ppp/pppoe) kern.tty.qsize=2048 # https://mail-index.netbsd.org/source-changes/2020/11/12/msg124114.html kern.maxfiles=32768 # Do not prevent socket buffer autoscaling kern.sofixedbuf=0 # http://gnats.netbsd.org/55800 net.inet.tcp.sack.enable=0 # Increase the size of the ephemeral port range net.inet.ip.anonportmin=33792 net.inet.ip.anonportmax=62463 net.inet6.ip6.anonportmin=33792 net.inet6.ip6.anonportmax=62463 # Use a large window that grows quickly # - RFC 6928 permits the extension of the initial window size to 10 segments. # - By default NetBSD uses 4 segments as specified in RFC 3390. net.inet.tcp.init_win=10 net.inet.tcp.init_win_local=10 net.inet.tcp.recvbuf_max=16777216 net.inet.tcp.recvbuf_inc=786432 net.inet.tcp.sendbuf_max=16777216 net.inet.tcp.sendbuf_inc=786432 kern.sbmax=67108864 # Increase IP queue length (check net.inet.ip.ifq.drops for drops) net.inet.ip.ifq.maxlen=1024 # Disable ECN net.inet.tcp.ecn.enable=0 net.inet.ipsec.ecn=0