Closed OhaDerErste closed 1 year ago
Which container uses all the memory ?
immich_machine_learning uses the most
Yeah, this is expected. I wonder though if there's anything we can do to reduce memory usage when it's no longer needed?
@mertalev
Models are unloaded after idling, but the container can still end up using a lot of RAM since the backend runtimes stay allocated in memory. #2758 improves this by closing the entire process instead.
In the meantime, you can try setting MACHINE_LEARNING_EAGER_STARTUP=false
. This means models are only stored in memory after a request.
can I disable machine learning alltogether?
Yes, you can just comment out the immich-machine-learning
block in your docker-compose.yml
.
And set IMMICH_MACHINE_LEARNING_URL=false
in your .env
.
Thanks. I kinda like the object detection and stuff but I just dont need it enough to justify the huge ressource usage
The bug
My immich vm sometimes around 6 gigs of ram until I restart it. It stays at around 2.5gb after the reboot
The OS that Immich Server is running on
Debian GNU/Linux 11
Version of Immich Server
v1.65.0
Version of Immich Mobile App
v1.65.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
Im running Immich on a LXCT container on Proxmox 8 if that matters