moby/pkg/sysinfo
Erik St. Martin 56f77d5ade Implementing support for --cpu-rt-period and --cpu-rt-runtime so that
containers may specify these cgroup values at runtime. This will allow
processes to change their priority to real-time within the container
when CONFIG_RT_GROUP_SCHED is enabled in the kernel. See #22380.

Also added sanity checks for the new --cpu-rt-runtime and --cpu-rt-period
flags to ensure that that the kernel supports these features and that
runtime is not greater than period.

Daemon will support a --cpu-rt-runtime flag to initialize the parent
cgroup on startup, this prevents the administrator from alotting runtime
to docker after each restart.

There are additional checks that could be added but maybe too far? Check
parent cgroups to ensure values are <= parent, inspecting rtprio ulimit
and issuing a warning.

Signed-off-by: Erik St. Martin <alakriti@gmail.com>
2016-10-26 11:33:06 -04:00
..
numcpu.go Fix wrong CPU count after CPU hot-plugging on Windows 2016-06-25 22:20:29 -07:00
numcpu_linux.go Fix s390x build failure by removing golang.org/x/sys 2016-06-30 06:32:32 -07:00
numcpu_windows.go Fix wrong CPU count after CPU hot-plugging on Windows 2016-06-25 22:20:29 -07:00
README.md Add some basic doc for SysInfo 2015-03-26 23:05:07 -04:00
sysinfo.go Implementing support for --cpu-rt-period and --cpu-rt-runtime so that 2016-10-26 11:33:06 -04:00
sysinfo_linux.go Implementing support for --cpu-rt-period and --cpu-rt-runtime so that 2016-10-26 11:33:06 -04:00
sysinfo_linux_test.go cleanup sysinfo package 2015-06-17 20:41:14 -04:00
sysinfo_solaris.go Implementing support for --cpu-rt-period and --cpu-rt-runtime so that 2016-10-26 11:33:06 -04:00
sysinfo_test.go Validate --cpuset-cpus, --cpuset-mems 2015-09-27 16:38:58 +02:00
sysinfo_unix.go make more pkgs support darwin 2016-08-10 22:56:05 +08:00
sysinfo_windows.go make more pkgs support darwin 2016-08-10 22:56:05 +08:00

SysInfo stores information about which features a kernel supports.