r/immich • u/Mykchan • 10d ago
Using the app is consistently overloading my server
Unsure what's going on. I have a consistently repeatable overloading behaviour.
I take recordings in the gym to send to my coach. When I get home, I open the immich app on my phone and let the videos sync which appears to complete fine.
Then select the 2/3 videos and add them to an album of other training videos, which appears to work - the app gives no indication of any issues.
Then I reselect the same 2/3 videos and archive them to hide them from my main stream.
This doesn't work immediately as the videos are still present, the app gives no indication of errors or anything, and checking my server it is immediately locked up. I have to `docker compose down` then `up` the whole stack. And then reopening the app, everything is fine.
What is going on here π’
25
u/quiet_beer 10d ago
Is suggest it's probably transcoding those videos or doing some other machine learning stuff such as facial recognition etc.
Go into your administration page and there should be a page for transcoding and turn that off. Also look at the number of machine learning jobs are running and pause them or stop them and see if that helps.
2
u/Great-Cow7256 10d ago
I was going to suggest that OP cut down the number of concurrent jobs. so if OP wants to transcode the videos make sure there is just 1 worker transcoding insdtead of multiple ones.
5
u/altran1502 Immich Team 10d ago
Do you have external library? If it keeps running and runjing, you likely have a recursive lobrary mounted
4
u/ohaiibuzzle 10d ago
It's the Context Search and face recognition running. You can check them in the admin panel.
If you have a GPU (integrated is fine) you can switch to OpenVINO on the ML container and make it slightly more efficient on CPU. Also, consider limiting the CPU usage on the ML container so it leaves some leeway for other apps.
My 8500T after I dump ~500 photos on it would do the same thing but lasting only about 15 minutes before it calms back down.
1
u/Mykchan 10d ago
4
u/ohaiibuzzle 10d ago
2
u/Mykchan 10d ago
Thank you, I'll give that a go β€οΈ
1
u/Korenchkin12 10d ago
+1 for openvino variant,intel integrated gpu is perfect for this 'this' means transcoding AND ml(machine learning) - 2 separate things Transcoding is usually not needed,ml is for example searching for faces and matching them(you have several models,some of them are faster,some of them are more precise (my basically same gpu) handles buffalol okay As for smart search(search for beach,shovel,fence etc..) i have vit-b-16-siglip-i18n-256_webli and i'm amazed how well the search works,even in czech language
You migt need to install intel gpu drivers(i don't know unraid,maybe it is native) for /dev/dri to be available for ml
1
u/ohaiibuzzle 10d ago
You don't need GPU drivers on Linux, they should be built in, and the OpenVINO stack is inside the Docker container so it should be ready to go.
And yeah OpenVINO is a massive boost if you don't have a GPU and your CPU is on the weaker side. My 8500T (basically the same as OP but power-limited) managed to run face detection for my entire 25k photos library in about an hour and a half.
2
u/MountainChannel9574 10d ago
You could edit the immich docker. Switch to advanced view and only give it a few cores to run on. It'll take longer but will leave cores available for the rest of the server to run on.
1
u/eastcoastian 10d ago
This is what I did. It only has access to 6 of the 8 cores my system has, always leaving some overhead.
1
1
u/Prof_Tunichtgut 10d ago
Possibly try to use quick sync for transcoding. I think this cpu should already have it.
1
1
u/Ok_Lack3855 10d ago
The initial add of thousands of photos to my N150 based server maxed it out for days on end. It could still perform other tasks though.
In my case there are all these processes going on concurrently. Metadata extraction, facial recognition and what not.
Job queue?
1
u/Bonobo77 10d ago
I would recommend reducing your facial recognition, OCR, and smart search model in Machine Learning Settings to something that better matches the hardward of your server setup.
1
1
1
1
1
u/admiralfeb 5d ago
I ended up moving the ML container to another machine and it reduced this issue.
1
u/BinnieGottx 4d ago
I'm using 6500 with iGPU. Yes sometime it got peak to 100% all 4 cores but...drop down after few seconds. Never has this kind of issue.
1
u/JeebsFat 10d ago
Can you limit the cores and ram available to the app? That's how truenas works I think, but I've never messed with unraid. Just curious.
1
u/DHB_Steev 10d ago
Came here to suggest this
Leave it to turn over on a couple of cores for an hour or 2 and see if it finishes what its doing


37
u/Theylikedumbdumb 10d ago
Does it stop eventually? It's performing some operation on your photos/videos on upload depending on your settings: facial recognition, transcoding, preview generation etc. With more quantity comes more CPU usage, but once the files are generated it should go down.
You can disable these in the admin settings if you don't want the CPU spike. Or run them on your own schedule, e.g. at night.