]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology/misc: parallelize gzip
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 21 Mar 2023 14:36:09 +0000 (10:36 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 28 Mar 2023 15:08:14 +0000 (11:08 -0400)
Our machines have lots of cores, use them!

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
teuthology/misc.py

index 6c71419b8f362ac12a0bfa5471d74e3e50231195..c04d4d59712ddf070d1cf0c7a25eba05226ca336 100644 (file)
@@ -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,
         ),
     )