This website requires JavaScript.
Explore
Help
Sign In
TheArchive
/
tailscale
Watch
1
Star
0
Fork
0
You've already forked tailscale
mirror of
https://github.com/tailscale/tailscale.git
synced
2025-01-10 01:53:49 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
tailscale
/
go.toolchain.rev
2 lines
41 B
Plaintext
Raw
Normal View
History
Unescape
Escape
syncs: add ShardedInt expvar.Var type ShardedInt provides an int type expvar.Var that supports more efficient writes at high frequencies (one order of magnigude on an M1 Max, much more on NUMA systems). There are two implementations of ShardValue, one that abuses sync.Pool that will work on current public Go versions, and one that takes a dependency on a runtime.TailscaleP function exposed in Tailscale's Go fork. The sync.Pool variant has about 10x the throughput of a single atomic integer on an M1 Max, and the runtime.TailscaleP variant is about 10x faster than the sync.Pool variant. Neither variant have perfect distribution, or perfectly always avoid cross-CPU sharing, as there is no locking or affinity to ensure that the time of yield is on the same core as the time of core biasing, but in the average case the distributions are enough to provide substantially better performance. See golang/go#18802 for a related upstream proposal. Updates tailscale/go#109 Updates tailscale/corp#25450 Signed-off-by: James Tucker <james@tailscale.com>
2024-12-17 12:22:44 -08:00
161c3b79ed91039e65eb148f2547dea6b91e2247
Reference in New Issue
Copy Permalink