Inode Table Usage Spiking Every Morning at 8am

inodemunin

I installed munin on my ubuntu server. It's showing my 'inode table usage' spiking every morning at 8am. It then rapidly curves down and settles over the course of several hours. What might cause this?

enter image description here

I thought it might be something running in /etc/cron.daily but this was set to run at 6a.m. and I've changed it to 4am. The spike remains at 8am. I also enabled cron logging, but can't see anything getting launched at 8a.m.

It's a virtual server hosted by memset. Could it be caused by something happening on the virtual host?

Best Answer

On a default ubuntu/debian set-up, some things will run via 'anacron'. The timing of this can depend on a number of factors, particularly when the machine started up, but on a server machine it will trigger at 7:30 a.m. every morning by default.

This is configured in the file /etc/cron.d/anacron , so a simple solution is to edit that file and and set the configured time to something more convenient (e.g. middle of the night if you are concerned about the tasks impacting day time performance) There is no need to restart anything.

The cron log which I enabled, was in fact showing the initiation of anacron at 7:30. Anacron delays for a little while before doing anything and also presumably queued up several jobs, the result being that one job was starting up at about 8a.m. each day and causing a lot of inode table usage (people have suggested the mlocate db re-index) I don't know that it was causing any performance problems, but it seems healthier now to see it doing this in the middle of the night.

There is some brief documentation specific to ubuntu here: https://help.ubuntu.com/community/CronHowto#How_Anacron_is_Set_Up

...and much more detailed explanation of the interplay between cron and anacron here: https://linuxformat.com//tuxradarchive/content/automate-linux-cron-and-anacron