diff options
author | Fabricio Voznika <fvoznika@google.com> | 2021-10-14 18:35:08 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-14 18:42:07 -0700 |
commit | 33b41d8fe98e7820118e8d42b0cfbec4ca159d62 (patch) | |
tree | 84b6bbdb35f4044e7f0c8210f4f771cf15547d1a /pkg/sentry/vfs/g3doc/inotify.md | |
parent | 1711fd9efe86948198d836faf060e7dea60bae8d (diff) |
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
Diffstat (limited to 'pkg/sentry/vfs/g3doc/inotify.md')
0 files changed, 0 insertions, 0 deletions