Monday, 10 November 2014

How to prevent Ubuntu from running all kinds of processes slowing the computer down at 7:30am

I like to work early in the morning, and have been pretty annoyed when my relatively slow Asus eee seemingly randomly ground almost to a complete halt for a few minutes every morning. I noticed eventually that this happened around 7:30, and I usually had to kill some processes, such as these, to get work done:
/usr/bin/python /usr/sbin/update-apt-xapian-index --update --quiet
/usr/bin/find / -ignore_readdir_race ( -fstype NFS -o -fstype nfs -o -fstype nfs

It turns out that anacron was set up (presumably by default) to run all the daily cron jobs (defined in /etc/cron.daily) at 7:30.

In this file: /etc/cron.d/anacron
change this:
30 7    * * *   root  start -q anacron || :
to this:
30 0    * * *   root  start -q anacron || :

Now the daily cron jobs will run 30 minutes past midnight instead. 

No comments:

Post a Comment