Page 1 of 1

HDD Storage is increasing Ram Usage?

Posted: Sat Jan 09, 2021 11:46 pm
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

Re: HDD Storage is increasing Ram Usage?

Posted: Sun Jan 10, 2021 9:30 am
by Magic919
Have you looked into what is using memory? Knowing the answer to that would be a good start.

Re: HDD Storage is increasing Ram Usage?

Posted: Sun Jan 10, 2021 7:08 pm
by DizzyD
It appears
/usr/bin/zma -m 1
/usr/bin/zma -m 2
/usr/bin/zma -m 2
are using most resources.

Re: HDD Storage is increasing Ram Usage?

Posted: Mon Jan 11, 2021 8:06 am
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.

Re: HDD Storage is increasing Ram Usage?

Posted: Fri Jan 15, 2021 4:28 pm
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.

Re: HDD Storage is increasing Ram Usage?

Posted: Fri Jan 15, 2021 6:56 pm
by Andyrh
Yes, the OS will reduce cache as needed for other work. Without this feature the RAM would not be used.

Re: HDD Storage is increasing Ram Usage?

Posted: Thu Jan 21, 2021 1:50 am
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 2804 times

Re: HDD Storage is increasing Ram Usage?

Posted: Fri Feb 26, 2021 8:58 am
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.

Re: HDD Storage is increasing Ram Usage?

Posted: Fri Feb 26, 2021 1:31 pm
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.