Unresponsive for a long time after checking for updates

Bug #1167277 reported by Matthew Paul Thomas
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Sami Jaktholm

Bug Description

update-manager 1:0.185, Ubuntu R

1. Wait until dozens of updates are available.
2. Launch Software Updater.
3. Wait until it finishes checking for updates.

What happens:
* Software Updater is unresponsive for a long time before showing that updates are available. For example, on my MacBook with 303 updated packages available, Software Updater is unresponsive for 3 minutes 45 seconds. (That's almost ¾ second per update!)
* The progress bar is full for the whole period.
* After briefly saying "Finished", the progress text reverts to "Downloading from dl.google.com" for that whole period, which I'm pretty sure isn't true.

<seb128> the computation to sort depends from an app under the app icon seems to be quite slow

What should happen: Any combination of progress bar and progress text should never show the same thing for more than about five seconds at a time.

I can think of several complementary ways to reach that goal:
a. Make the processing of updates faster. It shouldn't take 0.74 seconds per package.
b. Maybe process updates incrementally while the repository indexes are being downloaded. (Drawback: this would involve doing work to process updates that turned out to be trumped by yet-to-be-checked repositories.)
c. If the final processing is still likely to take more than about five seconds, pre-allocate a fraction of the progress bar to that subtask, and add incremental progress text, e.g. "Analyzing available updates (1/303)".

Related branches

Changed in update-manager (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Sami Jaktholm (sjakthol)
Changed in update-manager (Ubuntu):
assignee: nobody → Sami Jaktholm (sjakthol)
status: Confirmed → In Progress
Michael Terry (mterry)
Changed in update-manager (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Sami, thank you so much! I wonder if your fix helps those people experiencing bug 1169543. If you'd like to take a crack at another UI performance bug, have a look at bug 1073728.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.187

---------------
update-manager (1:0.187) saucy; urgency=low

  [ Sami Jaktholm ]
  * Greatly speed up update calculation (LP: #1167277)

  [ Martin Pitt ]
  * Drop unnecessary ubuntu-drivers-common build dependency, to ease
    backporting.

  [ Brian Murray ]
  * Modify phased update percentage to use source packages and not binary
    packages, additionally add a test for this.
  * Remove check for update-notifier auto-launch gsettings key
 -- Brian Murray <email address hidden> Wed, 05 Jun 2013 10:02:51 -0700

Changed in update-manager (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.