ovs-bugtool: Change the default output type.
authorGurucharan Shetty <gshetty@nicira.com>
Thu, 14 Feb 2013 18:55:36 +0000 (10:55 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 14 Feb 2013 22:14:33 +0000 (14:14 -0800)
In my tests, I see that creating a tar.gz takes a lot less
time than creating a tar.bz2. The difference in compressed
size of the debug bundle is not much different when either
of the above is used. So, use tar.gz as the default debug
bundle type.

Test results in my setup:
For an uncompressed debug bundle size of 250MB(95% of it is log files),
bz2 takes 50 seconds whereas gz takes 8 seconds. xz took 90 seconds.
gz, bz2 and xz compressed the debug bundle into 144M, 139M and 131M
respectively.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
utilities/bugtool/ovs-bugtool.in

index ce6e437..94a325b 100755 (executable)
@@ -416,7 +416,7 @@ def main(argv=None):
         return 1
 
     output_file = None
-    output_type = 'tar.bz2'
+    output_type = 'tar.gz'
     output_fd = -1
 
     # Default value for the number of rotated logs.