Session logout takes too long
Bug #1227212 reported by
Simon Steinbeiß
This bug affects 9 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Fix Released
|
High
|
James Hunt | ||
upstart (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
This seems to be an issue confirmed across Ubuntu-flavors in Saucy at the moment: logging out of the session takes longer than expected (that is 5+seconds even on fast machines).
It's not clear to me what exactly is going on, what component is the culprit. I started debugging xfce4-session (as I'm a Xubuntu team member) and then dug around lightdm, but without result. Maybe more able people can take a peek at this one...
Related branches
lp:~jamesodhunt/upstart/bug-1227212
- Dimitri John Ledkov: Approve
-
Diff: 568 lines (+321/-34)8 files modifiedChangeLog (+35/-0)
init/event.c (+20/-0)
init/job_process.c (+14/-3)
init/quiesce.c (+176/-23)
init/quiesce.h (+3/-0)
test/test_util_common.c (+24/-5)
test/test_util_common.h (+4/-1)
util/tests/test_initctl.c (+45/-2)
Changed in upstart: | |
status: | New → Confirmed |
Changed in upstart: | |
status: | Triaged → In Progress |
Changed in upstart: | |
status: | In Progress → Fix Committed |
Changed in upstart (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → High |
Changed in upstart: | |
status: | Fix Committed → Fix Released |
Changed in upstart (Ubuntu): | |
assignee: | nobody → artur bryczek (arturbryczek) |
Changed in upstart: | |
assignee: | James Hunt (jamesodhunt) → artur bryczek (arturbryczek) |
Changed in upstart: | |
assignee: | artur bryczek (arturbryczek) → nobody |
assignee: | nobody → James Hunt (jamesodhunt) |
Changed in upstart (Ubuntu): | |
assignee: | artur bryczek (arturbryczek) → nobody |
To post a comment you must log in.
I investigated this issue with bootchart. If you want to do the same, edit /etc/init/ bootchart. conf and find the line where it sleeps for 45 seconds. Increase the sleep so we catch the logout as well as the login (as the comment says "delay 45 seconds to catch the login.")
On the first test, I noticed that gnome-keyring-d and xscreensaver persisted all the way until the end of the logout delay. I emoved those two programs in order to rule them out, and the delay persists. Attachment is the bootchart with those programs removed.
The section of interest is 35 seconds to 42 seconds. I press logout for the first time at 35 seconds. A lot of programs exit immediately. Some persist for a further 6 seconds. Xorg, lightdm, and the session init persist for a further 6 seconds before Xorg restarts and the greeter is displayed at 42 seconds. A total delay of 12 seconds. During this time there is apparently no CPU activity.