Very low throughput in *BSDs (but only as a router)
rainmakerraw at icloud.com
Sun Jul 22 18:15:09 CEST 2018
-----BEGIN PGP SIGNED MESSAGE-----
>As far as I understand it, the virtual router OS is based on BSD,
>Are the virtual client OSes that you tested based on Linux?
>If that's the case, then the result is quite expected: There is a fast,
>in-kernel implementation for Linux, but no fast implementation for
>The implementation for BSD is wireguard-go, which hasn't really been
Thanks for your reply.
No, I can achieve (almost) full WAN line rate using *BSD as local
clients' OS too, not just Linux ones. The wireguard-go being in user
space doesn't really cause much damage on powerful hardware. For example
on GhostBSD (in a VM) I got >345Mbps down and 20Mbps up running wg-go on
the same machine.  The throughput problem only arises when I run wg
directly on the router instance.
I think I made some progress however. I need to do some testing on my
main workstation later, though, as I was working on a (lower powered)
laptop today. OpenBSD being limited to a single core for routing (I
believe its pf is now more multi-threaded however) could also be a
factor. I'm going to move my improved pf.conf over to FreeBSD on the
workstation and see if I get better throughput. I'm convinced I've made
a simple mistake in implementing NAT or one of the pf rules at this
point. It doesn't really make sense otherwise.
I'll get there in the end. :) Thanks again for your reply.
-----BEGIN PGP SIGNATURE-----
Version: BCPG C# v18.104.22.168
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rainmakerraw at icloud.com.asc
Size: 1677 bytes
Desc: not available
More information about the WireGuard