rtkit demotes pulseaudio threads on suspend/resume cycle
Submitted by Frederik Himpe
Assigned to pul..@..op.org
Description
Every time when I suspend/resume my system, the pulseaudio threads loose SCHED_RR.
From logs: Jan 24 21:39:53 netbook rtkit-daemon[2788]: Successfully made thread 16393 of process 16393 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11. Jan 24 21:39:53 netbook rtkit-daemon[2788]: Supervising 1 threads of 1 processes of 1 users. Jan 24 21:39:53 netbook rtkit-daemon[2788]: Successfully made thread 16395 of process 16393 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5. Jan 24 21:39:53 netbook rtkit-daemon[2788]: Supervising 2 threads of 1 processes of 1 users. Jan 24 21:39:53 netbook rtkit-daemon[2788]: Successfully made thread 16396 of process 16393 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5. Jan 24 21:39:53 netbook rtkit-daemon[2788]: Supervising 3 threads of 1 processes of 1 users. Jan 24 21:39:53 netbook rtkit-daemon[2788]: Successfully made thread 16400 of process 16400 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11. Jan 24 21:39:53 netbook rtkit-daemon[2788]: Supervising 4 threads of 2 processes of 1 users. Jan 25 19:06:59 netbook rtkit-daemon[2788]: The canary thread is apparently starving. Taking action. Jan 25 19:06:59 netbook rtkit-daemon[2788]: Demoting known real-time threads. Jan 25 19:06:59 netbook rtkit-daemon[2788]: Successfully demoted thread 16396 of process 16393 (/usr/bin/pulseaudio). Jan 25 19:06:59 netbook rtkit-daemon[2788]: Successfully demoted thread 16395 of process 16393 (/usr/bin/pulseaudio). Jan 25 19:06:59 netbook rtkit-daemon[2788]: Successfully demoted thread 16393 of process 16393 (/usr/bin/pulseaudio). Jan 25 19:06:59 netbook rtkit-daemon[2788]: Demoted 3 threads.
(Jan 24 21:39 is when logging in after booting the machine, Jan 25 19.06:59 is when resuming the suspended system)
Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535426