I've started taking a look at the size of the RPMs and the contents.. and
it's really nasty :)

The cloudstack-common package for instance.. has been over 100MB for at
least a few versions... looking into that.. there's a duplication of files
regarding the systemvm iso...

rpm -qlp cloudstack-common* shows:

/usr/share/cloudstack-common/vms/systemvm.iso
/usr/share/cloudstack-common/vms/systemvm.zip

Zipping this is redundant, since the iso is already compressed.
This gets BOTH files into the RPM and subsequently into the server's
filesystem:

[root@testcloud cloudstack]# ls -lah /usr/share/cloudstack-common/vms/
total 114M
drwxr-xr-x. 2 root root  44 Apr 25 11:27 .
drwxr-xr-x. 5 root root  40 Apr 25 11:27 ..
-rw-r--r--. 1 root root 57M Apr 25 11:18 systemvm.iso
-rw-r--r--. 1 root root 57M Apr 25 11:18 systemvm.zip

waste of space in both the rpm and the filesystem... it should take half
the size. I see no particular benefit on using a zipped version of that
iso.. altough an extra set of files need to be edited to get rid of that
(like patchsystemvm.sh).

This also happens for other packages like cloudstack-management*
A lot of .css and .js files are getting compressed and then including both
versions into the RPM and finally both versions into the filesystem.. you
can check all those duplicate files, for example,
in /usr/share/cloudstack-management/webapps/client/scripts/
This directory alone should save us a few megabytes in the RPM and
Filesystem.

Reply via email to