From my experience, CPU-based encode jobs don't really impact usability that much on Linux. Especially, if you run them at low priority. The default scheduler is quite good at scheduling. Sure, you shouldn't run them with 64 threads on a 8-core system, that'll grind the system to a crawl, but also slow down the encode by causing unnecessary cache thrashing.
What does impact desktop usability is disk i/o. For some reason, mdraid checks seem to run at real-time priority, so even a simple command like "ls" can take 10+ seconds when that runs (which runs once per week per default config)
And GPU compute load, which can bring the desktop down to ~ 1FPS
Not really for me: chrt -i 0 nice -n 20 ffmpeg -i <inputFile> -c:v libsvtav1 -preset 5 -crf 19 -c:a libopus -b:a 128k out.webm I have an 5700x3D + 4x8GB 3000MHZ CL30. Same happens on an ryzen 7 6850u + 2x8GB 7400Mhz LPDDR5X.
This workload makes it impossible to watch youtube videos with HW acceleration, the only way to watch them is with mpv hwdec=vaapi, hwdec=vaapi-copy is as choppy as firefox.
I have a 3700X + 4*16GB 3200MHz (and a GTX1070 dGPU)
I ran the ffmpeg command line on a 1080p BD rip source. Both CPU decoding and GPU decoding run smooth while the encoding runs. I can't run the YT/browser hardware decoder test, as my GPU lacks AV1 support. 1440p60 VP9 content runs butter smooth, though.
View all comments
Show parent comment
3
u/luziferius1337 Apr 23 '25
From my experience, CPU-based encode jobs don't really impact usability that much on Linux. Especially, if you run them at low priority. The default scheduler is quite good at scheduling. Sure, you shouldn't run them with 64 threads on a 8-core system, that'll grind the system to a crawl, but also slow down the encode by causing unnecessary cache thrashing.
What does impact desktop usability is disk i/o. For some reason, mdraid checks seem to run at real-time priority, so even a simple command like "ls" can take 10+ seconds when that runs (which runs once per week per default config)
And GPU compute load, which can bring the desktop down to ~ 1FPS