Hi ilya,

I looked at the RPM contents with rpm -qlp file.rpm and confirmed it on the
filesystem after install ;)
I just tested that from the master branch, but i've seen that there's more
recent work done on the 4.5 branch, so i'll compile, test and report on it
later, after work :)

Rafael

On Mon, Apr 27, 2015 at 6:23 PM, ilya <ilya.mailing.li...@gmail.com> wrote:

> Rafael,
>
> Thanks for pointing this out.
>
> How did you look at the contents of the RPM? did you extract with cpio and
> then analyzed the content?
> Or did you install the RPM (perhaps started the management services and
> then reviewed the directory structure)?
>
> In case of the second instance, cloudstack will modify things in
> systemvm.iso it may use the content from the zip file to modify/make the
> iso. Please confirm what route you've taken..
>
> Regards
> ilya
>
> On 4/26/15 6:55 AM, Rafael Fonseca wrote:
>
>> 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