by mattpallissard · 3y ago · 0 comments
Also, the "slow" things about kernel interfaces (if you aren't doing IO which is nearly always the slowest thing) usually isn't a given syscall, it's the transition from user to kernel space and back. Lots of stuff going on such as flushing cache and buffers due to security concerns these days.
We certainly didn't try to make it click-baity. The point of the title is that people assume that Tailscale was slower than kernel wireguard because the kernel must be intrinsically faster somehow. The point of the blog post is to say, "no, code can run fast on either side... you just have to cross the boundary less." The blog post is all about how we then cross that boundary less, using a less obvious kernel interface.
What's really crazy is that we're talking about userspace and 10Gbit, which shows that CPUs, busses, and the interface protocols have all been scaling well with interface speeds!
Personally I don't ever increase MTU, even if there's a significant performance win, since I prefer to not place our oncall in a situation where they have to debug an outage due to MTU incompability.
The title gave me a reasonably decent idea of what to expect, and the article delivered.