From 7571b6be9350410f237e861518fd985efe4a3236 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 21 Mar 2023 10:36:09 -0400 Subject: [PATCH] teuthology/misc: parallelize gzip Our machines have lots of cores, use them! Signed-off-by: Patrick Donnelly --- teuthology/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index 6c71419b8..c04d4d597 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -1367,7 +1367,7 @@ def compress_logs(ctx, remote_dir): run.wait( ctx.cluster.run( args=(f"sudo find {remote_dir} -name *.log -print0 | " - f"sudo xargs -0 --no-run-if-empty -- gzip --"), + f"sudo xargs --max-args=1 --max-procs=0 --verbose -0 --no-run-if-empty -- gzip --"), wait=False, ), ) -- 2.47.3