Serious Slowdown
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
ok i will do that is there a quick way to wipe them out or do i have to do it the hardway (ie i need to keep a week and a bit but the rest can go)
I will stop those filters when done, but if they or mysql were a problem wouldnt the ybe showing up in top?
I will stop those filters when done, but if they or mysql were a problem wouldnt the ybe showing up in top?
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Try stopping zmaudit and zmfilter as the first things as they are the elements that browse the db and filesystem. They may not show up in top if they are just waiting for queries to report or something else in the kernel to return.
The quickest way to delete events is via the DB (though you will need zmaudit running to tidy up the files).
Phil
The quickest way to delete events is via the DB (though you will need zmaudit running to tidy up the files).
Phil
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
im looking now at the console of it and i have approx 72000 events listed (all mocord or record events)
load 16.39 Dsik 95%
It is working and not dropping but it has no idle time.
Im gonna try the things you said but i thought id add a little more info
Im gonna build another monster to replace this one (this time amd) to compare and to see if its a machine issue. But im only gonna put 320Gb in this one instead od 1000Gb.
load 16.39 Dsik 95%
It is working and not dropping but it has no idle time.
Im gonna try the things you said but i thought id add a little more info
Im gonna build another monster to replace this one (this time amd) to compare and to see if its a machine issue. But im only gonna put 320Gb in this one instead od 1000Gb.
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
Code: Select all
Command history
> /usr/bin/zmdc.pl stop zmfilter.pl
Can't find process with command of 'zmfilter.pl'
> /usr/bin/zmdc.pl stop /usr/bin/zmfilter.pl
Invalid daemon '/usr/bin/zmfilter.pl' specified at /usr/bin/zmdc.pl line 118.
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
now this..
i is getting scared! Lol
Code: Select all
> /usr/bin/zmdc.pl stop zmaudit.pl
DBI connect('database=zm;host=localhost','viseon',...) failed: Lost connection to MySQL server during query at /usr/bin/zmdc.pl line 66
Can't call method "prepare_cached" on an undefined value at /usr/bin/zmdc.pl line 68.
BEGIN failed--compilation aborted at /usr/bin/zmdc.pl line 76.
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
ok then this is wierd i have put all monitors to none and the zma and zmc stayed in the queue
I stopped and started zm and they disappeared
But my proc is still only 1.8% idle
but the load is down to 4
i am gonna leave the montors to non and see what happens
i thinj its a zmaudit issue as zm filter kept on dleting events and db contains about 2 days worth now but the disks are still at 96%
ill give it 10 mins
I stopped and started zm and they disappeared
But my proc is still only 1.8% idle
but the load is down to 4
i am gonna leave the montors to non and see what happens
i thinj its a zmaudit issue as zm filter kept on dleting events and db contains about 2 days worth now but the disks are still at 96%
ill give it 10 mins
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
should i be worried about this
I have disabled all monitors and deleted most of the events and am now waiting for zmaudit to clean the drives??> iostat -k
Linux 2.6.12-oci4.mdk-i686-up-4GB (localhost) 12/07/05
avg-cpu: %user %nice %sys %iowait %idle
20.63 0.01 15.43 63.58 0.35
Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
hda 85.38 295.11 167.18 1882557 1066488
hdc 70.92 271.25 97.05 1730340 619120
md0 385.05 1113.30 427.62 7101813 2727796
sda 72.38 276.86 96.52 1766132 615684
sdb 72.34 277.30 95.19 1768924 607204
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
im starting to think my problem is very poor disk through put, i have manually deleted a load of events and im waiting for that to complete and accoring to iostat im shifting 1000k per second which has got to be wrong ...surely
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
if i knew what they were id let you know....
What hdparm?
What hdparm?
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
Ok .
man hdparm.
Hdparm is a tool that can configure some lowlevel parameters of the HD, like how much sectors to read at once and set those to get higher performance.
try to look http://www.linuxdevcenter.com/pub/a/lin ... dparm.html
This should help you.
Also, ensure that you are using a good filesystem. i use reiserfs and have no problem at this.
I will also ask you as ive saw that you understand a lot about cameras... i have a color ccd camera with a stabilized power supply that provide 12v and 500ma to only one camera. My image is pretty under television but when i put it in the BTTV capture card, man the image is terrible.
i got lines dancing on the image horizontally and the image is pretty dark. i also have other 3 cameras BW in the same capture card and the image of them is VERY good.
Do you have a clue about what could it be ?
Thanks for now
Victor Diago
man hdparm.
Hdparm is a tool that can configure some lowlevel parameters of the HD, like how much sectors to read at once and set those to get higher performance.
try to look http://www.linuxdevcenter.com/pub/a/lin ... dparm.html
This should help you.
Also, ensure that you are using a good filesystem. i use reiserfs and have no problem at this.
I will also ask you as ive saw that you understand a lot about cameras... i have a color ccd camera with a stabilized power supply that provide 12v and 500ma to only one camera. My image is pretty under television but when i put it in the BTTV capture card, man the image is terrible.
i got lines dancing on the image horizontally and the image is pretty dark. i also have other 3 cameras BW in the same capture card and the image of them is VERY good.
Do you have a clue about what could it be ?
Thanks for now
Victor Diago
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
my first suspect would be the input on the card
also you say the image is dark, id check that it is temrinated correctly ie 75 Ohm and not double terminated somewhere.
But onto the first have you plugged anything else into that port on the card just to test the port. And did you reterminate the coax after removing it from the tv?
also you say the image is dark, id check that it is temrinated correctly ie 75 Ohm and not double terminated somewhere.
But onto the first have you plugged anything else into that port on the card just to test the port. And did you reterminate the coax after removing it from the tv?
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
ok then did the hdparm thing
now then im quite impressed by 92 meg a second but maybe im reading it wrong> hdparm -Tt /dev/md0
/dev/md0:
Timing cached reads: 908 MB in 2.03 seconds = 447.14 MB/sec
Timing buffered disk reads: 276 MB in 3.01 seconds = 91.65 MB/sec
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
all composite cameras must be 'terminated' at both end at 75 Ohms (impedance not resistance)
The camera will already have its 75 ohm termination.
then the last device in the chain should also be terminated, thats why on professional kit you will see looping connections (video in / out ) and a termination switch (usally marked 75 ohm and Hi z for un terminated. If you have 2 devices that are terminated it will seriously mess with the video signal. I think that the capture cards have termination in them (i dont know yet how to turn it off without a soldering iron)
But simply if you have 1 camera going to 1 input on a capture card and no other devices in the way (monitor tv, switcher etc) you should be ok. Double check your bnc is made of correctly but if it worked on your telly id suspect the card
The camera will already have its 75 ohm termination.
then the last device in the chain should also be terminated, thats why on professional kit you will see looping connections (video in / out ) and a termination switch (usally marked 75 ohm and Hi z for un terminated. If you have 2 devices that are terminated it will seriously mess with the video signal. I think that the capture cards have termination in them (i dont know yet how to turn it off without a soldering iron)
But simply if you have 1 camera going to 1 input on a capture card and no other devices in the way (monitor tv, switcher etc) you should be ok. Double check your bnc is made of correctly but if it worked on your telly id suspect the card
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk