gvisor/pkg/sentry/usage
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 [op] Replace syscall package usage with golang.org/x/sys/unix in pkg/. 2021-03-03 10:25:58 -08:00
cpu.go
io.go
memory.go Report total memory based on limit or host 2021-10-14 18:42:07 -07:00
memory_unsafe.go Use memutil.MapFile for the memory accounting page. 2021-06-23 17:03:58 -07:00
usage.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00