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.

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> More stuff here: and here and here's the search link