If the TEST_NTHREADS envvar is not provided, try to choose a more
appropriate value depending on the virtualization type. On baremetal we
use a larger number of threads, but on PowerVM we try to limit to the
number of credits available, or a lower number if the the credit
information is not available on sysfs.
If the TEST_NTHREADS envvar is not provided, try to choose a more appropriate value depending on the virtualization type. On baremetal we use a larger number of threads, but on PowerVM we try to limit to the number of credits available, or a lower number if the the credit information is not available on sysfs.