2008-10-16 07:13:50 |
Mirar |
bug |
|
|
added bug |
2008-10-25 11:53:26 |
James Westby |
title |
console-kit-dae using a lot of cpu |
console-kit-daemon using a lot of cpu |
|
2008-10-25 17:23:05 |
Mirar |
bug |
|
|
added attachment 'console-kit-trace' (strace of console-kit, using 0.07% cpu (hopefully normal)) |
2008-10-29 07:12:43 |
Mirar |
bug |
|
|
added attachment 'strace-trace-4' (strace-trace-4) |
2008-10-30 23:27:41 |
Jeffrey Baker |
bug |
|
|
added attachment 'trace' (60 seconds of strace of console-kit-daemon) |
2008-10-31 07:45:25 |
Mirar |
bug |
|
|
added attachment 'console-kit-strace3' (console-kit-strace3) |
2008-10-31 22:14:31 |
Jeffrey Baker |
bug |
|
|
added attachment 'dbus.out' (output of dbus-monitor --system over 5 minutes.) |
2008-10-31 22:34:36 |
Jeffrey Baker |
bug |
|
|
assigned to consolekit |
2008-10-31 22:42:35 |
Bug Watch Updater |
consolekit: status |
Unknown |
Confirmed |
|
2008-10-31 22:46:10 |
Jeffrey Baker |
consolekit: status |
New |
Confirmed |
|
2008-10-31 22:46:10 |
Jeffrey Baker |
consolekit: statusexplanation |
|
|
|
2008-11-23 16:53:11 |
James Westby |
consolekit: importance |
Undecided |
Medium |
|
2008-11-23 16:54:50 |
James Westby |
bug |
|
|
added attachment '11-unref-dbus-proxy' (11-unref-dbus-proxy) |
2008-11-28 01:12:29 |
HighInBC |
bug |
|
|
added attachment 'cpu-problem.png' (Increasing CPU usage over 11 days due to console-kit-daemon) |
2008-12-03 02:26:48 |
seen |
bug |
|
|
added attachment 'consolekit-strace-1.txt' (strace file) |
2009-01-12 15:16:11 |
ichudov |
bug |
|
|
added attachment 'consolekit-fn.sh' (Bash function to update consolekit) |
2009-01-12 16:25:52 |
James Westby |
bug |
|
|
added attachment 'consolekit-0.3-0ubuntu2.diff' (consolekit-0.3-0ubuntu2.diff) |
2009-01-12 16:26:09 |
James Westby |
bug |
|
|
added subscriber Ubuntu Sponsors for main |
2009-01-27 11:04:39 |
Martin Pitt |
consolekit: status |
New |
Incomplete |
|
2009-01-27 11:04:39 |
Martin Pitt |
consolekit: statusexplanation |
|
Did people experience this on Hardy (8.04) as well, or just in Intrepid (8.10)? |
|
2009-01-27 11:05:06 |
Launchpad Janitor |
consolekit: status |
Confirmed |
Fix Released |
|
2009-01-27 15:01:47 |
Martin Pitt |
consolekit: status |
Incomplete |
Invalid |
|
2009-01-27 15:01:47 |
Martin Pitt |
consolekit: statusexplanation |
Did people experience this on Hardy (8.04) as well, or just in Intrepid (8.10)? |
|
|
2009-01-27 15:02:35 |
Martin Pitt |
consolekit: status |
New |
Confirmed |
|
2009-01-27 15:02:35 |
Martin Pitt |
consolekit: statusexplanation |
|
Approved for SRU, does someone want to drive this? |
|
2009-01-29 00:10:05 |
Sean Covel |
bug |
|
|
added attachment 'gordon.home.com-cpu-month.png' (Munin cpu usage report. You can see the growth and the reboot in the middle) |
2009-02-08 17:55:24 |
vbonline |
bug |
|
|
added attachment 'load_average.png' (Cacti load average, guess when i kill c-k-d) |
2009-02-10 15:07:41 |
James Westby |
description |
Binary package hint: consolekit
Since the last reboot, a strange and to me unknown process, console-kit-dae, has been using up more and more cpu.
Right now it uses on average 10.25% cpu over 5 minutes, steadily and linearly (!) growing in cpu usage and have been using up 7h 36 minutes CPU over 7 days.
This doesn't seem to be quite normal.
intrepid, some week old since last update. |
The use of pam-ck-connector means that consolekit registers a session for every cron or ssh session
started. Registering a session involves creating a dbus proxy. Internally to glib these are stored in a list,
and only removed when unref'd, but the code fails to do that. If many sessions are opened
(high frequency cron for instance) then the list grows in length, and operations that traverse the list take
increasing amounts of time. This can lead to consolekit taking up large amounts of CPU time.
The fix is simply to unref the dbus proxy when we are removing the session. It is then removed from the
internal list and causes no problems. This fix was deployed in jaunty on 2009/01/27.
The patch for Intrepid is available in a later comment.
TEST CASE:
1. With an ssh server installed on the machine and keys set up so you can log in without password run
do while `true`; do ssh localhost echo '$$'; done
and leave it running overnight. It should lead to console-kit-daemon using a high percentage of the CPU.
The regression potential should be low as unrefing something that is no longer used when the session
is being removed should not be a problem.
=== Original Report ===
Binary package hint: consolekit
Since the last reboot, a strange and to me unknown process, console-kit-dae, has been using up more and more cpu.
Right now it uses on average 10.25% cpu over 5 minutes, steadily and linearly (!) growing in cpu usage and have been using up 7h 36 minutes CPU over 7 days.
This doesn't seem to be quite normal.
intrepid, some week old since last update. |
|
2009-02-10 15:19:36 |
James Westby |
bug |
|
|
added attachment 'intrepid.diff' (intrepid.diff) |
2009-02-10 15:19:51 |
James Westby |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2009-02-10 15:48:05 |
Martin Pitt |
consolekit: status |
Confirmed |
Fix Committed |
|
2009-02-10 15:48:05 |
Martin Pitt |
consolekit: statusexplanation |
Approved for SRU, does someone want to drive this? |
|
|
2009-02-12 05:41:36 |
Bug Watch Updater |
consolekit: status |
Confirmed |
Fix Released |
|
2009-02-13 00:53:45 |
Steve Beattie |
bug |
|
|
added subscriber SRU Verification |
2009-02-16 09:43:08 |
Launchpad Janitor |
consolekit: status |
Fix Committed |
Fix Released |
|
2009-06-16 10:55:26 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/karmic/consolekit |
|
2009-06-16 11:02:19 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/intrepid-updates/consolekit |
|
2009-06-16 11:06:41 |
André Cruz |
removed subscriber André Cruz |
|
|
|
2010-09-14 16:46:58 |
Bug Watch Updater |
consolekit: importance |
Unknown |
High |
|
2011-01-13 21:48:21 |
James Westby |
branch unlinked |
lp:~ubuntu-branches/ubuntu/intrepid/consolekit/intrepid-updates |
|
|
2011-01-13 21:49:21 |
James Westby |
branch unlinked |
lp:~ubuntu-branches/ubuntu/karmic/consolekit/karmic |
|
|
2011-01-17 20:24:35 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/consolekit |
|
2011-01-17 20:28:39 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/intrepid-updates/consolekit |
|
2011-01-25 12:04:39 |
Bug Watch Updater |
consolekit: importance |
High |
Unknown |
|
2011-01-25 23:22:32 |
glenstewart |
removed subscriber glenstewart |
|
|
|
2011-02-03 14:42:05 |
Bug Watch Updater |
consolekit: importance |
Unknown |
High |
|
2014-02-24 18:12:07 |
Jonathan Hudson |
removed subscriber Jonathan Hudson |
|
|
|