Zoneminder /dev/shm: 100%

Forum for questions and support relating to the 1.34.x releases only.
NXT
Posts: 11
Joined: Sat Feb 08, 2020 4:44 pm

Zoneminder /dev/shm: 100%

Post by NXT »

Hi all,

I'm new to Zoneminder.
So installed Zoneminder on my Synology NAS with Docker.
Now I installed 2 camera's but need 2 more but the /dev/shm is already 100%.
shm 64M 53M 12M 83% /dev/shm
Is it possible to upgrade it so I can add more camera's?

Thanks!
CountyLine
Posts: 63
Joined: Thu Aug 29, 2019 5:22 pm
Location: USA

Re: Zoneminder /dev/shm: 100%

Post by CountyLine »

If you are asking if it possible to upgrade the memory in your NAS, you should post the model number and its currently installed RAM.

As the owner of a couple of Synology boxes, I really don't believe they are suitable for use as a ZoneMinder server, especially if they are running a bunch of other applications. Synology Corp does have their own surveillance package available, which might be worth checking into. It should be tailored for the NAS's limited CPU and memory capacity.
fontiano
Posts: 69
Joined: Wed Dec 25, 2019 10:29 am

Re: Zoneminder /dev/shm: 100%

Post by fontiano »

I think you need more RAM. By default new linux distros allocate to /dev/shm half of the system ram dynamically. According to the total RAM of the system you can increase or decrease "/dev/shm" dimension.

A way to do that is to edit "/etc/fstab" file and use "mount -o remount /dev/shm" command.

In zoneminder 1.30.4 it was not mandatory using "/dev/shm".

In 1.34.x I'm not sure but I think it is.
Production: zm 1.34.26 - Debian 11 | Test: zm 1.36.33 - Debian 12
NXT
Posts: 11
Joined: Sat Feb 08, 2020 4:44 pm

Re: Zoneminder /dev/shm: 100%

Post by NXT »

Thanks for the fast response.

I have 16GB of ram. So it should be OK?
But is it possible to increase it and how?

Thanks!
bbunge
Posts: 2932
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Zoneminder /dev/shm: 100%

Post by bbunge »

If you are running in Docker you need to increase RAM for Docker.

Better yet, dump Docker and just install Zoneminder under the OS.
NXT
Posts: 11
Joined: Sat Feb 08, 2020 4:44 pm

Re: Zoneminder /dev/shm: 100%

Post by NXT »

How do I increase the RAM of Docker?
Under OS, you mean to run Zoneminder under Ubuntu?
bbunge
Posts: 2932
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Zoneminder /dev/shm: 100%

Post by bbunge »

NXT wrote: Sat Feb 08, 2020 5:53 pm How do I increase the RAM of Docker?
Under OS, you mean to run Zoneminder under Ubuntu?
Google is your friend for your Docker questions.

Yes, without Docker.I also feel that the NAS is not powerful enough to do a decent job with Zoneminder and all the other processes you expect a NAS to do.
tropisch
Posts: 5
Joined: Mon Feb 15, 2021 10:58 am

Re: Zoneminder /dev/shm: 100%

Post by tropisch »

NXT wrote: Sat Feb 08, 2020 5:53 pm How do I increase the RAM of Docker?
Under OS, you mean to run Zoneminder under Ubuntu?
I guess i have the same Problem.
How did you increase the memory for docker?
I'm a total noob with docker and synology
User avatar
Acewiza
Posts: 72
Joined: Thu Dec 31, 2020 4:52 pm

Re: Zoneminder /dev/shm: 100%

Post by Acewiza »

Do yourself a favor and use Surveillance Station if you want to run security cams on a Synology NAS. I just migrated off one a couple months ago, and couldn't be happier. But unless you have a high-end model and a working knowledge of how to circumvent their proprietary OS hacks, you will fail. The cheaper boxes have nowhere near the necessary horsepower. I imagine any successful attempt to pull this off would constitute an integration miracle on the order of near un-doable.
tropisch
Posts: 5
Joined: Mon Feb 15, 2021 10:58 am

Re: Zoneminder /dev/shm: 100%

Post by tropisch »

surveillance station works rly nice and easy, but the licences are quite expensive :shock:
i managed to reduce the /dev/dhm to 30% with 3 cams on my DS220+ with 2gb RAM.
i started another topic and documented my solutions here:
viewtopic.php?f=41&t=30518&p=120239#p120239
User avatar
Acewiza
Posts: 72
Joined: Thu Dec 31, 2020 4:52 pm

Re: Zoneminder /dev/shm: 100%

Post by Acewiza »

tropisch wrote: Mon Feb 22, 2021 3:07 pm surveillance station works rly nice and easy, but the licences are quite expensive :shock:
I'd be curious to see how many cameras will run on a DS220 before everything slows to a crawl.

I have Surveillance Station licenses available for half price! :wink:
tropisch
Posts: 5
Joined: Mon Feb 15, 2021 10:58 am

Re: Zoneminder /dev/shm: 100%

Post by tropisch »

Half the prize? How :shock: ?
And is it still a thing those licences can be transferred only once?
User avatar
Acewiza
Posts: 72
Joined: Thu Dec 31, 2020 4:52 pm

Re: Zoneminder /dev/shm: 100%

Post by Acewiza »

I don't know what the xfer policy/procedure is, but I have 8, IIRC.
User avatar
Acewiza
Posts: 72
Joined: Thu Dec 31, 2020 4:52 pm

Re: Zoneminder /dev/shm: 100%

Post by Acewiza »

Next day /dev/shm is sitting at 18%, one camera keeps hanging and everything looks great with a page refresh. Not really seeing any concerning issues on this topic. Network contention? Considering all the stuff running on this box, that it works at all seems impressive to me. 8)
User avatar
Acewiza
Posts: 72
Joined: Thu Dec 31, 2020 4:52 pm

Re: Zoneminder /dev/shm: 100%

Post by Acewiza »

Final Thoughts: Yeah network contention - riiiight. That camera had the wrong NIC selected. Cannot imagine how it ever worked at all. Intermittent/soft fails suck. I've juggled things between wired/wireless for various reasons, and as usual, the only thing wrong with my system is something I did to it! :roll:
Post Reply