| Author |
Message |
|
rogerdpack
Joined: Wed Oct 13, 2010 8:43 pm Posts: 2
|
 uses more CPU than expected?
Hello all.
I noticed some comments of zoneminder, like:
http://ask.slashdot.org/comments.pl?sid ... d=30446182
http://ask.slashdot.org/comments.pl?sid ... d=30451890
http://ask.slashdot.org/comments.pl?sid ... d=30448240
They insinuate that zoneminder needs a some beefy cpu's.
Anybody know why zoneminder might be viewed as cpu expensive, or what's going on here?
Thanks!
-r
|
| Wed Oct 13, 2010 9:06 pm |
|
|
|
 |
|
Flash_
Joined: Wed Jan 11, 2006 1:19 pm Posts: 442
|
Motion detection requires that every frame is compared to the previous one(s) according to one or more user defined zones and rules.
When you have streams doing 20-30 frames per second, colour high quality image sizes of 1280x1024 and multiple cameras - then yes, zoneminder does need some grunt to get its job done.
It does not follow that there is anything from with the design or programming of Zoneminder.
|
| Thu Oct 14, 2010 6:46 am |
|
 |
|
Storm
Joined: Fri Oct 30, 2009 10:58 pm Posts: 4
|
It is not about the motion detection you are asking but you can try to lower the cpu usage of the zm system with the use of libjpeg-turbo library (replacing the default one in linux). There is a big difference with and without the library. There is an info in the zm forum.
http://sourceforge.net/projects/libjpeg-turbo/
|
| Thu Oct 14, 2010 1:36 pm |
|
 |
|
rogerdpack
Joined: Wed Oct 13, 2010 8:43 pm Posts: 2
|
Has anybody done any comparisons of ZM versus motion cpu usage? (that turbo jpg looks awesome, BTW).
-r
|
| Thu Oct 14, 2010 7:32 pm |
|
 |
|
bb99
Joined: Wed Apr 02, 2008 1:04 am Posts: 845
|
|
| Fri Oct 15, 2010 12:02 am |
|
 |
|
Flash_
Joined: Wed Jan 11, 2006 1:19 pm Posts: 442
|
I forgot about the turbolib, thanks storm. Indeed, makes a bit difference and good to see it's getting into at least one distro.
|
| Fri Oct 15, 2010 7:13 am |
|
 |
|
jondecker76
Joined: Wed Sep 29, 2010 1:48 am Posts: 35
|
I also suffer from extremely high CPU usage (> 2.0 with 2 cameras@320x240 - and it increases by more than 1 for each camera I add)
This is on a fresh Ubuntu Server 10.10 install
I have used motion for years, and the same setup could handle 8 cameras under Motion with no real noticable CPU load. I have a co-worker with the exact same results as me.
Other than the turbo jpg library, does anyone have any other suggestions?
|
| Tue Nov 16, 2010 12:48 pm |
|
 |
|
DREMA
Joined: Fri Dec 12, 2008 3:39 am Posts: 162 Location: México
|
Yeah, check the load on your harddrives, with iotop or something, they tend to slow down the system and increase the load.
Also, already said, but really give a try to libjpeg-turbo.
|
| Tue Nov 16, 2010 8:43 pm |
|
 |
|
bctb107
Joined: Fri Jan 14, 2011 11:10 am Posts: 1
|
Ok I have made great progress. It turns out that from the ubuntu zoneminder package, after the install it doesn't set all the permission appropriately and found out that the www-data user wasn't added to the video group so apache or zoneminder didnt have access to /dev/video. Even sifting through the /var/log/messages or /etc/apache2/error.log, it had slipped by. The issue that I am having now is when I setup the cameras using /dev/video0-3 and using all the channels 0 and 1, I am getting duplicates on half the screens. I have swapped many channels and cant get all seven cameras on different screen
_________________ bctb107
|
| Fri Jan 14, 2011 11:12 am |
|
 |
|
Flash_
Joined: Wed Jan 11, 2006 1:19 pm Posts: 442
|
Debian.
I massively reduced system load when going from Ubuntu to debian with just zoneminder running, exact same config.
|
| Sat Jan 15, 2011 7:39 am |
|
 |
|
junior
Joined: Fri Dec 10, 2010 12:52 am Posts: 12 Location: Austria
|
I also have had perfomance troubles by using Ubunut 10.04. The process Xorg was very cpu intensive. CPU usage about 80%! I found out that there are problems by using Intel graphic cards like i845/i855 Now I usea a nVida graphic card and the cpu usage is about 20%
Maby it's the same with Ubunut 10.10
|
| Sat Jan 15, 2011 1:34 pm |
|
|