libnxz / power-gzip

POWER NX zlib compliant library
23 stars 18 forks source link

Dynamically define number of threads for test #176

Closed mscastanho closed 2 years ago

mscastanho commented 2 years ago

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.