Purge when CPU usage is low

Support and queries relating to all previous versions of ZoneMinder
Locked
gola10
Posts: 150
Joined: Wed Nov 01, 2006 3:16 pm
Location: Panama

Purge when CPU usage is low

Post by gola10 »

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?
Pr0n
Posts: 15
Joined: Fri Sep 18, 2009 10:25 pm

Post by Pr0n »

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
gola10
Posts: 150
Joined: Wed Nov 01, 2006 3:16 pm
Location: Panama

Post by gola10 »

Thanks for this information about cpu limit. I will see if i can use it under Mandriva.
Locked