containerd/sys
Simon Kaegi da2fd657ab Add bounds on max oom_score_adj value for AdjustOOMScore
oom_score_adj must be in the range -1000 to 1000. In AdjustOOMScore if containerd's score is already at the maximum value we should set that value for the shim instead of trying to set 1001 which is invalid.

Signed-off-by: Simon Kaegi <simon_kaegi@ca.ibm.com>
2020-12-14 15:09:24 -05:00
..
reaper Integrate sys.SetSubreaper, sys.GetSubreaper in sys/reaper package 2020-05-04 08:44:02 +02:00
env.go Don't fail on setting -ve oom score when rootless 2018-05-04 17:06:01 +01:00
epoll.go sys: deprecate EpollCreate1, EpollCtl, EpollWait 2020-03-09 13:15:07 +01:00
fds.go Licence header added 2018-02-19 10:32:26 +09:00
filesys_unix.go Windows:Create root/state with ACL 2019-03-21 18:47:34 -07:00
filesys_windows.go Partial revert of sys: windows: use golang.org/x/sys/windows 2020-03-09 16:01:09 +01:00
filesys.go Move isFifo from process/io to sys/ and make public 2020-03-25 10:44:17 -04:00
mount_linux_test.go Replace errors.Cause() with errors.Is() 2020-05-08 14:36:45 +02:00
mount_linux.go sys/mount_linux: use pipe for communicating mount result 2020-04-09 09:50:41 +10:00
oom_unix_test.go Allow oom adj test to run in environments with a score 2020-11-19 08:43:32 -05:00
oom_unix.go Add bounds on max oom_score_adj value for AdjustOOMScore 2020-12-14 15:09:24 -05:00
oom_windows.go Add bounds on max oom_score_adj value for AdjustOOMScore 2020-12-14 15:09:24 -05:00
socket_unix.go sys: mkdirAs: do chown if dir already exists 2019-12-18 14:19:19 +09:00
socket_windows.go Licence header added 2018-02-19 10:32:26 +09:00
stat_bsd.go Add support for NetBSD 2020-09-22 20:03:50 +02:00
stat_unix.go Licence header added 2018-02-19 10:32:26 +09:00
subprocess_unsafe_linux.go Support >= 128 layers in overlayfs snapshots 2018-08-07 10:59:36 +08:00
subprocess_unsafe_linux.s Support >= 128 layers in overlayfs snapshots 2018-08-07 10:59:36 +08:00
userns_linux.go sys: RunningInUserNS(): use sync.Once 2020-05-04 18:57:02 +02:00
userns_unsupported.go Remove remaining uses of libcontainer/system package 2020-05-04 18:56:57 +02:00