You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net/tstun
Josh Bleecher Snyder 965dccd4fc net/tstun: buffer outbound channel
The handoff between tstun.Wrap's Read and poll methods
is one of the per-packet hotspots. It shows up in pprof.

Making outbound buffered increases throughput.

It is hard to measure exactly how much, because the numbers
are highly variable, but I'd estimate it at about 1%,
using the best observed max throughput across three runs.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
3 years ago
..
fake.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
ifstatus_noop.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
ifstatus_windows.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
tun.go net/tstun: add a debug envvar to override tun MTU. 4 years ago
tun_notwindows.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
tun_windows.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
wrap.go net/tstun: buffer outbound channel 3 years ago
wrap_test.go go.mod: update netaddr 4 years ago