Daemons

Support and queries relating to all previous versions of ZoneMinder
Locked
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Daemons

Post by jameswilson »

Just trying to understand a bit more of how zm works,
If i look at top then my biggest processor users or zma there are 3 of them (for 3 inputs i assume) but 2 are running at 30%ish and the other at 8%. Now i have turned on zmf and am wondering what zma is doing. All cameras are set to record so i assume no analysis for motion is occuring. I am obviously wrong but could someone explain?

Thanks AGain

James
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

In record mode all that zma does is timestamp and encode the images. I think you'll find that 95% of the CPU that zma uses is in libjpeg when re-encoding the images back into jpegs. I'm looking at ways of speeding this up, either with libjpeg-mmx (a bit flaky) or by saving the DCT bits of the decoded jpeg where the images come from netcams.

The differences in load between your processes would normally indiocate different frame rates or image sizes. Is this correct?

Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

NO not differnyt frame rates but i didnt have a camera pugged in as i was just checking loads when maxed out. As soon as i connected a camera to it it came in line with the others. As a side note from the tests i have done so far intel seems to be the way to go when it comes to processor choice as the athlons loose out. Im assuming this is down to raw clock speed as from what i have read cache etc makes little difference to video encoding, the biggest gains seem to be FSB speed. I will test it on my fx53 when i feel like opening it up again.

James
Locked