Setting priority of audio group apps

Optimize your system for ultimate performance.

Moderators: khz, MattKingUSA

Setting priority of audio group apps

Postby fourfour » Mon Oct 24, 2011 12:21 am

When I run jackd and other apps, they do not run in realtime. The priority is always 20. I can use renice to change the priority, but I can't run things in realtime by default. How do I change this? I'm using Xubuntu and have gone through the standard Ubuntu set up for jack.
fourfour
Establlshed Member
 
Posts: 32
Joined: Sat May 28, 2011 6:16 pm

Re: Setting priority of audio group apps

Postby Pablo » Mon Oct 24, 2011 4:07 pm

Hi,

Assuming your user already has rtprio privilege, you don't have to do anything else than keeping the default "realtime mode" in qjackctl, afaik.

Maybe you are confused (as I was once) because jackd is "multithread" and you are only seeing the threads which are not realtime. I don't think you have to worry about those.

Cheers, Pablo
Pablo
Establlshed Member
 
Posts: 832
Joined: Thu Apr 17, 2008 9:57 pm

Re: Setting priority of audio group apps

Postby fourfour » Mon Feb 20, 2012 6:54 am

Code: Select all
~$ ps -eLo rtprio,cmd |grep jack
     - /bin/sh /usr/bin/qjackctl
     - /usr/bin/pasuspender -- /usr/lib/qjackctl/qjackctl.real
     - /usr/lib/qjackctl/qjackctl.real
     - /usr/lib/qjackctl/qjackctl.real
     - /usr/lib/qjackctl/qjackctl.real
     - /usr/lib/qjackctl/qjackctl.real
     - /usr/bin/jackd -P1 -p128 -dalsa -r44100 -p256 -n4 -D -Chw:0,0 -Phw:0,0
     - /usr/bin/jackd -P1 -p128 -dalsa -r44100 -p256 -n4 -D -Chw:0,0 -Phw:0,0
     1 /usr/bin/jackd -P1 -p128 -dalsa -r44100 -p256 -n4 -D -Chw:0,0 -Phw:0,0
     - /usr/bin/jackd -P1 -p128 -dalsa -r44100 -p256 -n4 -D -Chw:0,0 -Phw:0,0
     - grep --color=auto jack


Code: Select all
~$ ps -eLo rtprio,cmd |grep yoshimi
     - yoshimi -j -l /home/me/audio/songs/mysong/preset.xmz
     - yoshimi -j -l /home/me/audio/songs/mysong/preset.xmz
     - yoshimi -j -l /home/me/audio/songs/mysong/preset.xmz
     - yoshimi -j -l /home/me/audio/songs/mysong/preset.xmz
     - yoshimi -j -l /home/me/audio/songs/mysong/preset.xmz
     - grep --color=auto yoshimi

By the looks of it, it seems that Jack is running in real time, but Yoshimi is not. Is there some other method I should be using to determine priority?
fourfour
Establlshed Member
 
Posts: 32
Joined: Sat May 28, 2011 6:16 pm

Re: Setting priority of audio group apps

Postby Capoeira » Wed Feb 22, 2012 1:27 am

fourfour wrote:[code]~$ ps -eLo rtprio,cmd |grep jack

By the looks of it, it seems that Jack is running in real time, but Yoshimi is not. Is there some other method I should be using to determine priority?


you can use htop. by default the priority is disabled....enable in "setup"
User avatar
Capoeira
Establlshed Member
 
Posts: 1112
Joined: Tue May 12, 2009 1:01 pm
Location: Brazil

Re: Setting priority of audio group apps

Postby slowpick » Thu Feb 23, 2012 4:52 am

look at your .jackdrc file. In jackd1, the -R option enables realtime, if available.

In jackd2, this is reversed, realtime is the default, if available, and the -R option is
only used to turn it off, should the need exist.

Jackd2 is not automatically 'the best'. Linux users must go with the flow
of the hardware they have available, and what software works with it.
Very little is carved in stone. :wink:

As I recall, jackd 1.9.7, 1.9.8 and higher, is jackd2, while 0.116, 0.118, 0.121 are jackd1
It's easy to bork things with odd mixes of libjack0 variants, so double check synaptic
details, whenever installing audio software.
slowpick
Establlshed Member
 
Posts: 457
Joined: Mon Apr 25, 2011 10:09 am


Return to System Tuning and Configuration

Who is online

Users browsing this forum: No registered users and 2 guests