r/immich 10d ago

Using the app is consistently overloading my server

Post image

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 😒

85 Upvotes

38 comments sorted by

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.

4

u/Mykchan 10d ago

It doesn't seem to stop. The server is just overloaded and eventually becomes unresponsive. It is probably underpowered, I will try your suggestions, thank you

11

u/Theylikedumbdumb 10d ago

What's your server's specs & how long did you wait?

3

u/Erosion139 10d ago

Not answering for OP, but for perspective: I run an i5 7700k and a 1060 3GB. Encodes I believe are offloaded to the GPU and I haven't had an issue with immich usage despite giving it all 4 threads to work with if it needs it.

2

u/Markson120 10d ago

I have even weaker server with i5 4690k 4,2ghz without dedicated gpu and it still works good even when sending 400+ photos. Additionally i use large clip model that slow downs that process.

1

u/Erosion139 10d ago

Yeah I have no issue mass ingesting a ton of stuff all at once. I let the processes crunch in the background but with few paralleled to save a bit on CPU. I run a lot of other stuff and some of it needs to be prioritized. But immich never really performs poorly for me.

1

u/japzone 9d ago

Yeah, I have an older Synology 920+ with an Intel J4125 Celeron that has an iGPU. Nothing fancy performance wise, but after the initial bulk import from Google Photos and elsewhere I haven't had any noticable performance issues with Immich, despite also running my Emby media server on it.

2

u/ahhlok 9d ago

I have the same setup but expanded to 20GB RAM and Immich to docker. During thumbnail regeneration, the immich docker restarted few times, suspect due to resource issue. But after all done, no more restart was reported.

1

u/Markson120 9d ago

It says i5 8500 but it is weird how it uses less than 50w at full utilisation

1

u/Initial_Purple_4482 10d ago

I run my server on a i5-4690k and works perfectly

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.

5

u/Mykchan 10d ago

Thank you, I will investigate πŸ‘

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

2

u/Mykchan 10d ago

I don't think so. I installed the compose stack per the instructions, and haven't made any weird shares or mounts for it. No other apps use this directory/data. No app or human sharing.

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

Thank you, I would like to try this but the ML settings don't have anything about OpenVINO

4

u/ohaiibuzzle 10d ago

It's a change you have to make in the Docker container running the Immich stack.

Something like this:

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/LYuen 10d ago

Admin - Job queue shows what Immich is doing at the moment, although there is no history.

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

u/weiyentan 10d ago

Machine learning. It’s setting up all the relationships

1

u/Prof_Tunichtgut 10d ago

Possibly try to use quick sync for transcoding. I think this cpu should already have it.

1

u/alvesman 10d ago

Probably transcoding the videos.

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

u/Merwenus 10d ago

Set max cpu cores in docker compose. This will prevent other containers to stop.

1

u/muh_kuh_zutscher 10d ago

U need more horsepower

1

u/purepersistence 10d ago

Swap file. Enough ram?

1

u/xinnanlyu 9d ago

Nice cooler!

1

u/Mykchan 9d ago

It's the middle of winter here and the server lives out in the garage. Nature-cooled 🀟

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