I
Immich•3y ago
crash_x

Massive Resource Utilization

Hi! Was advised to post this link here: https://github.com/immich-app/immich/issues/2134 Essentially, I am experiencing MASSIVE resource utilization during image import to the tune of 4,000% to 6,000% CPU load. While I have followed the directions in the linked issue and modified my docker compose to mount geocoding to the host (and this has helped with stability), resource utilization is super super high, and the culprit continues to be the microservices container. I have also disable machine learning. Is this kind of resource utilization normal?
GitHub
[BUG] Resources Utilization Spike · Issue #2134 · immich-app/immich
The bug I’ve deployed Immich and am trying to backup photos from iOS but after like 15 images, the resources on the server (an older 4 core x86 Mac mini) get DESTROYED by the micro services contain...
No description
13 Replies
Alex Tran
Alex Tran•3y ago
This might be something to do with the old CPU on that mac mini During upload the CPU usage spike becasue of all the thumbnail generation and transcoding but spike to that level is pretty insane
crash_x
crash_xOP•3y ago
right?!
Alex Tran
Alex Tran•3y ago
How is the CPU compare to pi4?
crash_x
crash_xOP•3y ago
faster
Alex Tran
Alex Tran•3y ago
It maybe helping to limit the CPU usage on microservices container
Alex Tran
Alex Tran•3y ago
Baeldung
Setting Memory And CPU Limits In Docker | Baeldung
A quick and practical guide to setting memory/CPU limits in Docker.
crash_x
crash_xOP•3y ago
Although now that I'm looking at it; looks like the mini is a dual core i5, like 2.5ghz 4 gigs of mem top indicates ffmpeg is what's consuming cpu
Alex Tran
Alex Tran•3y ago
Those are video transcoding it should only happeen during upload so if you are fine with letting the machine does its job, normal usage will be fine
crash_x
crash_xOP•3y ago
correct, that's when I am seeing it
Alex Tran
Alex Tran•3y ago
Immich normal usage use very little CPU
crash_x
crash_xOP•3y ago
maybe I'll throw a CPU limit on the container
Alex Tran
Alex Tran•3y ago
okay that would help to keep other processes/applications running with the trade off of transcoding would take longer but since it is a background job, it should be fine eventually it will chug all the video 😄
crash_x
crash_xOP•3y ago
exactly -- there is no urgency on those transcodes confirmed 4 cpus, will limit to 2 and see how it goes

Did you find this page helpful?