PolicyKit high memory usage in Linux Mint 17.x – don’t blame it just yet!

Is it RAM and swap usage getting out of control in your Linux Mint box? The buggy-man may actually be policykit NOT, draining your system resources up until no more is available, leaving it unstable or even crashing it all together. Yup, another suspected Ubuntu 14.04 LTS bug that happened not to be Ubuntu’s fault after all…

If you’re a Linux user you expect to move around your system fairly quick when getting work done. Clicking and sitting there just waiting for a window to popup is not precisely what one is used to even in ancient hardware; c’mon it is Linux! – and your ego rises up :)

Anyways, this morning my system wasn’t responding the way it uses to, so I fired System Monitor and noticed an uncommonly high memory and swap usage for an ‘idle’ system. Open up Terminal, run ‘htop’ and bingo!… policykit process was using up a lot of RAM and swap, over 3GB to be precise!

The catch; if you shutdown or reboot your system daily you may not get to see policykit getting out of control after all, but if you run your system for as long as there is power available in the wire or just for a couple days you’ll most likely experience this issue… or so I thought.

It turns out that one of the applet I use (thanks to Are42 for sharing his find) seems to be the real source of the problem; Multi-Core System Monitor that is.


The solution is to simply deactivate  Multi-Core System Monitor applet if you don’t need the fancy resources monitoring in your panel.

But hey, what if you still want that applet enabled as I do? Well, since this applet has not been updated for a while and it doesn’t seem it will get some love any time soon,  a work around may be necessary to keep RAM and swap usage under control. In my case, I created a daily cron to kill policiykit so it restarts daily, forcing RAM usage to stay under control… not the nicest thing but it gets the work done. In Terminal:

sudo sh -c 'echo "#!/bin/bash \n /usr/bin/killall /usr/lib/policykit-1/polkitd" > /etc/cron.daily/kill-polkitd'
sudo chmod +x /etc/cron.daily/kill-polkitd
sudo /etc/cron.daily/kill-polkitd
This work around was also mentioned by bmaupin in launchpad.

Indeed, it was never a policykit issue after all. Cheers!

Related Post

Linux Mint on Macbook White 4,1 (late 2007) Touchp... If you installed Linux Mint 17.2 Rafaela in a Macbook White 4,1 or booted it up from a live DVD or USB stick, you will immediately notice that the...
DNS Security with dnscrypt-proxy for your home net... DNSCrypt to the rescue! DNS is one of the fundamental building blocks of the Internet. It’s used any time you visit a website, send an email, have an ...
Linux Mint 17.2 Rafaela on MacBook 4,1 (late 2007)... So you installed Linux Mint in a Macbook 4,1 (or older version) and found out that the iSight webcam does not work. Hmmm... but you want to use your M...

Leave a Reply