Skip to content

Commit

Permalink
Docs: Fix broken shm calculation (#16755)
Browse files Browse the repository at this point in the history
* Docs: Fix broken shm calculation

* Docs: Change wording of shm template
  • Loading branch information
Tibladar authored Feb 23, 2025
1 parent 202b9d1 commit 04a718d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/frigate/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ The Frigate container also stores logs in shm, which can take up to **40MB**, so
You can calculate the **minimum** shm size for each camera with the following formula using the resolution specified for detect:

```console
# Replace <width> and <height>
# Template for one camera without logs, replace <width> and <height>
$ python -c 'print("{:.2f}MB".format((<width> * <height> * 1.5 * 20 + 270480) / 1048576))'

# Example for 1280x720, including logs
$ python -c 'print("{:.2f}MB".format((1280 * 720 * 1.5 * 20 + 270480) / 1048576)) + 40'
46.63MB
$ python -c 'print("{:.2f}MB".format((1280 * 720 * 1.5 * 20 + 270480) / 1048576 + 40))'
66.63MB

# Example for eight cameras detecting at 1280x720, including logs
$ python -c 'print("{:.2f}MB".format(((1280 * 720 * 1.5 * 20 + 270480) / 1048576) * 8 + 40))'
Expand Down

0 comments on commit 04a718d

Please sign in to comment.