FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Studio User

 
 
LinkBack Thread Tools
 
Old 05-13-2008, 09:51 AM
atuc
 
Default Jack rt problems in hardy

hallo

i also have problems with the rt kernel on hardy and my usb m-audio
fasttrack, the standard kernel works better for me.

i found this:

http://ubuntuforums.org/showthread.php?t=781104

alex

> 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
>
>


--
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
 
Old 05-13-2008, 10:18 AM
rob free
 
Default Jack rt problems in hardy

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:
> 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
> >
> >


--
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
 
Old 05-13-2008, 11:00 AM
rob free
 
Default Jack rt problems in hardy

Hi

what would you suggest then compiling a kernel with the options
mentioned in the link you sent? or maybe switching to another distro? I
dont have the standard kernel installed. Is it worth installing is it
usable in terms of latency without xruns?

On Tue, 2008-05-13 at 11:51 +0200, atuc wrote:
> hallo
>
> i also have problems with the rt kernel on hardy and my usb m-audio
> fasttrack, the standard kernel works better for me.
>
> i found this:
>
> http://ubuntuforums.org/showthread.php?t=781104
>
> alex
>
> > 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
> >
> >
>
>


--
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
 
Old 05-13-2008, 11:54 AM
"Cory K."
 
Default Jack rt problems in hardy

Can someone try adding *nohz=off* to their grub line?

Example:

title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=d01c8f74-2cb0-4f2e-940e-8428084b03f3 ro quiet splash *nohz=off*
initrd /boot/initrd.img-2.6.24-16-generic
quiet



-Cory m/

--
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
 
Old 05-13-2008, 11:58 AM
Fabien Juchniewicz
 
Default Jack rt problems in hardy

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@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
> >
> >






--
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
 
Old 05-13-2008, 12:03 PM
"Cory K."
 
Default Jack rt problems in hardy

Cory K. wrote:
> Can someone try adding *nohz=off* to their grub line?
>
> Example:
>
> title Ubuntu 8.04, kernel 2.6.24-16-generic
> root (hd0,1)
> kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=d01c8f74-2cb0-4f2e-940e-8428084b03f3 ro quiet splash *nohz=off*
> initrd /boot/initrd.img-2.6.24-16-generic
> quiet
>

Sorry *nohz=off* should be: nohz=off.

-Cory m/

--
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
 
Old 05-13-2008, 12:47 PM
altern
 
Default Jack rt problems in hardy

Cory K.(e)k dio:
> Cory K. wrote:
>> Can someone try adding *nohz=off* to their grub line?
>>
>> Example:
>>
>> title Ubuntu 8.04, kernel 2.6.24-16-generic
>> root (hd0,1)
>> kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=d01c8f74-2cb0-4f2e-940e-8428084b03f3 ro quiet splash *nohz=off*
>> initrd /boot/initrd.img-2.6.24-16-generic
>> quiet
>>
>
> Sorry *nohz=off* should be: nohz=off.

what is this exactly doing?

enrike

--
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
 
Old 05-13-2008, 03:45 PM
rob free
 
Default Jack rt problems in hardy

I've added nohz=off to my rt grub line and run jack with nice - 15 and
I dont seem to have any xruns with a latency of 8ms. so many thanks for
your help Fabien and Cory !
Robin






--
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
 
Old 05-13-2008, 03:54 PM
"Cory K."
 
Default Jack rt problems in hardy

rob free wrote:
> I've added nohz=off to my rt grub line and run jack with nice - 15 and
> I dont seem to have any xruns with a latency of 8ms. so many thanks for
> your help Fabien and Cory !
> Robin
>

I'd like others to try this and report. If this is the problem, we can
get a kernel fix in soon.

-Cory m/


--
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
 
Old 05-13-2008, 05:11 PM
atuc
 
Default Jack rt problems in hardy

Cory K. schrieb:
> rob free wrote:
>> I've added nohz=off to my rt grub line and run jack with nice - 15 and
>> I dont seem to have any xruns with a latency of 8ms. so many thanks for
>> your help Fabien and Cory !
>> Robin
>>
>
> I'd like others to try this and report. If this is the problem, we can
> get a kernel fix in soon.
>
> -Cory m/
>
>
yes super, its definitely better with the nohz=off boot option, i just
testet with 8ms, this was inpossible before,

thanks,
best,
alex

--
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
 

Thread Tools




All times are GMT. The time now is 10:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org