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/util
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
3 years ago
..
cibuild all: update copyright and license headers 3 years ago
clientmetric all: update copyright and license headers 3 years ago
cloudenv all: update copyright and license headers 3 years ago
cmpver all: update copyright and license headers 3 years ago
codegen util/codegen: add -copyright to control presence of copyright headers 3 years ago
cstruct all: update copyright and license headers 3 years ago
deephash tailcfg: add Node.SelfNodeV4MasqAddrForThisPeer 3 years ago
dirwalk all: use tstest.Replace more 3 years ago
dnsname cmd/tailscale: extend hostname validation (#7678) 3 years ago
goroutines all: update copyright and license headers 3 years ago
groupmember all: update copyright and license headers 3 years ago
hashx all: update copyright and license headers 3 years ago
httpm all: update copyright and license headers 3 years ago
jsonutil all: update copyright and license headers 3 years ago
lineread all: update copyright and license headers 3 years ago
linuxfw util/linuxfw: add build constraints excluding GOARCH=arm 3 years ago
mak all: update copyright and license headers 3 years ago
multierr util/multierr: implement Go 1.20+'s multiple error Unwrap 3 years ago
must all: update copyright and license headers 3 years ago
osshare all: update copyright and license headers 3 years ago
pidowner all: update copyright and license headers 3 years ago
precompress all: update copyright and license headers 3 years ago
quarantine all: update copyright and license headers 3 years ago
racebuild all: update copyright and license headers 3 years ago
ringbuffer util/ringbuffer: move generic ringbuffer from corp repo 3 years ago
set all: update copyright and license headers 3 years ago
singleflight all: update copyright and license headers 3 years ago
slicesx util/slicesx: add package for generic slice functions, use 3 years ago
sysresources util/sysresources, magicsock: scale DERP buffer based on system memory 3 years ago
systemd all: update copyright and license headers 3 years ago
truncate util: add truncate package (#7490) 3 years ago
uniq all: update copyright and license headers 3 years ago
vizerror util/vizerror: add As function to get wrapped Error 3 years ago
winutil all: update copyright and license headers 3 years ago