HDD Storage is increasing Ram Usage?

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
DizzyD
Posts: 3
Joined: Sat Jan 09, 2021 11:41 pm

HDD Storage is increasing Ram Usage?

Post by DizzyD »

Machine:
VM - 8-CPU, 16gig Ram, 600g hdd. 3 cameras.

I noticed my ram usage is around 90%. But once I deleted all video events, ram usage went back down to 35% and slowly increases as ZM saves video files. Is something being saved in the ram by mistake? Where would I look?

Thanks for any help
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: HDD Storage is increasing Ram Usage?

Post by Magic919 »

Have you looked into what is using memory? Knowing the answer to that would be a good start.
-
DizzyD
Posts: 3
Joined: Sat Jan 09, 2021 11:41 pm

Re: HDD Storage is increasing Ram Usage?

Post by DizzyD »

It appears
/usr/bin/zma -m 1
/usr/bin/zma -m 2
/usr/bin/zma -m 2
are using most resources.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: HDD Storage is increasing Ram Usage?

Post by Magic919 »

I think you'll need more than that. Can you show that these are growing over time and then drop when you delete all events on your version of ZM? If you can back it up then you should open a bug.
-
Paranoid
Posts: 129
Joined: Thu Feb 05, 2009 10:40 pm

Re: HDD Storage is increasing Ram Usage?

Post by Paranoid »

The OS caches file data in memory to save on disk acceses and speed things up. If the running processes need more memory the cache size will automatically reduce. Run the "free" command

Code: Select all

jupiter-1009 $ free -h
              total        used        free      shared  buff/cache   available
Mem:           62Gi       5.8Gi       3.2Gi       4.0Gi        53Gi        52Gi
Swap:          63Gi        11Mi        63Gi
jupiter-1009 $
This shows that I am using 5.8Gi with 3.2Gi free, but another 52Gi is available for me to use. Cache is using 53Gi but this will automatically reduce if I need it.
User avatar
Andyrh
Posts: 243
Joined: Sat Oct 28, 2017 3:55 am

Re: HDD Storage is increasing Ram Usage?

Post by Andyrh »

Yes, the OS will reduce cache as needed for other work. Without this feature the RAM would not be used.
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
DizzyD
Posts: 3
Joined: Sat Jan 09, 2021 11:41 pm

Re: HDD Storage is increasing Ram Usage?

Post by DizzyD »

I'm also getting really high CPU usage. I'm running a system with 12 cores now and only 5 cameras.
I can see how the OS could be utilizing free ram and i'm just looking at my usage on my VM dashboard and was getting alarmed. Not noticing performance issues. But surely the system shouldn't be maxing out the cpu?
Screen Shot 2021-01-20 at 7.43.18 PM.png
Screen Shot 2021-01-20 at 7.43.18 PM.png (512.26 KiB) Viewed 2122 times
extercy
Posts: 9
Joined: Wed Nov 11, 2020 8:34 am

Re: HDD Storage is increasing Ram Usage?

Post by extercy »

RAM usage will depends on Buffers in Source settings. More buffer more RAM.

Check your HDD settings and prevent HDD Sleep and make sure disk cache is enable.

Check you SWAP. If your SWAP is being use, then it will definitely slows down everything.
User avatar
Andyrh
Posts: 243
Joined: Sat Oct 28, 2017 3:55 am

Re: HDD Storage is increasing Ram Usage?

Post by Andyrh »

CPU usage is directly tied to the FPS you are analyzing. I have 8 cores and have a total of 44 FPS all doing modect. The typical load is 25-50%, when there is action on several cameras it can go to 100%.
Be aware that if you are running on VMWare (you mentioned VM dashboard) your guest will only get CPU time when there are enough cores available at the same time. You have 12 vcores, which means 12 physical cores have to be free at the same time to run the guest. If you have other high core count guests or not a large number of cores you can simply be starving the guest and the high CPU is the guest catching up from when it was waiting. A deep look into VMWare may be needed also.
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Post Reply