From d402092682d446605e90acad5a3da7859761873f Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Wed, 23 Aug 2023 18:36:17 +0200 Subject: [PATCH] pipeline: use ncores * 4 for info gathering --- lib/tools/common/armbian_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tools/common/armbian_utils.py b/lib/tools/common/armbian_utils.py index 070eba8d3..fe37b3a01 100755 --- a/lib/tools/common/armbian_utils.py +++ b/lib/tools/common/armbian_utils.py @@ -426,7 +426,7 @@ def gather_json_output_from_armbian(command: str, targets: list[dict]): counter = 0 total = len(targets) # get the number of processor cores on this machine - max_workers = multiprocessing.cpu_count() * 2 # use double the number of cpu cores, that's the sweet spot + max_workers = multiprocessing.cpu_count() * 4 # use four times the number of cpu cores, that's the sweet spot log.info(f"Using {max_workers} workers for parallel processing.") with concurrent.futures.ProcessPoolExecutor(max_workers=max_workers) as executor: every_future = []