Vm Zoneminder and memory

frankz

Active Member
Nov 16, 2020
369
24
38
Hello everyone, after posting on the zoneminder forum some prizes related to the exaggerated memory consumption, I was told that the problem could be generated by the management of memory by the host. Has anyone had any experience in this regard?
 
Can you share the VM configuration from the /etc/pve/qemu-server/ directory? The only way the Proxmox host can cause increased memory usage inside the VM is when ballooning because the Proxmox host memory is over 80%.
 
Can you share the VM configuration from the /etc/pve/qemu-server/ directory? The only way the Proxmox host can cause increased memory usage inside the VM is when ballooning because the Proxmox host memory is over 80%.
Yes, of course, although I used both ballon activation and deactivation options.
Code:
agent: 1
balloon: 0
boot: order=scsi0;net0
cores: 2
memory: 4096
meta: creation-qemu=6.1.0,ctime=1640108749
name: zone
net0: virtio=1A:8C:5B:EA:04:4A,bridge=vmbr0
net1: virtio=7E:BE:71:9B:E0:BC,bridge=vmbr4
numa: 0
onboot: 1
ostype: l26
protection: 1
scsi0: evo1tb:110/vm-110-disk-0.qcow2,discard=on,size=256G,ssd=1
scsihw: virtio-scsi-single
smbios1: uuid=3ad6712b-3b1d-41c3-8448-f73cbe9138f3
sockets: 1
tablet: 0
vmgenid: 6d08ef3b-69f3-4088-9d3f-60df27492200
 
Maybe the virtual disk is too slow (QCOW2) and it buffers too much in memory? Maybe enable writeback caching, so the async write buffers are kept in the host memory? You could try a faster LVM storage instead, or passthrough a disk for less overhead?
Any information about what Zoneminder is, what problems you are experiencing or when the problem manifests itself might help.
 
Maybe the virtual disk is too slow (QCOW2) and it buffers too much in memory? Maybe enable writeback caching, so the async write buffers are kept in the host memory? You could try a faster LVM storage instead, or passthrough a disk for less overhead?
Any information about what Zoneminder is, what problems you are experiencing or when the problem manifests itself might help.
Here is an excerpt from zabbix about the error:


Problem has been resolved at 15:50:14 on 2022.04.08
Problem name: Lack of available memory (<20M of 3.84 GB)
Problem duration: 7m 2s
Host: Zone Minder
Severity: Average
Original problem ID: 755333

In addition, the disk is fast as on ssd and nfs. I can set the cache but I think the problem is different.
 
  • Like
Reactions: pepex7
Here is an excerpt from zabbix about the error:


Problem has been resolved at 15:50:14 on 2022.04.08
Problem name: Lack of available memory (<20M of 3.84 GB)
Problem duration: 7m 2s
Host: Zone Minder
Severity: Average
Original problem ID: 755333

In addition, the disk is fast as on ssd and nfs. I can set the cache but I think the problem is different.
were you able to solve this?
 
Not resolv !
I have continued making adjustments and managed to reduce memory usage.

13 cameras 1280x720p
Memory usage 72.65% (14.53 GiB of 20.00 GiB)

13 cameras 720x480
Memory usage 65.58% (13.12 GiB of 20.00 GiB)
 
I have continued making adjustments and managed to reduce memory usage.

13 cameras 1280x720p
Memory usage 72.65% (14.53 GiB of 20.00 GiB)

13 cameras 720x480
Memory usage 65.58% (13.12 GiB of 20.00 GiB)
Yes you lower the resolution of the cameras the memory consumption goes down but as far as I'm concerned you can go back to go up
 
Last edited:
  • Like
Reactions: pepex7