More > JRiver Media Center 23 for Linux
Thread priorities
Wybe:
I'm on Debian Jessie and MC 23.0.21 and I performed the steps to get thread priorities working. At first it did not work, but I found out that it didn't work because I autostart MC with the /mediaserver option. I have two questions:
1. Can someone confirm that thread priorities does not work when you autostart MC with the /mediaserver option?
2. Does it makes sense to configure thread priorities when you only use the Media network option (to a UPNP device)? In other words, I do not output audio via usb or a soundcard.
Greetings, Wybe
bob:
--- Quote from: Wybe on September 15, 2017, 10:44:11 am ---I'm on Debian Jessie and MC 23.0.21 and I performed the steps to get thread priorities working. At first it did not work, but I found out that it didn't work because I autostart MC with the /mediaserver option. I have two questions:
1. Can someone confirm that thread priorities does not work when you autostart MC with the /mediaserver option?
2. Does it makes sense to configure thread priorities when you only use the Media network option (to a UPNP device)? In other words, I do not output audio via usb or a soundcard.
Greetings, Wybe
--- End quote ---
I just tested that on my system and it still creates thread priorities even if you use the /mediaserver option.
If you are outputting to a UPnP device it's not as useful.
Wybe:
I added Nice=-10 to /etc/systemd/system/jriver.service to give mediacenter23 a higher priority. What do you think of that?
[Unit]
Description=JRiver
After=display-manager.service
[Service]
Nice=-10
Type=simple
Environment=DISPLAY=:0
User=your_user_here
ExecStart=/usr/bin/mediacenter23 /MediaServer
Restart=always
RestartSec=10
KillSignal=SIGHUP
TimeoutStopSec=45
[Install]
WantedBy=graphical.target
bob:
--- Quote from: Wybe on September 20, 2017, 03:28:05 am ---I added Nice=-10 to /etc/systemd/system/jriver.service to give mediacenter23 a higher priority. What do you think of that?
[Unit]
Description=JRiver
After=display-manager.service
[Service]
Nice=-10
Type=simple
Environment=DISPLAY=:0
User=your_user_here
ExecStart=/usr/bin/mediacenter23 /MediaServer
Restart=always
RestartSec=10
KillSignal=SIGHUP
TimeoutStopSec=45
[Install]
WantedBy=graphical.target
--- End quote ---
If thread priorities are working that's better than nice-ing the whole thing.
If the user you are specifying in the service start exists and is in the audio group and you configured the limits.conf you should be seeing the different priorities for the MC 23 threads.
Wybe:
You're right, but I'm only outputting to a UPNP device, so thread priorities aren't as useful. I looked for an alternative to give MC some more priority (and get even closer to the holy grail of reproducing recorded music!).
Navigation
[0] Message Index
[#] Next page
Go to full version