Fedora 23 cloud image (and, for that matter, minimal anything) bloat

Matej Stuchlik mstuchli at redhat.com
Tue Sep 22 13:07:43 UTC 2015


----- Original Message -----
> From: "Ville Skyttä" <ville.skytta at iki.fi>
> To: "Development discussions related to Fedora" <devel at lists.fedoraproject.org>
> Sent: Tuesday, September 22, 2015 2:43:33 PM
> Subject: Re: Fedora 23 cloud image (and, for that matter,	minimal anything) bloat
> 
> On Tue, Sep 22, 2015 at 3:32 PM, Matej Stuchlik <mstuchli at redhat.com> wrote:
> > ----- Original Message -----
> >> From: "Ville Skyttä" <ville.skytta at iki.fi>
> >>
> >> Also, be careful with measuring space savings when working with *.pyo.
> >> It is a common case that *.pyc and *.pyo are identical, and when they
> >> are rpmbuild already hardlinks them.
> >
> > That's really interesting, I've had no idea:
> 
> BTW I just had a peek into some Arch Linux Python 3.5 packages, and it
> seems they contain *no* identical *.pyc and corresponding *.opt-1.pyc
> files. This is bad news wrt the hardlinking. I haven't found any
> *.opt-2.pyc files to play with, so I don't know what's the situation
> with them.

And sure enough:

 % rpm2cpio python3-libs-3.4.3-5.fc24.x86_64.rpm | cpio -idmv 2> /dev/null && du -ch usr/ | tail -n1
31M	total

% rpm2cpio python3-libs-3.5.0-1.fc24.x86_64.rpm | cpio -idmv 2> /dev/null && du -ch usr/ | tail -n1
43M	total

That's definitely not great.

> --
> devel mailing list
> devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct


More information about the devel mailing list