10

We have a system that's been a bit sluggish. top reports that console-kit-daemon takes anywhere from 18-30% CPU and about 50% memory. There are only two users logged in, one on X and one via ssh.

Any ideas how to resolve this?

Running Debian. uname reports:

Linux bulls5 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux

First few lines of top:

 9456 root      20   0 2006m 1.8g 2020 S   19 50.2   1788:50 console-kit-dae  
 1501 messageb  20   0  425m 397m  796 S    0 10.6 230:20.64 dbus-daemon  
 3799 tomcat6   20   0  932m 450m 7208 S    0 12.0 106:36.35 java 
24383 postgres  20   0 48312 7956 5640 S    0  0.2   0:00.44 postgres 
27239 root      20   0  8672 3092 2544 S    0  0.1   0:00.01 sshd 
27304 root      20   0  8672 3092 2544 S    0  0.1   0:00.01 sshd
5
  • ConsoleKit manages console logins in graphical mode (i.e. with gdm or equivalent), if you don't need it, you can kill easily and free your memory and cpu usage.Sound like you run graphical env... is true? Commented Mar 20, 2013 at 18:55
  • @Mohsen Yes, and unfortunately it's a requirement for the primary user, so I can't just kill ConsoleKit. I was thinking it might be a version issue, but we're pretty close to being completely up to date; I've just run out of ideas to try. Commented Mar 20, 2013 at 19:00
  • Perhaps htop in tree mode (F5) can give more info? Or even pstree -pacs PID ... Commented Mar 20, 2013 at 20:33
  • @Sukminder That displays a list of 63 lines, I'm assuming threads, associated with console-kit. I have a feeling that these threads are getting started and not shut down properly (hence the memory use). Any suggestions as to how to do that other than manually killing them? Commented Mar 20, 2013 at 20:37
  • No. I don't know. Hopefully someone do. Only had a quick peek at bugzilla.redhat.com/show_bug.cgi?id=473547#c44 , bugs.freedesktop.org/show_bug.cgi?id=17720#c17 and the like ... - Perhaps Mr. Poettering has a web-alert on console-kit :P Commented Mar 20, 2013 at 21:12

2 Answers 2

6
  1. Kill the console-kit-daemon process if it's still running.
  2. Remove the file
    /usr/share/dbus-1/system-service/org.freedesktop.ConsoleKit.service
    (or move it to some place where you could restore it, if necessary).
  3. Reboot and you will see that console-kit-daemon no longer automatically starts up.
2

I disabled it by removing the executable's exec permission:

chmod -x /usr/sbin/console-kit-daemon
3
  • You're making the file executable with that flag. Commented Aug 18, 2015 at 14:05
  • 1
    @knutole No, Andreas isn't. His code correctly removes the x bit, according to the man page and tested on my machine. Commented Feb 22, 2016 at 18:45
  • 1
    @GKFX You're right. Commented Feb 23, 2016 at 8:08

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.