gvisor/runsc/sandbox
Fabricio Voznika 33b41d8fe9 Report total memory based on limit or host
gVisor was previously reporting the lower of cgroup limit or 2GB as total
memory. This may cause applications to make bad decisions based on amount
of memory available to them when more than 2GB is required.

This change makes the lower of cgroup limit or the host total memory to be
reported inside the sandbox. This also is more inline with docker which always
reports host total memory. Note that reporting cgroup limit is strictly better
than host total memory when there is a limit set.

Fixes #5608

PiperOrigin-RevId: 403241608
2021-10-14 18:42:07 -07:00
..
BUILD Report total memory based on limit or host 2021-10-14 18:42:07 -07:00
memory.go Report total memory based on limit or host 2021-10-14 18:42:07 -07:00
memory_test.go Report total memory based on limit or host 2021-10-14 18:42:07 -07:00
network.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
network_unsafe.go [op] Replace syscall package usage with golang.org/x/sys/unix in runsc/. 2021-03-06 22:07:07 -08:00
sandbox.go Report total memory based on limit or host 2021-10-14 18:42:07 -07:00