most thread priorities are not set on Linux
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Confirmed
|
High
|
Unassigned |
Bug Description
Looking at Mixxx's threads in htop, all of them have a priority of 20, except one which has a priority of -83. I presume the one with -83 is the audio callback thread. I added a line to the /etc/security/
@jackuser - nice -20
I can renice threads after Mixxx starts so it is not a permission issue.
http://
The effect of the priority parameter is dependent on the operating system's scheduling policy. In particular, the priority will be ignored on systems that do not support thread priorities (such as on Linux, see http://
Confirmed. I cannot believe that I have not noticed this before, when I worked with the engine thread priority :-/
Here my output:
daniel@ daniel- 530U3C- 530U4C- 532U3C: ~$ ps -T -C19,_20 -o priority, ni,pcpu, pid,comm 2961
PRI NI %CPU PID COMMAND
20 0 13.9 2961 mixxx
20 0 0.0 2961 dconf worker
20 0 0.0 2961 gdbus
20 0 0.0 2961 gmain
20 0 0.0 2961 EngineWorkerSch
20 0 0.0 2961 EngineSideChain
20 0 0.0 2961 VinylControlPro
20 0 0.0 2961 CachingReaderWo
20 0 0.0 2961 CachingReaderWo
20 0 0.0 2961 CachingReaderWo
20 0 0.0 2961 CachingReaderWo
20 0 0.0 2961 CachingReaderWo
20 0 0.0 2961 CachingReaderWo
20 0 0.0 2961 CachingReaderWo
20 0 0.0 2961 CachingReaderWo
20 0 0.0 2961 CachingReaderWo
20 0 0.0 2961 LibraryScanner
20 0 0.0 2961 BrowseThread
20 0 0.4 2961 AnalyzerQueue
20 0 0.0 2961 Controller
20 0 0.4 2961 VSyncThread
20 0 0.0 2961 Controller
20 0 0.0 2961 mixxx
-83 - 2.7 2961 mixxx