Ubuntu consolekit taking up enormous amounts of memory/cpu
I have an older machine that only has a small CPU and a small amount of memory. Ubuntu is designed to run on low resource computers, but It was going into extreme swap situations all the time. I recently go fed up with it, and did two things to help.
The first is I changed the swapiness value, which is the tendency of the server to use swap.
#edit /etc/sysctl.conf
vm.swappiness=0
vm.swappiness=0
The second is that I removed consolekit using:
apt-get remove consolekit
I’ve not fully tested whether the machine will get bogged down again, but the results look good so far.