You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I start thumbsup using the docker image and limit the concurrency to 2 and I get in the terminal "Processing media" with 2 files being processed (good) but checking the processes there are about 20 or so ffmpeg processes/threads running and my load is 10 to 20. I expect only 2 ffmpeg processes to be running at a time. I only have 4 CPUs so all these extra processes running makes it run slower and use more memory.
Looking at things a bit closer when I view the process tree I actually only have two toplevel ffmpeg processes running with each having 20 threads (using htop, and then press t). Should -threads 1 arguments be passed to ffmpeg? Is there some way to manually do this on form thumbsup? I don't recall the non-docker version having this issue.
You're right, --concurrency controls the number of files processed at once. From what you found this is working as expected.
It’s a very good point that ffmpeg can run multiple threads. I'm not sure if the difference in behaviour could be related to Docker vs non-Docker. Do you know how ffmpeg decides on the number of threads ? Or maybe it's the ffmpeg version that's running ?
I'll try running --threads 1 on some test galleries and seeing how this affects performance. We could either make it the default, or make it configurable.
Bug description
I start thumbsup using the docker image and limit the concurrency to 2 and I get in the terminal "Processing media" with 2 files being processed (good) but checking the processes there are about 20 or so ffmpeg processes/threads running and my load is 10 to 20. I expect only 2 ffmpeg processes to be running at a time. I only have 4 CPUs so all these extra processes running makes it run slower and use more memory.
Looking at things a bit closer when I view the process tree I actually only have two toplevel ffmpeg processes running with each having 20 threads (using
htop
, and then presst
). Should-threads 1
arguments be passed toffmpeg
? Is there some way to manually do this on form thumbsup? I don't recall the non-docker version having this issue.Steps to reproduce
On Ubuntu 20.04:
The text was updated successfully, but these errors were encountered: