Bug #38712 tarball binaries from 5.0.67 are much larger than 5.0.51a ones
Submitted: 11 Aug 2008 9:30 Modified: 11 Aug 2008 10:08
Reporter: Anders Henke Email Updates:
Status: Not a Bug Impact on me:
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.0.67 OS:Linux
Assigned to: CPU Architecture:Any

[11 Aug 2008 9:30] Anders Henke
About every binary form 5.0.67 has an unbelievable high increase in disk usage compared to 5.0.51a or other earlier releases. This includes both substantial ones like mysqld, but also about every minor tools like perror and replace.

How to repeat:
Retrieve e.g. the following packages:



Untar them, compare sizes of individual directories or binaries from the "bin" or "lib" directories:

anders@ista:/tmp/mysql$ du -sh *
164M    mysql-5.0.51a-linux-i686-glibc23
269M    mysql-5.0.67-linux-i686-glibc23

anders@ista:/tmp/mysql$ du -shk */bin/      
104184  mysql-5.0.51a-linux-i686-glibc23/bin/
188484  mysql-5.0.67-linux-i686-glibc23/bin/

anders@ista:/tmp/mysql$ du -shk */lib
20052   mysql-5.0.51a-linux-i686-glibc23/lib
38944   mysql-5.0.67-linux-i686-glibc23/lib

anders@ista:/tmp/mysql$ du -shk */bin/perror
1312    mysql-5.0.51a-linux-i686-glibc23/bin/perror
1676    mysql-5.0.67-linux-i686-glibc23/bin/perror

anders@ista:/tmp/mysql$ du -shk */bin/mysqld
7572    mysql-5.0.51a-linux-i686-glibc23/bin/mysqld
23272   mysql-5.0.67-linux-i686-glibc23/bin/mysqld

Suggested fix:
Recompile and repackage on a box which more closely matches the earlier build environment.
[11 Aug 2008 10:08] Jonathan Perkin
Hi!  From the changelog:

  For binary .tar.gz packages, mysqld and other binaries now are compiled with debugging symbols included to enable easier use with a debugger. (Bug#33252)

This results in more disk space used.  However, if you do not need debug symbols and are short on disk space you can use strip(1) to remove the symbols from the binaries.