INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Linux => Topic started by: realysm42 on November 27, 2018, 12:10:15 am

Title: Threading
Post by: realysm42 on November 27, 2018, 12:10:15 am
I’m not sure if this is the right place but seems better than starting a new one for it - can you tell me what threads/programmes MC runs on Linux please?

I want to set it and all of it’s associated programs to their own core on my cpu as wel as make them real time priority.
Title: Re: Threading
Post by: bob on November 27, 2018, 09:03:22 am
I’m not sure if this is the right place but seems better than starting a new one for it - can you tell me what threads/programmes MC runs on Linux please?

I want to set it and all of it’s associated programs to their own core on my cpu as wel as make them real time priority.
You don't want to make them all real-time.
MC has it's own thread priorities. If your user or group has RT permissions you can see that by doing this from a prompt with MC running:
Code: [Select]
ps -T -eo pid,tid,class,rtprio,ni,pri,comm | grep mediacenter
The following is a copy from the Raspberry Pi instructions. It applies equally to all MC linux builds.

Setting Thread Priorites for Improved Performance

To help ensure fewer dropouts and more seamless operation on a resource contrained sytem like a raspberry pi, you should set mediacenter to have greater priority over CPU time.  To set the thread priorities, type
Code: [Select]
sudo nano /etc/security/limits.conf

This will open limits.conf for editing. Enter the following at the bottom of the file (if the file is empty when you open it, that's fine too):
Code: [Select]
pi - rtprio         100
@audio - rtprio 100

Then type the following into the terminal.
Code: [Select]
sudo usermod -aG audio pi

After your next reboot, Mediacenter should have improved thread priorities.

Title: Re: Threading
Post by: realysm42 on December 01, 2018, 06:57:22 pm
Hi Bob, thanks for your detailed reply.

I take your point on the priorities - I'd still like to have all of MC's operations on their own CPU core though; with that in mind, can you list all of the threads JRiver runs in linux please?
Title: Re: Threading
Post by: JimH on December 01, 2018, 09:41:16 pm
We don't provide such detail.  Sorry.