tailscale/cmd
Andrew Dunham 8d3acc9235 util/sysresources, magicsock: scale DERP buffer based on system memory
This adds the util/sysresources package, which currently only contains a
function to return the total memory size of the current system.

Then, we modify magicsock to scale the number of buffered DERP messages
based on the system's available memory, ensuring that we never use a
value lower than the previous constant of 32.

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Ib763c877de4d0d4ee88869078e7d512f6a3a148d
2023-04-03 17:14:14 -04:00
..
addlicense all: update tools that manage copyright headers 2023-01-27 15:36:29 -08:00
cloner all: update tools that manage copyright headers 2023-01-27 15:36:29 -08:00
containerboot cmd/containerboot,kube: consolidate the two kube clients 2023-03-02 11:36:06 -08:00
derper net/tshttpproxy: don't proxy through ourselves 2023-03-29 17:09:45 -04:00
derpprobe cmd/derpprobe: allow running all probes at the same time 2023-03-20 17:41:37 +00:00
dist release/dist: add forgotten license headers 2023-02-24 22:21:28 +00:00
get-authkey all: replace /kb/ links with /s/ equivalents 2023-03-13 14:21:15 -07:00
gitops-pusher Add support for OAuth tokens #7394 (#7393) 2023-02-27 18:05:24 -08:00
hello all: update copyright and license headers 2023-01-27 15:36:29 -08:00
k8s-operator cmd/k8s-operator: disable HTTP/2 for the auth proxy 2023-03-23 16:46:41 -07:00
mkmanifest cmd/mkmanifest, cmd/tailscale, cmd/tailscaled: remove Windows arm32 resources from OSS 2023-03-01 15:45:12 -07:00
mkpkg all: update copyright and license headers 2023-01-27 15:36:29 -08:00
mkversion version/mkversion: open-source version generation logic 2023-02-18 05:21:05 +00:00
nardump all: update copyright and license headers 2023-01-27 15:36:29 -08:00
netlogfmt all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 2023-02-28 19:00:00 -08:00
nginx-auth tailcfg,all: add and use Node.IsTagged() 2023-03-13 08:44:25 -07:00
pgproxy all: update copyright and license headers 2023-01-27 15:36:29 -08:00
printdep cmd/printdep: print correct toolchain URL 2023-02-11 17:57:36 +00:00
proxy-to-grafana tailcfg,all: add and use Node.IsTagged() 2023-03-13 08:44:25 -07:00
sniproxy sniproxy: add promote-https (#7487) 2023-03-07 11:46:02 -05:00
speedtest all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh-auth-none-demo all: update copyright and license headers 2023-01-27 15:36:29 -08:00
stunc all: update copyright and license headers 2023-01-27 15:36:29 -08:00
sync-containers cmd/sync-containers: update latest and stable tags 2023-02-10 20:47:18 -08:00
tailscale cmd/tailscale/cli: make serve and funnel visible in list (#7737) 2023-04-03 10:09:04 -04:00
tailscaled util/sysresources, magicsock: scale DERP buffer based on system memory 2023-04-03 17:14:14 -04:00
testcontrol all: update copyright and license headers 2023-01-27 15:36:29 -08:00
testwrapper all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tsconnect cmd/tsconnect: allow root directory to be passed in 2023-03-30 16:23:55 -07:00
tsshd all: update copyright and license headers 2023-01-27 15:36:29 -08:00
viewer all: update tools that manage copyright headers 2023-01-27 15:36:29 -08:00