Files
docker-cli/components/engine/daemon
Yong Tang bde674f465 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>
Upstream-commit: 8b2383f5c1108c590928c0e6c57f1f0aa0dd36f6
Component: engine
2016-06-25 20:48:36 -07:00
..
2016-05-06 16:08:53 -07:00
2016-06-14 07:47:31 -07:00
2016-06-24 12:04:26 -07:00
2016-06-13 22:16:18 -07:00
2016-06-13 22:16:18 -07:00
2016-06-16 07:54:36 -04:00
2016-02-03 10:43:01 -08:00
2016-06-11 13:16:55 -07:00
2016-06-11 19:42:38 +02:00
2016-06-24 12:04:26 -07:00
2016-06-21 15:29:25 +08:00
2016-06-02 19:12:20 -07:00
2016-04-27 11:36:47 +08:00