Bug #38873 make_binary_distribution uses overly agressgive gzip compression level
Submitted: 18 Aug 2008 19:25 Modified: 28 Sep 2010 17:40
Reporter: Philip Stoev Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.1 OS:Any
Assigned to: Jonathan Perkin CPU Architecture:Any

[18 Aug 2008 19:25] Philip Stoev
Description:
make_binary_distribution uses gzip -9 which takes 5 times the CPU time to produce a tar.gz that is only 1% smaller v.s. the default gzip -6. This slow-down is noticeable on slower pushbuild hosts.

How to repeat:
The tar contains mysql 6.0.5 64 bit binary distribution:

[philips@fedora9 build]$ time gzip archive6.tar
real    0m54.962s
user    0m43.991s
sys     0m3.532s
[philips@fedora9 build]$ time gzip -9 archive9.tar
real    4m40.287s
user    4m29.884s
sys     0m2.673s

[philips@fedora9 build]$ ls -la archive*.tar.gz
-rw-rw-r-- 1 philips philips 142768030 2008-08-18 15:32 archive6.tar.gz
-rw-rw-r-- 1 philips philips 141657938 2008-08-18 15:33 archive9.tar.gz

Difference is 1,110,092 bytes

Suggested fix:
Either remove gzip -9 from make_binary_distribution so that the default gzip -6 is used, or override the default for PushBuild.
[28 Sep 2010 17:40] Jonathan Perkin
If this is only for pushbuild, then we have considerably more resources now than in 2008 in PB2, thus I do not think it is worth the change. Besides, we will hopefully eventually move all PB2 builds to release-like format, where we definitely do not want to be increasing the size of end user downloads.

WontFix, unless there are additional concerns I'm unaware of.