From 04a718dda8717ca5e18b8ee6faf3c52921526307 Mon Sep 17 00:00:00 2001 From: Tibladar <52620063+Tibladar@users.noreply.github.com> Date: Sun, 23 Feb 2025 18:44:41 +0000 Subject: [PATCH] Docs: Fix broken shm calculation (#16755) * Docs: Fix broken shm calculation * Docs: Change wording of shm template --- docs/docs/frigate/installation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/frigate/installation.md b/docs/docs/frigate/installation.md index a1c8550b9..9b3920ebc 100644 --- a/docs/docs/frigate/installation.md +++ b/docs/docs/frigate/installation.md @@ -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 and +# Template for one camera without logs, replace and $ python -c 'print("{:.2f}MB".format(( * * 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))'