On this page I’ll try to keep everything what I’ve learned about NetBSD including some hints and links

Static content

Packages that I compiled for my own needs based on pkgsrc-current. The set of packages get extended all the time based on my needs.

Each folder contains pkg_summary.bz2/xz so can be added into pkgin repository file.

Of course, since I compile packages I have source packages for them as well.

Dynamic news

In future I’ll probably migrate below content to some articles, but for now I’m collecting them there.

Fixing network speed on NetBSD

Issue:

Issue I had a case with was that the transfer inside the LAN was quite okay, worse was the transfer from the Internet. In a comparison of the same hardware, Linux was 5-6 times faster than NetBSD. Checked on both types of my hosts, Raspberry Pi 4 and ThinkCentre M625p. Both of them provide the same result. After searching the web and a brief conversation on the IRC channel regarding NetBSD, I was able to find a solution. My setup:

  • host -> switch -> Fortigate 40F -> pppoe -> internet for IPv4
  • host -> switch -> Fortigate 40F -> gre tunnels over pppoe -> internet for IPv6

Required modification of /etc/sysctl.conf

net.inet.tcp.recvbuf_auto=1
net.inet.tcp.sendbuf_auto=1
net.inet.tcp.sendbuf_max=16777216
net.inet.tcp.recvbuf_max=16777216
net.inet.tcp.init_win=10
net.inet.tcp.init_win_local=10
net.inet.tcp.congctl.selected=cubic
net.inet.tcp.delack_ticks=5

net.inet6.tcp6.recvbuf_auto=1
net.inet6.tcp6.sendbuf_auto=1
net.inet6.tcp6.sendbuf_max=16777216
net.inet6.tcp6.recvbuf_max=16777216
net.inet6.tcp6.init_win=10
net.inet6.tcp6.init_win_local=10
net.inet6.tcp6.congctl.selected=cubic
net.inet6.tcp6.delack_ticks=5

kern.mbuf.nmbclusters=248992
kern.sbmax=2097152
net.inet.tcp.recvspace=524288
net.inet.tcp.recvbuf_inc=131072

net.inet6.tcp6.recvspace=524288
net.inet6.tcp6.recvbuf_inc=131072

net.inet.tcp.sendspace=524288
net.inet.tcp.sendbuf_inc=131072

net.inet6.tcp6.sendspace=524288
net.inet6.tcp6.sendbuf_inc=131072

Result:

More than 800Mbit download from Internet on Raspbery Pi 4 using 1Gbit fibre Internet access. Before modification it was about 60Mbit. No matter that IPv6 or IPv4 was used.