More > JRiver Media Center 27 for Linux

Micro freezes audio [Solved]

<< < (6/9) > >>

mwillems:
MC automatically configures itself to use realtime thread priorities as long as the user running MC is in the "audio" group.

Erviv, what's the output of "groups" for your user? 

erviv:
MWillems, here is the output of groups pi

pi@raspberrypi:~ $ groups pi
pi : pi adm dialout cdrom sudo audio video plugdev games users input netdev spi i2c gpio
 or
pi@raspberrypi:~ $ id
uid=1000(pi) gid=1000(pi) groups=1000(pi),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),105(input),109(netdev),997(gpio),998(i2c),999(spi)



mwillems:
Ok, then I suspect it's unlike to be a cpu thread priority issue.

bob:

--- Quote from: mwillems on October 26, 2020, 12:28:47 pm ---Ok, then I suspect it's unlike to be a cpu thread priority issue.

--- End quote ---
Or maybe it's a combination of issues with the realtime kernel?
You could try removing MC from using realtime priority by deleting the rtprio entry on:
/etc/security/limits.d/mediacenter27.conf
and rebooting so it will fall back to using TS priorities (much less aggressive).

erviv:
OK thanks.  I do have the following added to the /etc/security/limits.conf file, although I am not sure if it is still required.

# End of file
pi              -       rtprio          100
@audio          -       rtprio          100
 Checking threading reveals this;

pi@raspberrypi:~ $ ps -T -eo pid,tid,class,rtprio,ni,pri,comm | grep mediacenter
22420 22420 TS       -   0  19 mediacenter27
22420 22573 TS       -   0  19 mediacenter27
22420 22575 TS       -   0  19 mediacenter27
22420 22577 TS       -   0  19 mediacenter27
22420 22588 TS       -   0  19 mediacenter27
22420 22649 TS       -   0  19 mediacenter27
22420  2525 TS       -   0  19 mediacenter27
22420  2526 TS       - -17  36 mediacenter27
22420  2527 TS       -  18   1 mediacenter27
22420  2548 RR       1   -  41 mediacenter27
22420  3711 TS       -  10   9 mediacenter27
22420  3712 TS       -   0  19 mediacenter27
pi@raspberrypi:~ $
I take it the  line showing a class  of  RR and rtprio being 1 is what indicates threading is working as desired.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version