Skip to content

Commit 025de7b

Browse files
tammelakuba-moo
authored andcommitted
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]>
1 parent b1711d4 commit 025de7b

File tree

1 file changed

+1
-0
lines changed
  • tools/testing/selftests/tc-testing

1 file changed

+1
-0
lines changed

tools/testing/selftests/tc-testing/tdc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,7 @@ def main():
10171017
parser = pm.call_add_args(parser)
10181018
(args, remaining) = parser.parse_known_args()
10191019
args.NAMES = NAMES
1020+
args.mp = min(args.mp, 4)
10201021
pm.set_args(args)
10211022
check_default_settings(args, remaining, pm)
10221023
if args.verbose > 2:

0 commit comments

Comments
 (0)