selftests: tc-testing: cap parallel tdc to 4 cores
authorPedro Tammela <pctammela@mojatatu.com>
Fri, 17 Nov 2023 17:12:03 +0000 (14:12 -0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 21 Nov 2023 02:06:35 +0000 (18:06 -0800)
commit025de7b6a6dd44e78d0d45b4f3b4f104ed54b0fd
tree173a6ff69a0b9699ae629d855ea7fc76b61148d6
parentb1711d4310c24f6f668e2282e827434f9473c8bd
selftests: tc-testing: cap parallel tdc to 4 cores

We have observed a lot of lock contention and test instability when running with >8 cores.
Enough to actually make the tests run slower than with fewer cores.

Cap the maximum cores of parallel tdc to 4 which showed in testing to
be a reasonable number for efficiency and stability in different kernel
config scenarios.

Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://lore.kernel.org/r/20231117171208.2066136-2-pctammela@mojatatu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/tc-testing/tdc.py