Minimize RAM usage?

Forum for questions and support relating to the 1.30.x releases only.
Locked
ohliuw
Posts: 4
Joined: Tue Feb 14, 2017 4:34 pm

Minimize RAM usage?

Post by ohliuw »

I am trying to use a system with 2gig of RAM to record (in raw mp4, no conversion, no motion detection) from 5 cameras(3MP @5fps). It works fine for 1 camera, but when I add another one, the memory is not enough as it seems to be using about half a gig per cam.

Is there a way to limit the RAM usage per camera (e.g. to 100 meg)? I just want to capture the entire raw stream without any modifications.

thanks
marcopete87
Posts: 40
Joined: Wed Dec 04, 2013 4:53 pm

Re: Minimize RAM usage?

Post by marcopete87 »

you have to reduce fps, resolution and buffer size.
2GB is too low.
ohliuw
Posts: 4
Joined: Tue Feb 14, 2017 4:34 pm

Re: Minimize RAM usage?

Post by ohliuw »

I don't understand why ZM needs so much RAM just to dump raw stream to the local storage?????

500 meg of ram would hold 4 minutes of 1080p @5fps video ...
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Minimize RAM usage?

Post by iconnor »

Edit your buffer settings. You are probably telling it to allocate 50 buffer frames, when you probably can get by with less than 5.
marcopete87
Posts: 40
Joined: Wed Dec 04, 2013 4:53 pm

Re: Minimize RAM usage?

Post by marcopete87 »

you have to consider os overhead in the calculations.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Minimize RAM usage?

Post by bbunge »

With 2 gig RAM tmpfs uses 1 gig with the other 1 for the os and MySQL. Hi res cameras will use up the tmpfs real quick!
Locked