Trying to figure out how to increase the SMZ size for Frigate app running it ZimaOS+.
I have tried from Frigate forum instructions but can’t find where to do in ZimaOS.
Trying to figure out how to increase the SMZ size for Frigate app running it ZimaOS+.
I have tried from Frigate forum instructions but can’t find where to do in ZimaOS.
In your docker yaml for frigate. I have it setup as follows:
name: frigate
services:
frigate:
cpu_shares: 90
command:
container_name: frigate
deploy:
resources:
limits:
memory: 8197627904
reservations:
devices:
devices:
Sorry for the messed up layout, I’m pasting this from my phone. Note the shm_size tag. Put that in your own yaml and configure to your needs.
Ok that did not work, but I found how to get it in.
In Zima frigate Settings< Advanced< In (form) I used Environment Variables: Name<shm_size>Value:<“268435456”> for 256MB. This worked and now shows up in the yaml under entry point environment:
Now my other issue is: frigate.comms.mqtt
Message
Unable to connect to MQTT server: Invalid host.
I have MQTT enabled: true in frigate config, bu tget that error.
And I noticed you have port 8971 UDP in that config, is that for mqtt?
I have MQTT installed in Zima but I don’t know what settings in either Frigate or MQTT to set.
Here is MQTT yaml:
services:
mosquitto:
command:
- sh
- -c
- |-
if [ ! -f "/mosquitto/config/mosquitto.conf" ]; then
echo -n "No config file found. Create one... "
{
echo "# config generated on $(date +%Y.%m.%d\ %H:%M:%S)"
echo "allow_anonymous true"
echo "listener 1883"
echo "persistence true"
echo "persistence_location /mosquitto/data/"
echo "log_dest file /mosquitto/log/mosquitto.log"
} > /mosquitto/config/mosquitto.conf
if [ $? -eq 0 ]; then
echo "done."
else
echo "error."
exit 1
fi
fi
echo "Starting Mosquitto"
/usr/sbin/mosquitto -c /mosquitto/config/mosquitto.conf
container_name: mosquitto
deploy:
resources:
limits:
cpus: "0.20"
memory: 1.09GB
reservations:
cpus: "0.00"
memory: 512MB
placement: {}
entrypoint: null
image: eclipse-mosquitto:2
labels:
icon: https://raw.githubusercontent.com/mr-manuel/CasaOS-HomeAutomation-AppStore/latest/Apps/Mosquitto/icon.png
traefik.enable: "false"
network_mode: bridge
ports:
- target: 1883
published: "1883"
protocol: tcp
privileged: true
restart: unless-stopped
volumes:
- type: bind
source: /DATA/AppData/mosquitto/config
target: /mosquitto/config
- type: bind
source: /DATA/AppData/mosquitto/data
target: /mosquitto/data
x-casaos:
architectures:
- amd64
- arm64
- arm
author: mr-manuel
category: Home Automation
description:
en_us: >
Visit [Eclipse Mosquitto](https://mosquitto.org) for more details. Check
the [documentation](https://mosquitto.org/documentation/) for further
settings.
developer: Eclipse Mosquitto
icon: https://raw.githubusercontent.com/mr-manuel/CasaOS-HomeAutomation-AppStore/latest/Apps/Mosquitto/icon.png
is_uncontrolled: false
main: mosquitto
port_map: "1883"
project_url: https://github.com/mr-manuel/CasaOS-HomeAutomation-AppStore
repo_id: github.com@0842c82b
store_app_id: mosquitto
tagline:
en_us: >
Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that
implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is
lightweight and is suitable for use on all devices from low power single
board computers to full servers.
thumbnail: https://raw.githubusercontent.com/mr-manuel/CasaOS-HomeAutomation-AppStore/latest/Apps/Mosquitto/icon.png
tips:
before_install:
en_us: >
The MQTT broker will be reachable at port `1883`.
[Website](https://mosquitto.org) •
[Documentation](https://mosquitto.org/documentation/)
title:
custom: Mosquitto
en_us: Mosquitto
And now here is Frigate yaml:
# config generated on 2026.07.21 13:18:05
mqtt:
enabled: true
detectors:
coral:
type: edgetpu
device: usb
ffmpeg:
hwaccel_args: preset-nvidia
cameras:
Office:
ffmpeg:
inputs:
- path: rtsp://xxxxxxxxx:554/12
roles:
- detect
- path: rtsp://xxxxxxxxx/11
roles:
- record
detect:
enabled: true
width: 640
height: 352
fps: 5
motion:
threshold: 30
contour_area: 12
improve_contrast: true
zones:
office-door:
coordinates: 0.395,0.085,0.637,0.091,0.512,0.997,0.348,0.953
inertia: 10
loitering_time: 3
objects: person
review:
alerts:
required_zones: office-door
detections:
required_zones: office-door
semantic_search:
enabled: true
model_size: small
face_recognition:
enabled: true
model_size: small
lpr:
enabled: true
classification:
bird:
enabled: false
version: 0.17-0