Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shm size calculation #5123

Merged
merged 4 commits into from
Jan 18, 2023
Merged

Conversation

felipecrs
Copy link
Contributor

I think they were not taking the log files into account (10MB for each the three).

@netlify
Copy link

netlify bot commented Jan 17, 2023

Deploy Preview for frigate-docs ready!

Name Link
🔨 Latest commit 49b74dc
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/63c7f83ba82e040008810e5d
😎 Deploy Preview https://deploy-preview-5123--frigate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@felipecrs
Copy link
Contributor Author

Oh wait. I just realized that this math is for a single camera!

@NickM-27 NickM-27 self-requested a review January 17, 2023 00:58
@felipecrs
Copy link
Contributor Author

@NickM-27 I re-wrote this PR. If you could take a look again, please.

@felipecrs
Copy link
Contributor Author

felipecrs commented Jan 17, 2023

Oh. I just had an idea. I'll put up some instructions on how to change the default shm-size when using HassOS. Sorry about that.

@felipecrs felipecrs marked this pull request as draft January 17, 2023 01:15
@felipecrs felipecrs marked this pull request as ready for review January 17, 2023 01:21
@felipecrs
Copy link
Contributor Author

Actually never mind. This is too complicated. I didn't change anything.

@felipecrs
Copy link
Contributor Author

Ok, too bad. This can't be changed for add-ons at all! Since HassOS 9.0 they made the /etc/docker/daemon.json read-only.

@felipecrs
Copy link
Contributor Author

Actually, good news! They give you access to the whole memory or 50% of it, or a big amount anyway, it seems.

docker exec -ti addon_ccab4aaf_frigate df -h /dev/shm
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           3.9G  9.3M  3.8G   1% /dev/shm

@felipecrs
Copy link
Contributor Author

I added a note about it, we don't need users to think that they need to tinker with it.

@blakeblackshear blakeblackshear merged commit 89513e4 into blakeblackshear:dev Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants