High memory usage when upscaling a lot of images
ToniLipponen opened this issue · comments
Checklist
- I have tried ALL of the steps mentioned in the troubleshooting guide.
- I have searched for this in the issues tab.
Describe the Bug
When upscaling many images, the memory usage keeps climbing higher and higher until the OS runs out of memory.
To Reproduce
Batch upscale a lot of images and watch the memory usage.
Upscayl Version (or commit hash)
2.11.0
Platform
Linux
OS Version
Arch Linux
GPU Name
Nvidia RTX 2070
Expected Behavior
I think memory should be freed at some point during batch upscaling.
Screenshots
No response
Logs
-
How high is it? You didn't mention.
Depends on size of source image, whether jpg or png, etc. I found I have to work on batches of less than 150 images to avoid OOM kills. This is on LXC containers with 4-6GB memory. Regardless of the amount of memory, the usage just steadily climbs until OOM unless you cap the batch size. Memory is never freed until the entire process completes.