gvisor/runsc/specutils
Fabricio Voznika c47f8afe23 Fix failure setting OOM score adjustment
When OOM score adjustment needs to be set, all the containers need to be
loaded to find all containers that belong to the sandbox. However, each
load signals the container to ensure it is still alive. OOM score
adjustment is set during creation and deletion of every container, generating
a flood of signals to all containers. The fix removes the signal check
when it's not needed.

There is also a race fetching OOM score adjustment value from the parent when
the sandbox exits at the same  time (the time it took to signal containers above
made this window quite large). The fix is to store the original value
in the sandbox state file and use it when the value needs to be restored.

Also add more logging and made the existing ones more consistent to help with
debugging.

PiperOrigin-RevId: 340940799
2020-11-05 15:36:20 -08:00
..
seccomp fix seccomp test for ARM64 2020-09-25 14:49:13 +08:00
BUILD Let flags be overriden from OCI annotations 2020-09-01 11:12:19 -07:00
cri.go Merge pull request #1046 from tomlanyon:crio 2019-10-22 17:05:04 -07:00
fs.go Fix various spelling issues in the documentation 2019-06-27 14:25:50 -07:00
namespace.go More runsc changes for VFS2 2020-06-01 21:32:09 -07:00
specutils.go Fix failure setting OOM score adjustment 2020-11-05 15:36:20 -08:00
specutils_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00