<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.1">
</HEAD>
<BODY>
Here is my limits.conf :<BR>
<BR>
<BLOCKQUOTE>
    <BLOCKQUOTE>
        <TT>@audio                  -          rtprio          99</TT><BR>
        <TT>@audio                  -          nice                  -15</TT><BR>
        <TT>@audio                  -         memlock&nbsp;         unlimited</TT><BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BR>
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) :<BR>
<BR>
<BLOCKQUOTE>
    <BLOCKQUOTE>
        <TT>nice -n-15 /usr/bin/jackd</TT><BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BR>
To achieve an ultra low latency (&lt; 2.67 ms), I have to stop the Network Manager...<BR>
<BR>
<BR>
Hope this helps.<BR>
<BR>
<BR>
Le mardi 13 mai 2008 &#224; 12:18 +0200, rob free a &#233;crit :
<BLOCKQUOTE TYPE=CITE>
<PRE>
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@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:
&gt; Is there a line like the one below in your /etc/security/limits.conf ?
&gt; 
&gt;             @audio - memlock  XXXXXXXXXX
&gt; 
&gt; /Fabien
&gt; 
&gt; 
&gt; 
&gt; Le mardi 13 mai 2008 &#224; 11:14 +0200, rob free a &#233;crit : 
&gt; &gt; Hi everyone,
&gt; &gt; I'm having lots of trouble running jack (from jackQtl) in ubuntu studio
&gt; &gt; 8.04 . I am using a USB sound card : Alesis io2 and Jack Xruns like
&gt; &gt; crazy on all settings! I get some error messages at start up :
&gt; &gt; 
&gt; &gt; 
&gt; &gt; 
&gt; &gt; 11:01:39.739 Startup script terminated with exit status=256.
&gt; &gt; 
&gt; &gt; 11:01:39.740 JACK is starting...
&gt; &gt; 
&gt; &gt; 11:01:39.740 /usr/bin/jackd -R -P70 -dalsa -dhw:1 -r48000 -p128 -n3 -D
&gt; &gt; -Chw:1 -i2 -o2
&gt; &gt; 
&gt; &gt; 11:01:39.744 JACK was started with PID=7429.
&gt; &gt; 
&gt; &gt; jackd 0.109.2
&gt; &gt; 
&gt; &gt; Copyright 2001-2005 Paul Davis and others.
&gt; &gt; 
&gt; &gt; jackd comes with ABSOLUTELY NO WARRANTY
&gt; &gt; 
&gt; &gt; This is free software, and you are welcome to redistribute it
&gt; &gt; 
&gt; &gt; under certain conditions; see the file COPYING for details
&gt; &gt; 
&gt; &gt; JACK compiled with System V SHM support.
&gt; &gt; 
&gt; &gt; cannot lock down memory for jackd (Cannot allocate memory)
&gt; &gt; 
&gt; &gt; loading driver ..
&gt; &gt; 
&gt; &gt; apparent rate = 48000
&gt; &gt; 
&gt; &gt; creating alsa driver ... hw:1|hw:1|128|3|48000|2|2|nomon|swmeter|-|32bit
&gt; &gt; 
&gt; &gt; control device hw:1
&gt; &gt; 
&gt; &gt; configuring for 48000Hz, period = 128 frames (2.7 ms), buffer = 3
&gt; &gt; periods
&gt; &gt; 
&gt; &gt; ALSA: final selected sample format for capture: 24bit little-endian
&gt; &gt; 
&gt; &gt; ALSA: use 3 periods for capture
&gt; &gt; 
&gt; &gt; ALSA: final selected sample format for playback: 24bit little-endian
&gt; &gt; 
&gt; &gt; ALSA: use 3 periods for playback
&gt; &gt; 
&gt; &gt; JACK: unable to mlock() port buffers: Cannot allocate memory
&gt; &gt; 
&gt; &gt; JACK: unable to mlock() port buffers: Cannot allocate memory
&gt; &gt; 
&gt; &gt; 11:01:41.796 Server configuration saved to &quot;/home/rob/.jackdrc&quot;.
&gt; &gt; 
&gt; &gt; 11:01:41.797 Statistics reset.
&gt; &gt; 
&gt; &gt; 11:01:41.799 Client activated.
&gt; &gt; 
&gt; &gt; 11:01:41.800 JACK connection change.
&gt; &gt; 
&gt; &gt; 11:01:41.804 JACK connection graph change.
&gt; &gt; 
&gt; &gt; cannot lock down memory for RT thread (Cannot allocate memory)
&gt; &gt; 
&gt; &gt; 11:01:56.259 XRUN callback (1).
&gt; &gt; 
&gt; &gt; 
&gt; &gt; 
&gt; &gt; Does anyone know why jack cannot allocate memory? Any suggestions?
&gt; &gt; Thanks for your time!
&gt; &gt; Robin
&gt; &gt; 
&gt; &gt; 


</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>