Tests: Introduce conf_proc_count()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 15 Mar 2016 20:13:24 +0000 (16:13 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 15 Mar 2016 20:21:26 +0000 (16:21 -0400)
commit096b5145a53ae99d17f3b05b335d68696c32dd87
tree6479483a59b3fc55c3d2f70a86bfd2f3a3772b7b
parent845de12bc1bee1448b65fc68e13cd55552340732
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.029086 seconds and 4 git commands to generate.