Jack rt problems in hardy
Fabien Juchniewicz
fabien at juchniewicz.eu
Tue May 13 12:58:06 BST 2008
Here is my limits.conf :
@audio - rtprio 99
@audio - nice -15
@audio - memlock unlimited
To achieve a good latency (10 ms), I launch jackd with the command nice
-n-15 before. Here is the command in qjackctl (server path) :
nice -n-15 /usr/bin/jackd
To achieve an ultra low latency (< 2.67 ms), I have to stop the Network
Manager...
Hope this helps.
Le mardi 13 mai 2008 à 12:18 +0200, rob free a écrit :
> Hi,
> no there was'nt such a line and adding it has got rid of the error
> messages about memory but not of the Xruns...
>
> Does anyone know if this is normal:
>
> rob at robuntu:~$ chrt -p 6188
> pid 6188's current scheduling policy: SCHED_OTHER
> pid 6188's current scheduling priority: 0
>
> (6188 is the jackd pid):
>
> 12:11:19.957 Startup script terminated with exit status=256.
>
> 12:11:19.958 JACK is starting...
>
> 12:11:19.958 /usr/bin/jackd -R -dalsa -dhw:1 -r48000 -p128 -n3 -D -Chw:1
> -m -i2 -o2
>
> 12:11:19.960 JACK was started with PID=6188.
>
>
>
> from some reading I've been doing on the web I would have expected jackd
> to have a SCHED_FIFO policy with a fairly high priority, I may be
> mistaken....
>
> Robin
>
>
> On Tue, 2008-05-13 at 11:29 +0200, Fabien Juchniewicz wrote:
> > Is there a line like the one below in your /etc/security/limits.conf ?
> >
> > @audio - memlock XXXXXXXXXX
> >
> > /Fabien
> >
> >
> >
> > Le mardi 13 mai 2008 à 11:14 +0200, rob free a écrit :
> > > Hi everyone,
> > > I'm having lots of trouble running jack (from jackQtl) in ubuntu studio
> > > 8.04 . I am using a USB sound card : Alesis io2 and Jack Xruns like
> > > crazy on all settings! I get some error messages at start up :
> > >
> > >
> > >
> > > 11:01:39.739 Startup script terminated with exit status=256.
> > >
> > > 11:01:39.740 JACK is starting...
> > >
> > > 11:01:39.740 /usr/bin/jackd -R -P70 -dalsa -dhw:1 -r48000 -p128 -n3 -D
> > > -Chw:1 -i2 -o2
> > >
> > > 11:01:39.744 JACK was started with PID=7429.
> > >
> > > jackd 0.109.2
> > >
> > > Copyright 2001-2005 Paul Davis and others.
> > >
> > > jackd comes with ABSOLUTELY NO WARRANTY
> > >
> > > This is free software, and you are welcome to redistribute it
> > >
> > > under certain conditions; see the file COPYING for details
> > >
> > > JACK compiled with System V SHM support.
> > >
> > > cannot lock down memory for jackd (Cannot allocate memory)
> > >
> > > loading driver ..
> > >
> > > apparent rate = 48000
> > >
> > > creating alsa driver ... hw:1|hw:1|128|3|48000|2|2|nomon|swmeter|-|32bit
> > >
> > > control device hw:1
> > >
> > > configuring for 48000Hz, period = 128 frames (2.7 ms), buffer = 3
> > > periods
> > >
> > > ALSA: final selected sample format for capture: 24bit little-endian
> > >
> > > ALSA: use 3 periods for capture
> > >
> > > ALSA: final selected sample format for playback: 24bit little-endian
> > >
> > > ALSA: use 3 periods for playback
> > >
> > > JACK: unable to mlock() port buffers: Cannot allocate memory
> > >
> > > JACK: unable to mlock() port buffers: Cannot allocate memory
> > >
> > > 11:01:41.796 Server configuration saved to "/home/rob/.jackdrc".
> > >
> > > 11:01:41.797 Statistics reset.
> > >
> > > 11:01:41.799 Client activated.
> > >
> > > 11:01:41.800 JACK connection change.
> > >
> > > 11:01:41.804 JACK connection graph change.
> > >
> > > cannot lock down memory for RT thread (Cannot allocate memory)
> > >
> > > 11:01:56.259 XRUN callback (1).
> > >
> > >
> > >
> > > Does anyone know why jack cannot allocate memory? Any suggestions?
> > > Thanks for your time!
> > > Robin
> > >
> > >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-studio-users/attachments/20080513/de9f86da/attachment.htm
More information about the Ubuntu-Studio-users
mailing list