Add note about default shm size for add-ons

This commit is contained in:
Felipe Santos 2023-01-16 22:46:36 -03:00 committed by GitHub
parent 95974eeb43
commit 6e9362ba72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,8 @@ $ python -c 'print("{:.2f}MB".format(((1280 * 720 * 1.5 * 9 + 270480) / 1048576)
126.99MB
```
The shm size cannot be set per container for Home Assistant Addons. You must set `default-shm-size` in `/etc/docker/daemon.json` to increase the default shm size. This will increase the shm size for all of your docker containers. This may or may not cause issues with your setup. https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file
The shm size cannot be set per container for Home Assistant add-ons. However, this is probably not required since by default Home Assistant Supervisor shares the host `/dev/shm` with all add-ons. Usuallly the host `/dev/shm` has half the size of your total memory, so if your machine has 8GB of memory, chances are that Frigate will have access to up to 4GB there without any additional configuration.
### Raspberry Pi 3/4