[Bug 1627190] Re: livecd-rootfs: .pyc files stripped from desktop ISO livefs, makes python startup slower

Iain Lane iain at orangesquash.org.uk
Fri Sep 30 13:22:22 UTC 2016


On Thu, Sep 29, 2016 at 05:00:28PM -0000, Steve Langasek wrote:
> On Thu, Sep 29, 2016 at 04:44:00PM -0000, Iain Lane wrote:
> > root at raleigh:/home/laney/temp/reallytemp# ls livecd.ubuntu.squashfs  -l # new
> > -rw-r--r-- 1 laney laney 1673199616 Sep 29 16:44 livecd.ubuntu.squashfs
> > root at raleigh:/home/laney/temp/reallytemp# ls ubuntu/livecd.ubuntu.squashfs  -l # old
> > -rw-r--r-- 1 laney laney 1654173696 Sep 29 08:56 ubuntu/livecd.ubuntu.squashfs
> 
> > Which is about a 19 MB difference.
> 
> > WDYT?
> 
> It seems fine to me, since Ubuntu Desktop is not near any size limits
> currently.

I think it's okay too.

> 
> > Should we make this call for flavours too?
> 
> They should have the option, and we shouldn't make such a change during
> release freeze.  But I think the evidence is strong that we should reverse
> the default.

I don't really understand this bit. Are you saying that we should *not*
change this for Yakkety for Ubuntu Desktop?

What I propose to do (now or next cycle, as decided) is make .pyc
stripping opt-in.

If this cycle, then opt every flavour except Ubuntu Desktop and the ones
already excluded in and mail announcing the change to give flavours a
chance to switch too.

At the start of next cycle, opt every flavour out and give the chance to
opt opt back in. If there are no takers, then we can delete the code
altogether.

Cheers,

-- 
Iain Lane                                  [ iain at orangesquash.org.uk ]
Debian Developer                                   [ laney at debian.org ]
Ubuntu Developer                                   [ laney at ubuntu.com ]

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1627190

Title:
  livecd-rootfs: .pyc files stripped from desktop ISO livefs, makes
  python startup slower

Status in livecd-rootfs package in Ubuntu:
  New

Bug description:
  It seems we've had code in livecd-rootfs for roughly forever to strip
  .pyc files out of the squashfs included on desktop images.  There is
  an override to skip this for server and cloud images, but we
  discovered this recently because the missing .pyc files on ubuntu-core
  images causes very long start-up times for python apps on some armhf
  systems.

  So the question is, is this still a sensible optimization on Ubuntu
  Desktop images?  It was done at a time when space was tight; that's
  much less of a concern now than it was.

  If this does still make sense for Desktop, we should probably at least
  invert the logic to make this opt-in rather than opt-out so that new
  image types on ARM don't get caught out with the problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1627190/+subscriptions



More information about the foundations-bugs mailing list