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