← Back to team overview

touch-packages team mailing list archive

[Bug 1385410] Re: hook into system-image updates to precompile policy prior to reboot

 

I'm sorry this was overlooked for so long.

> A. Is it practical to use the device while precompilation is happening
in the background?

It Depends. We have some options in how aggressively we use system
resources, but probably even compiling one-at-a-time with a nice value
will definitely feel like the system is being used. Probably using PIM
functions will be fine, office productivity might show some lags, games
are probably not going to work.

> B. What drawbacks, if any, are there from using the device after
precompilation finishes, but before the device restarts?

I believe no drawbacks at all.

> C. When recompilation is required, what proportion of overall update
installation time, on average, is taken up by (i) the precompilation
(ii) the restart (iii) the flashing (iv) anything else? (Bonus points if
you manage to relate (i) to the number or size of the policies.)

I'm sorry to not have numbers to give you, but my recollection of
anecdotal evidence suggests it can be fifteen minutes or more. My
recollection of reboot times is roughly one minute, and no idea about
flashing.

On my core i7 laptop, apparmor_parser takes 2.2 seconds and 20 megabytes
of memory to compile the evince profile, typically one of the more
expensive desktop and server profiles. I believe it is a fair
approximation of a touch/snappy profile.

I hope this helps.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click-apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1385410

Title:
  hook into system-image updates to precompile policy prior to reboot

Status in Ubuntu UX bugs:
  Incomplete
Status in click-apparmor package in Ubuntu:
  Confirmed
Status in unity8 package in Ubuntu:
  New

Bug description:
  Occasionally users will receive and OTA update that requires apparmor
  policy to be recompiled. Recompiling apparmor policy can take quite a
  bit of time (minutes) depending on how many applications the user has
  installed. While this is only expected to happen on major OTA OS
  upgrades (eg, 14.10 to 15.04), it is possible it could happen at other
  times. This would improve the user experience for developers
  considerably since policy recompiles can be relatively frequent when
  running the development release.

  To improve the user experience, we should detect and recompile
  apparmor profiles prior to reboot but after system-image updates has
  downloaded the new update. This always for the possibility of using a
  progress meter when compiling policy (which we currently cannot).
  Needs design input for when to do it and how the progress meter should
  look.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ux/+bug/1385410/+subscriptions


References