From: Tharushi Jayasekara Date: Fri, 8 Jan 2021 06:03:58 +0000 (+0530) Subject: run: fix maximum number of parallel processes X-Git-Tag: suricata-6.0.4~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66ffe23936733494176f4f93aed074043edb615c;p=thirdparty%2Fsuricata-verify.git run: fix maximum number of parallel processes Unless -j is provided, set the maximum number of processes to 8 if the cpu count exceeds that. --- diff --git a/run.py b/run.py index e5879b821..7afe96495 100755 --- a/run.py +++ b/run.py @@ -882,7 +882,7 @@ def main(): parser = argparse.ArgumentParser(description="Verification test runner.") parser.add_argument("-v", dest="verbose", action="store_true") - parser.add_argument("-j", type=int, default=mp.cpu_count(), + parser.add_argument("-j", type=int, default=min(8, mp.cpu_count()), help="Number of jobs to run") parser.add_argument("--force", dest="force", action="store_true", help="Force running of skipped tests")