Files
Alex Valiushko 2e6fcb4f60 tstun,wgengine: open multiple TUN and UDP queues (#22188)
Open up to 16 parallel I/O queues, further capped at GOMAXPROCS.

TS_DEBUG_MAX_QUEUES can be used to override the above. 

Following was captured on a c8gn.24xlarge server peering with 16
c8gn.xlarge clients. Ubuntu 24.04, kernel v6.14, loaded with a single
iperf3 thread.

   TX
       peers  build         Gb/s  vs stock   cores  cores/Gbps
           1  stock         4.48        --    2.35       0.524
              branch        4.48       -0%    2.38       0.531
           4  stock        11.62        --    4.95       0.426
              branch       18.61      +60%    7.93       0.426
          16  stock        11.51        --    5.18       0.450
              branch       22.97     +100%   14.05       0.612

   RX
           1  stock         4.53        --    2.74       0.605
              branch        4.53       -0%    2.70       0.596
           4  stock         9.06        --    4.65       0.513
              branch       18.47     +104%    9.72       0.526
          16  stock         8.63        --    4.81       0.558
              branch       42.87     +397%   28.10       0.655


Updates tailscale/corp#48168
Updates tailscale/corp#37878

Change-Id: Id3db86038a5f08eb8e84a42c6622463ba50e3f3c

Signed-off-by: Alex Valiushko <[email protected]>
2026-11-12 09:08:37 -07:00
..