Install details:
Fedora 34 (server edition, very minimal install)
Zoneminder 1.36.12
Number of cameras: 2
fcgiwrap daemon procs: 6
Zoneminder Machine RAM: 8 GB
Files added/updated:
/etc/systemd/oomd.conf
Code: Select all
[OOM]
SwapUsedLimit=99%
DefaultMemoryPressureLimit=100%
DefaultMemoryPressureDurationSec=30s
Code: Select all
vm.lowmem_reserve_ratio = 128 128 32
I tried to update the OOMD configuration (oomd.conf) so that OOMD would not kill any processes. This seemed to work, but then to my surprise the old OOM process kicked in and would kill my Zoneminder processes.
To prevent OOM from doing this, I followed the advice from this link: https://blog.kamens.us/2016/11/10/linux ... of-memory/
The above link suggests changing the defaults from "256 256 32" to "128 128 32", which is what I did in the file 00-reserve-ratio.conf.
As I said, so far Zoneminder seems to be running well. I'll post an update here if that changes.