You are here

Linux Accounts-Daemon 100% CPU Usage Fix

top screenshot

If you run Linux, depending on your preferred distro,you may see 100% CPU usage from the accounts-daemon. It's because the /var/log/wtmp and /var/log/btmp files grow and the service accesses the files regularly. Shrink or remove the files. Removal disable logging. https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1316830

Here's how I do it.

  1. Edit /var/log/logrotate.d/wtmp and /var/logrotate.d/btmp to run daily instead of monthly
  2. Restart logrotate
  3. Edit /var/log/logrotate.conf to run daily instead of weekly

Now, you can forget about accounts-daemon and focus on important things. Here's some background on this issue from Ubuntu 12, yeah that's right, Ubuntu 12. Blog post is from 2012. <meh> https://utcc.utoronto.ca/~cks/space/blog/linux/UbuntuAccountsServiceProb.... More stuff here: https://forums.debian.net/viewtopic.php?t=129556 and here https://news.ycombinator.com/item?id=25054357 and here's the search link https://www.google.com/search?q=accounts+daemon+100%25+usage&oq=accounts....