Page 1 of 1

Increasing Memory Percentage Help

Posted: Tue May 18, 2021 7:38 pm
by krizzle
Hello!

I'm following the docs to increase the memory percentage on my ZM server. From what I understand, by default the memory usage is set to 50%, I would like to increase this to 70%. I am fairly new to Linux but have had ZM running for a bit now on my server. Can anyone help me walk through the procedure for increasing the memory percentage?

Doc I'm following: https://zoneminder.readthedocs.io/en/st ... ur-cameras

After entering the "df -h" command it comes back with this:
df -h
df -h
zm.PNG (15.12 KiB) Viewed 1481 times
I see multiple tmpfs, what does this mean?

Also after entering "/etc/fstab" I get this result:
etc/fstab
etc/fstab
zm2.PNG (4.09 KiB) Viewed 1481 times
and this result with "tmpfs SHMPATH tmpfs defaults,noexec,nosuid,size=70% 0 0" :
line
line
sm3.PNG (8.61 KiB) Viewed 1481 times
Any help on how I should proceed to properly increase the memory would be appreciated. Thanks.

Re: Increasing Memory Percentage Help

Posted: Tue May 18, 2021 9:58 pm
by dougmccrary
Consider just going to 1.36.
It's inconsequential in that.

Re: Increasing Memory Percentage Help

Posted: Fri May 21, 2021 8:52 am
by lbm
I think you got some basic understandings wrong.

tmpfs is not an command, but an "temporary filesystem"
/etc/fstab is not an command, but an file which you must edit.

So to change the tmpfs allocation, edit the file, using vim, nano, emacs or whatever. (nano, might be easier for new users).
And change the line, to look like this in the file. If its not there add it, and save the file.

Code: Select all

none      /dev/shm        tmpfs   defaults,size=70%        0 0
Then remount, for the changes to apply

Code: Select all

mount -o remount /dev/shm/