From 6ac6f7ab386ba70fef7814572a36b630a6a84f52 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 29 Jul 2011 10:35:02 -0700 Subject: [PATCH] teuthology: convert from bzip2 to gzip. gzip is much, much faster on large log files. With a 7.7GB client log, gzip took 2:45 to compress it to 624MB. bzip2 took 34:38 to compress it to 366MB. For our purposes the space savings are not worth the time loss. Signed-off-by: Greg Farnum --- teuthology/task/ceph.py | 3 +-- teuthology/task/internal.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index a4b4c2f817e77..2ba2418894a93 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -49,8 +49,7 @@ def ceph_log(ctx, config): '-0', '--no-run-if-empty', '--', - 'bzip2', - '-9', + 'gzip', '--', ], wait=False, diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index b44e4d293d78b..3391a6d0aa029 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -335,8 +335,7 @@ kern.* -/tmp/cephtest/archive/syslog/kern.log;RSYSLOG_FileFormat '-0', '--no-run-if-empty', '--', - 'bzip2', - '-9', + 'gzip', '--', ], wait=False, -- 2.39.5