Performance Issue on Raspberry Pi during Upload #14329
Replies: 2 comments
-
Thanks for the feature request and thoughts on implementing. If you want to open PR to add this as an optional server feature I think that would be welcomed, though I don’t have final say. |
Beta Was this translation helpful? Give feedback.
-
The suggestion is fair, but can't be the default behavior as it's unnecessary in less-constrained environments and leads to much less efficient processing. Imagine you're doing a bulk upload into the server - it isn't ideal for the server to be mostly idle for hours before starting to process these assets. It's also confusing for users to see their new library doesn't have any thumbnails, etc. and can make them think something is wrong. |
Beta Was this translation helpful? Give feedback.
-
The bug
When running Immich on resource-constrained devices like Raspberry Pi, concurrent file uploads and image processing tasks lead to high CPU usage, significantly impacting upload speeds. The system should prioritize file uploads by temporarily pausing image processing tasks until the upload is complete.
The OS that Immich Server is running on
Raspberry Pi OS (Debian based)
Version of Immich Server
v1.120.2
Version of Immich Mobile App
v1.21.0.build.184
Platform with the issue
Your docker-compose.yml content
from https://github.com/immich-app/immich/blob/main/docker/docker-compose.prod.yml
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
Add upload state control in
file-upload.interceptor.ts
:Then check this status in other image processing services:
This improvement would significantly enhance the user experience on low-performance devices by preventing resource contention between uploads and processing tasks. It ensures that uploads complete faster by temporarily deferring resource-intensive processing tasks.
The implementation would:
Beta Was this translation helpful? Give feedback.
All reactions