Starts aptd during startup

Bug #850055 reported by Martin Pitt on 2011-09-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Session Menu
Fix Released
High
Conor Curran
The Ubuntu Boot Speed Project
Undecided
Unassigned
Unity Foundations
High
Conor Curran
indicator-session (Ubuntu)
High
Conor Curran

Bug Description

Some time ago in oneiric, indicator-session started to invoke aptd during startup. aptd is a veeery heavy process, written in python (lots of CPU) and querying the whole apt database (lots of CPU and IO). Supposedly this is used to check whether you have up to date packages.

Compare:
  stock oneiric: http://people.canonical.com/~pitti/bootcharts/daniel-oneiric-20110914.png -> 37 s
  with session indicator disabled: http://people.canonical.com/~pitti/bootcharts/daniel-oneiric-20110914-disable-indicator-session.png -> 24 s

Please observe the large blue "aptd" blob on the first chart.

I recommend to either defer the check for a minute or so, or drop that menu item entirely, as update-notifier already pops up when there are updates available, and the status is also displayed in the control-center and update-manager.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: indicator-session 0.3.5.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-11.17-generic 3.0.4
Uname: Linux 3.0.0-11-generic x86_64
ApportVersion: 1.23-0ubuntu1
Architecture: amd64
Date: Wed Sep 14 16:55:37 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110831)
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: indicator-session
UpgradeStatus: No upgrade log present (probably fresh install)

Martin Pitt (pitti) wrote :
Changed in indicator-session (Ubuntu):
status: New → Triaged
importance: Undecided → High
summary: - Do not start aptd during startup
+ Starts aptd during startup
Changed in ubuntu-boot-speed:
status: New → Confirmed
Conor Curran (cjcurran) wrote :

Going to push it back 60secs before querying for updates.

Changed in indicator-session (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Conor Curran (cjcurran)
Changed in indicator-session:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Conor Curran (cjcurran)
milestone: none → 0.3.5
Changed in unity-foundations:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Conor Curran (cjcurran)
milestone: none → oneiric-beta-2
Conor Curran (cjcurran) on 2011-09-14
Changed in indicator-session:
status: In Progress → Fix Released
Changed in unity-foundations:
status: In Progress → Fix Released
Martin Pitt (pitti) wrote :

indicator-session (0.3.5.1-0ubuntu1) oneiric; urgency=low

  * New upstream release.
    - don't start apt on logging
    - [UIFe] should say "Restart to Complete Updates…" (LP: #850013)

Changed in indicator-session (Ubuntu):
status: In Progress → Fix Released
Changed in ubuntu-boot-speed:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers