Tests: Introduce conf_proc_count()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 12 Feb 2016 16:17:18 +0000 (11:17 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 12 Feb 2016 16:17:18 +0000 (11:17 -0500)
commit9e136324e6ac723dd66fcec57d90843ab16eaedf
treefb5a012441666905f721f6ad85a7cce8882a7a82
parent891d74dd9877e2e025943d5d3911c42b81234011
Tests: Introduce conf_proc_count()

Tests are using the nproc utility which return the number of
_available_ CPUs. The distinction between online, available and
configured CPUs is subtle, but important.

The number of "online" CPUs can change at runtime as CPUs are
hot-plugged. This could happen during a test and result in
unexpected results.

The number of "configured" CPUs includes any CPU which may be
offline at the time.

The number of "available" CPUs, which is what is returned by the
nproc utility, may differ from both "online" and "configured"
counts. This is the case in containers which are assigned to a
subset of configured CPUs.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/utils.sh
This page took 0.02837 seconds and 5 git commands to generate.