Issued the PROBLEM !!!! its not a firefox problem.
Posted: Tue Mar 15, 2005 10:15 pm
hi all and phil,
remember when ive said that firefox cant handle many cameras at high fps ? well, i was wrong. ive did lots of tests in a test system with zm 1.20.1 about comparing performances and other issues....
see -> (http://www.zoneminder.com/forums/viewto ... ht=firefox)
well, ive got some very interesting results and has my answer....
my system is -> amd sempron 2.2, 256 MB memory, 128 MB shared (kernel.shmmax) two bt878 (with 4 input each) capture cards and a Geforce-4 video card. my motherboard is a pcchips with lan/video(disabled in my case) and sound (disabled too) onboard and running 2.4.29.
ive had some problems in the past using montage in firefox. my problem was that when showing the montage with 8 or more cameras, it freezes from time to time... well, now i have my answer about that (and some little others questions).
my capture cards are capturing all the cameras at about 5 FPS, i have these default settings for all the cameras :
ring buffer : 50
warmup frames : 5
pre event buffer : 5
post event buffer : 10
Alarm frame count : 5
image Blend%ge : 10
so, this means that when motion detected, should record one second before, two seconds after, and only consider motion when at least one second of movement has been detected;
well, after configuring the firefox with the well know parameters, ive tried a lot of different configurantions , lets see..
All 8 cameras configured as monitor
-> 98 % of processor idle
All 8 cameras configured as monitor AND with montage in firefox
-> 28 % of processor idle. ABSOLUTELY NO FREEZES, AT 5 FPS.
All 8 cameras configured as record
-> 95 % of processor idle
All 8 cameras configured as record AND with montage in firefox
-> 19 % of processor idle. ABSOLUTELY NO FREEZES, AT 5 FPS.
All 8 cameras configured as modect
-> 90 % of processor idle
NOW, THE STRANGE THINGS HAPPENED !!!!!!!!!
All 8 cameras configured as modect AND with montage in firefox
-> 12 % of processor idle, BUT when have the movement takes the entire screen or a big part of it, i have a delay until the motion stops. for example, if i put my camera into a dark room, in the front of a closed window and suddenly opens it, the images are showed correctly for five frames (one second as configured to 5 fps) then freezes, the processor goes to 0 % idle and after 4 or 5 seconds the montage is ok again and processor at 12 % idle again too. then, closes again the window, same thing happens.
i gues that it shows okay the first five frames from the "huge motion" because ive set Alarm frame count to 5, if i set it to 10, after 10 seconds all freezes....
this all does not happens in monitor or record mode. and DOESNT happens in modect mode with all the 8 cameras if the motion was only a little pixels, about 20 % of total screen.
setting my config down from 8 to 4 cameras, the problem disappear
if i run 8 cameras, even at 2 fps, the same freeze happens, just the same way as in 5 fps.
so its not a firefox problem, its something related to processor usage during motion detect...
but now comes the very strange thing, if i make twice sources of the same camera (like two /dev/video0 (0)) and set one to monitor and one to modect, (so i have 16 monitors, 8 in modect and 8 in monitor) and opens the montage only with the cameras set as monitor function, the problem disappear and cpu usage goes to 20 % idle.... WHAT STRANGE !!!!
so, i really think its not a "low processor" problem, but some problem related on how zoneminder deals when modecting a camera and showing it at same time... as ive said, this doesnt happens in record mode.
Phil, does zoneminder deals different from modect cameras to recorded ones ? (i know there is a lot of differences, but i cant think in nothing that could cause that, it seems to be a programming issue, when you delay the showed image until you finish to record a event)
Even, if its really a processor issue, i would like to know, to buy a powerfull one...
Phil and others zm´s gurus, please take a look at this text and say what do you think about...
Thanks for all
Victor Diago
remember when ive said that firefox cant handle many cameras at high fps ? well, i was wrong. ive did lots of tests in a test system with zm 1.20.1 about comparing performances and other issues....
see -> (http://www.zoneminder.com/forums/viewto ... ht=firefox)
well, ive got some very interesting results and has my answer....
my system is -> amd sempron 2.2, 256 MB memory, 128 MB shared (kernel.shmmax) two bt878 (with 4 input each) capture cards and a Geforce-4 video card. my motherboard is a pcchips with lan/video(disabled in my case) and sound (disabled too) onboard and running 2.4.29.
ive had some problems in the past using montage in firefox. my problem was that when showing the montage with 8 or more cameras, it freezes from time to time... well, now i have my answer about that (and some little others questions).
my capture cards are capturing all the cameras at about 5 FPS, i have these default settings for all the cameras :
ring buffer : 50
warmup frames : 5
pre event buffer : 5
post event buffer : 10
Alarm frame count : 5
image Blend%ge : 10
so, this means that when motion detected, should record one second before, two seconds after, and only consider motion when at least one second of movement has been detected;
well, after configuring the firefox with the well know parameters, ive tried a lot of different configurantions , lets see..
All 8 cameras configured as monitor
-> 98 % of processor idle
All 8 cameras configured as monitor AND with montage in firefox
-> 28 % of processor idle. ABSOLUTELY NO FREEZES, AT 5 FPS.
All 8 cameras configured as record
-> 95 % of processor idle
All 8 cameras configured as record AND with montage in firefox
-> 19 % of processor idle. ABSOLUTELY NO FREEZES, AT 5 FPS.
All 8 cameras configured as modect
-> 90 % of processor idle
NOW, THE STRANGE THINGS HAPPENED !!!!!!!!!
All 8 cameras configured as modect AND with montage in firefox
-> 12 % of processor idle, BUT when have the movement takes the entire screen or a big part of it, i have a delay until the motion stops. for example, if i put my camera into a dark room, in the front of a closed window and suddenly opens it, the images are showed correctly for five frames (one second as configured to 5 fps) then freezes, the processor goes to 0 % idle and after 4 or 5 seconds the montage is ok again and processor at 12 % idle again too. then, closes again the window, same thing happens.
i gues that it shows okay the first five frames from the "huge motion" because ive set Alarm frame count to 5, if i set it to 10, after 10 seconds all freezes....
this all does not happens in monitor or record mode. and DOESNT happens in modect mode with all the 8 cameras if the motion was only a little pixels, about 20 % of total screen.
setting my config down from 8 to 4 cameras, the problem disappear
if i run 8 cameras, even at 2 fps, the same freeze happens, just the same way as in 5 fps.
so its not a firefox problem, its something related to processor usage during motion detect...
but now comes the very strange thing, if i make twice sources of the same camera (like two /dev/video0 (0)) and set one to monitor and one to modect, (so i have 16 monitors, 8 in modect and 8 in monitor) and opens the montage only with the cameras set as monitor function, the problem disappear and cpu usage goes to 20 % idle.... WHAT STRANGE !!!!
so, i really think its not a "low processor" problem, but some problem related on how zoneminder deals when modecting a camera and showing it at same time... as ive said, this doesnt happens in record mode.
Phil, does zoneminder deals different from modect cameras to recorded ones ? (i know there is a lot of differences, but i cant think in nothing that could cause that, it seems to be a programming issue, when you delay the showed image until you finish to record a event)
Even, if its really a processor issue, i would like to know, to buy a powerfull one...
Phil and others zm´s gurus, please take a look at this text and say what do you think about...
Thanks for all
Victor Diago