I has been experiencing database corruption on a installation where most of the time the CPU usage is lower than 0.80. i do have notice that a few times on the day the cpu usage is as high as 2.60. How long? Sometimes up to 5 minutes.
I asume that there is more than one process ran at the same time and that cause a lot of cpu usage which cause that some zoneminder process can not be achieved causing the database corruption.
Is there a log file that register cpu usage and which process is ran and when they are ran?
Could i specify on purge_when_full and other filters and ZM cleaning process that they can be ran according to cpu usage?
Which command could tell me cpu usage so i could include a condition a any script i may plan to run that it is ran only if cpu usage is low?
Purge when CPU usage is low
the fallowing is for ubuntu which I use but linux is linux is linux and commands should be the same if not similar for most distros.
http://ubuntuguide.net/howto-view-and-l ... untu-linux
http://ubuntuguide.net/howto-view-and-l ... untu-linux