diff options
author | Pedro Tammela <[email protected]> | 2023-11-17 14:12:03 -0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-11-20 18:06:35 -0800 |
commit | 025de7b6a6dd44e78d0d45b4f3b4f104ed54b0fd (patch) | |
tree | 173a6ff69a0b9699ae629d855ea7fc76b61148d6 | |
parent | b1711d4310c24f6f668e2282e827434f9473c8bd (diff) |
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Acked-by: Jamal Hadi Salim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
-rwxr-xr-x | tools/testing/selftests/tc-testing/tdc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py index a6718192aff3..f764b43f112b 100755 --- a/tools/testing/selftests/tc-testing/tdc.py +++ b/tools/testing/selftests/tc-testing/tdc.py @@ -1017,6 +1017,7 @@ def main(): parser = pm.call_add_args(parser) (args, remaining) = parser.parse_known_args() args.NAMES = NAMES + args.mp = min(args.mp, 4) pm.set_args(args) check_default_settings(args, remaining, pm) if args.verbose > 2: |