mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Fix shm size calculation
This commit is contained in:
parent
19afb035ff
commit
655f8e3ef4
@ -74,14 +74,14 @@ database:
|
|||||||
|
|
||||||
### Calculating required shm-size
|
### Calculating required shm-size
|
||||||
|
|
||||||
Frigate utilizes shared memory to store frames during processing. The default `shm-size` provided by Docker is 64m.
|
Frigate utilizes shared memory to store frames during processing. The default `shm-size` provided by Docker is **64MB**.
|
||||||
|
|
||||||
The default shm-size of 64m is fine for setups with 2 or less 1080p cameras. If Frigate is exiting with "Bus error" messages, it is likely because you have too many high resolution cameras and you need to specify a higher shm size.
|
The default shm-size of **64MB** is fine for setups with 2 or less 1080p cameras. If Frigate is exiting with "Bus error" messages, it is likely because you have too many high resolution cameras and you need to specify a higher shm size.
|
||||||
|
|
||||||
You can calculate the necessary shm-size for each camera with the following formula using the resolution specified for detect:
|
You can calculate the necessary shm-size for each camera with the following formula using the resolution specified for detect:
|
||||||
|
|
||||||
```
|
```
|
||||||
(width * height * 1.5 * 9 + 270480)/1048576 = <shm size in mb>
|
(width * height * 1.5 * 9 + 270480)/1048576 + 30 = <shm size in MB>
|
||||||
```
|
```
|
||||||
|
|
||||||
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 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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user