]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Don't use `nproc --all` for getting cpu number. For example below,
authorAnatoly Pugachev <matorola@gmail.com>
Tue, 24 Sep 2019 15:15:33 +0000 (18:15 +0300)
committerAnatoly Pugachev <matorola@gmail.com>
Tue, 24 Sep 2019 15:15:33 +0000 (18:15 +0300)
commit616f57d949171f6852ee1d7b40f250057a6dd08a
tree1255eb5a15332c7e7f73764b90971e5bffec552a
parent775022bdd7b2bd91eb4833c8f72c5c79ee80fd61
Don't use `nproc --all` for getting cpu number. For example below,
sparc64 is reporting 128 as a total, but only 32 is online. So use only
online cpus for tests parallel runs.

$ nproc
32

$ nproc --all
128

$ lscpu
Architecture:        sparc64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Big Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  8
Core(s) per socket:  4
Socket(s):           1
Model name:          UltraSparc T5 (Niagara5)
Flags:               sun4v

Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
tests/run.sh