]> git.baikalelectronics.ru Git - kernel.git/commit
wireguard: selftests: limit parallelism to $(nproc) tests at once
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 4 May 2022 20:29:16 +0000 (22:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 May 2022 00:49:56 +0000 (17:49 -0700)
commit8fa5c5babbf8e47bec0ecced367e4f12131df6b3
tree2afa140baf6df5550e282a27db83f0ce6cc602c7
parent2b8ee978a55563d01850be88831c2730c1f92978
wireguard: selftests: limit parallelism to $(nproc) tests at once

The parallel tests were added to catch queueing issues from multiple
cores. But what happens in reality when testing tons of processes is
that these separate threads wind up fighting with the scheduler, and we
wind up with contention in places we don't care about that decrease the
chances of hitting a bug. So just do a test with the number of CPU
cores, rather than trying to scale up arbitrarily.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/wireguard/netns.sh