Page 1 of 1

Purge when CPU usage is low

Posted: Tue Oct 06, 2009 7:38 pm
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?

Posted: Fri Oct 09, 2009 11:42 pm
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

Posted: Wed Oct 14, 2009 4:19 pm
by gola10
Thanks for this information about cpu limit. I will see if i can use it under Mandriva.