More > JRiver Media Center 27 for Linux

Micro freezes audio [Solved]

<< < (5/9) > >>

erviv:
Ok, I did a search on nice and ionice. I take it the idea is to use these commands in terminal, but I don’t know what pid to use as this varies on restart of the application.

Gedeon:
With pidof you can get the pid.

$ pidof mediacenter27
3599
$ ionice -c2 -n0 -p3599


erviv:
Thanks for the suggestion, it gave me something new to investigate and learn.
 Based on the example you provided I checked the current class and priority of Mediacenter27.
First I ran pidof mediacenter27 and learned in this instance the pid was 1079.  I confirmed that the pid changes with each restart of MC; the new one now being 17255.  So I checked  ionice -p 17525.  The return was none; prio 0.  Based on what i am reading from the online linux manual I this means class best effort ( if no class is specified the process takes none or 0 the same as 2 best effort, and priority 0 is the highest priority). I stopped and restarted MC27 again just to confirm the class and priority remained the same with each change of pid and yes it did (as to be expected).
So I think the system is already set as per your suggestion -c2 (best effort) -n0 (highest priority).

Gedeon:
Just try If ionice or nice  finally solves microfreezes

If any of those works then a small script could be added to automatically start always MC with the modified priority.

Gedeon:
You can try "nice" with negative values (to increase CPU priority for MC) and ionice in order to add MC to real time class, instead of best effort.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version