Page 1 of 1
Where to change ZM memory usage above 50%?
Posted: Fri Oct 14, 2016 7:22 am
by Tantamount
According to the docs:
https://zoneminder.readthedocs.io/en/stable/faq.html
"Also remember by default ZM only uses 50% of your available memory unless you change it."
I'd like to bump this up to 70% or 80%, but I can't find out where to modify this setting.
Re: Where to change ZM memory usage above 50%?
Posted: Fri Oct 14, 2016 1:50 pm
by knight-of-ni
To get the answer you are looking for, continue reading past the line you quoted from the FAQ.
The instructions tell you exactly how to modify the amount of memory your ramdisk uses, which is what ZoneMinder depends on. Be careful not to set this too high as it will starve your operating system for memory and cause other problems. Sometimes the best thing to do is just add more memory to your system.
UPDATE: Since your signature states you've got 8GB of ram, then you do not have to worry about starving your os for ram.
Re: Where to change ZM memory usage above 50%?
Posted: Fri Oct 14, 2016 4:15 pm
by Tantamount
knnniggett,
Are you talking about this line?
"If you want to increase this limit to 70% of your memory, add the following to /etc/fstab tmpfs /run/shm tmpfs defaults,noexec,nosuid,size=70% 0 0"
df -h shows the path is /dev/shm:
tmpfs 3.7G 3.1G 658M 83% /dev/shm
not /run/shm
I thought those instructions was for the old way zoneminder used to deal with shared memory. Do I use /dev/shm in fstab, or /run/shm? I didn't think one could use fstab for /dev folder, and it seemed odd to use /run/shm if I wasn't in fact using that path in operation.
Re: Where to change ZM memory usage above 50%?
Posted: Fri Oct 14, 2016 4:54 pm
by knight-of-ni
What you are talking about is simply a minor difference between distros.
Debian distros have the symlink /run/shm -> /dev/shm while Redhat distros do not. So use /dev/shm since that is the only one you've got.
Re: Where to change ZM memory usage above 50%?
Posted: Sat Oct 15, 2016 4:57 am
by Tantamount
Thank you, that worked.
I attempted to edit the documentation to add some details about that solution to cover other possible distros, but when I clicked on the "Edit on GitHub" link at the top, I got a 404 error:
https://github.com/ZoneMinder/ZoneMinde ... cs/faq.rst
Is submitting pull requests not permitted for the documentation?
Re: Where to change ZM memory usage above 50%?
Posted: Sat Oct 15, 2016 12:38 pm
by knight-of-ni
Good idea.
I get the same 404 error though. I'm not sure why that button does not work.
Try doing that from our main github site because that is where the files live:
https://github.com/ZoneMinder/ZoneMinde ... aster/docs
Re: Where to change ZM memory usage above 50%?
Posted: Fri Nov 04, 2016 5:27 am
by Tantamount
Knnniggett,
From the README.md file:
"The latest version of these docs can be found at
http://zoneminder.readthedocs.org/"
Should that be changed too?
Re: Where to change ZM memory usage above 50%?
Posted: Fri Nov 04, 2016 6:54 pm
by SteveGilvarry
No that is where they live, there is stable version, which is as of 1.30 release
http://zoneminder.readthedocs.io or current master version
http://zoneminder.readthedocs.io/en/latest/ Edit on GitHub works in latest version not stable so must be something in how they build that link which is mapped to a commit for stable.