gvisor/runsc/boot
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
..
filter Implement membarrier(2) commands other than *_SYNC_CORE. 2020-10-06 13:55:16 -07:00
platforms
pprof
BUILD Keep magic constants out of netstack 2020-10-29 12:22:21 -07:00
compat.go Remove legacy bazel configurations. 2020-10-19 16:28:40 -07:00
compat_amd64.go Improve unsupported syscall message 2020-05-18 10:23:22 -07:00
compat_arm64.go Improve unsupported syscall message 2020-05-18 10:23:22 -07:00
compat_test.go Merge pull request #1233 from xiaobo55x:compatLog 2019-12-06 19:41:39 -08:00
controller.go Fix failure setting OOM score adjustment 2020-11-05 15:36:20 -08:00
debug.go
events.go Update canonical repository. 2019-06-13 16:50:15 -07:00
fs.go Merge pull request #4420 from workato:dev-options 2020-10-27 17:22:26 -07:00
fs_test.go Move boot.Config to its own package 2020-08-19 18:37:42 -07:00
limits.go New sync package. 2020-01-09 22:02:24 -08:00
loader.go Fix failure setting OOM score adjustment 2020-11-05 15:36:20 -08:00
loader_test.go Add /dev to mandatory mounts test 2020-10-20 09:20:49 -07:00
network.go Move boot.Config to its own package 2020-08-19 18:37:42 -07:00
strace.go Make flag propagation automatic 2020-08-26 20:24:41 -07:00
vfs.go Support VFS2 save/restore. 2020-10-23 17:48:33 -07:00