2.8 KiB
sidebar_position
| sidebar_position |
|---|
| 7 |
Performance
Why is Immich slow on low-memory systems like the Raspberry Pi?
Immich optionally uses machine learning for several features. However, it can be too heavy to run on a Raspberry Pi. You can mitigate this or disable machine learning entirely.
How can I lower Immich's CPU and RAM usage?
The initial backup is the most intensive due to the number of jobs running. The most CPU-intensive ones are transcoding and machine learning jobs (Tag Images, Smart Search, Recognize Faces), and to a lesser extent thumbnail generation. Here are some ways to lower their CPU usage:
- Lower the job concurrency for these jobs to 1.
- Under Settings > Transcoding Settings > Threads, set the number of threads to a low number like 1 or 2.
- Under Settings > Machine Learning Settings > Facial Recognition > Model Name, you can change the facial recognition model to
buffalo_sinstead ofbuffalo_l. The former is a smaller and faster model, albeit not as good.- You must re-run the Recognize Faces job for all images after this for facial recognition on new images to work properly.
- If these changes are not enough, see below for how you can disable machine learning.
How can I change the amount of CPU and RAM that Immich uses?
By default, a container has no resource constraints and can use as much of a given resource as the host's kernel scheduler allows. You can look at the original docker docs or use this guide to learn how to do this.
Can I boost machine learning speed?
Yes, you can by increasing the job concurrency. With higher concurrency, the host will work on more assets in parallel. You can do it by:
- Admin user login
- Administration
- jobs
- On the left side Manage Concurrency
- Change the settings as needed
:::danger On a normal machine, 2 or 3 concurrent jobs can probably max the CPU, so if you're not hitting those maximums with, say, 30 jobs, Note that storage speed and latency may quickly become the limiting factor; particularly when using HDDs.
Do not exaggerate with the amount of jobs because you're probably thoroughly overloading the server.
more info here :::
Why is Immich using so much of my CPU?
When a large amount of assets are uploaded to Immich it makes sense that the CPU and RAM will be heavily used due to machine learning work and creating image thumbnails after that, the percentage of CPU usage will drop to around 3-5% usage