pkg/sysinfo
Yong Tang 4b5413396a Fix wrong CPU count after CPU hot-plugging
This fix tries to address issues raised in #23768 where the CPU count
is not updated after cpu ho-plugging.

This fix follows the suggestion from #23768 and replace go's `runtime.NumCPU()`
with `sysconf(_SC_NPROCESSORS_ONLN)` so that correct CPU count could
be obtained even after CPU hot-plugging.

This fix is tested manually, as is suggested in #23768.

This fix fixes #23768.

The NumCPU() in Linux is based on @wmark 's implementation.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-06-25 20:48:36 -07:00
..
numcpu.go Fix wrong CPU count after CPU hot-plugging 2016-06-25 20:48:36 -07:00
numcpu_linux.go Fix wrong CPU count after CPU hot-plugging 2016-06-25 20:48:36 -07:00
README.md Add some basic doc for SysInfo 2015-03-26 23:05:07 -04:00
sysinfo.go pids limit support 2016-03-08 07:55:01 -08:00
sysinfo_freebsd.go Fix golint warning on pkg/sysinfo 2015-08-01 18:24:49 +08:00
sysinfo_linux.go *: fix logrus.Warn[f] 2016-06-11 19:42:38 +02:00
sysinfo_linux_test.go cleanup sysinfo package 2015-06-17 20:41:14 -04:00
sysinfo_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
sysinfo_test.go Validate --cpuset-cpus, --cpuset-mems 2015-09-27 16:38:58 +02:00
sysinfo_windows.go Fix golint warning on pkg/sysinfo 2015-08-01 18:24:49 +08:00

SysInfo stores information about which features a kernel supports.