For some reason this code chose not to use information already fetched, and call cgroups.FindCgroupMountpoint() instead. This is not a cheap call, as it has to parse the whole nine yards of /proc/self/mountinfo, and the info it tries to get (whether the pids controller is present) is already available from cgMounts map. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> |
||
|---|---|---|
| .. | ||
| README.md | ||
| numcpu.go | ||
| numcpu_linux.go | ||
| numcpu_windows.go | ||
| sysinfo.go | ||
| sysinfo_linux.go | ||
| sysinfo_linux_test.go | ||
| sysinfo_solaris.go | ||
| sysinfo_test.go | ||
| sysinfo_unix.go | ||
| sysinfo_windows.go | ||
README.md
SysInfo stores information about which features a kernel supports.