Re: [LAU] jackd: A lot of xruns

From: DuWayne Holsbeck <drh@email-addr-hidden>
Date: Wed Jun 13 2007 - 23:52:31 EEST

the 33.55 MB/sec is about minimum, the 17.12 MB/sec and 15.79 MB/sec
results make me think your hd is a bit too slow.

what is the output of hdparm -I "dd device"

Cheers
DuWayne

On Thu, 2007-06-14 at 22:30 +0200, Markus Herhoffer wrote:
> > If you run "hdparm -t /dev/'hd or sd1partion" tell you ?
>
> I measured it 3 times to get an idea of the average:
>
> # hdparm -t /dev/sda1
>
> /dev/sda1:
> Timing buffered disk reads: 52 MB in 3.04 seconds = 17.12 MB/sec
>
>
> # hdparm -t /dev/sda1
>
> /dev/sda1:
> Timing buffered disk reads: 50 MB in 3.17 seconds = 15.79 MB/sec
>
>
> # hdparm -t /dev/sda1
>
> /dev/sda1:
> Timing buffered disk reads: 100 MB in 2.98 seconds = 33.55 MB/sec
>
>
>
> >
> > On Thu, 2007-06-14 at 22:09 +0200, Markus Herhoffer wrote:
> >> I get the same high frequecy of xruns both with -p 1024 and 2048:
> >>
> >>
> >> 22:06:19.818 Patchbay deactivated.
> >> 22:06:19.953 Statistics reset.
> >> 22:06:20.126 MIDI connection graph change.
> >> 22:06:20.286 MIDI connection change.
> >> 22:07:01.574 Startup script...
> >> 22:07:01.574 artsshell -q terminate
> >> 22:07:02.935 Startup script terminated with exit status=256.
> >> 22:07:03.017 JACK is starting...
> >> 22:07:03.018 jackd -R -P7 -u -dalsa -r44100 -p1024 -n2 -D -Chw:0 -Phw:0
> >> 22:07:03.047 JACK was started with PID=9622 (0x2596).
> >> jackd 0.101.1
> >> 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.
> >> loading driver ..
> >> apparent rate = 44100
> >> creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
> >> control device hw:0
> >> configuring for 44100Hz, period = 1024 frames, buffer = 2 periods
> >> nperiods = 2 for capture
> >> nperiods = 2 for playback
> >> **** alsa_pcm: xrun of at least 0.017 msecs
> >> **** alsa_pcm: xrun of at least 0.015 msecs
> >> **** alsa_pcm: xrun of at least 0.018 msecs
> >> **** alsa_pcm: xrun of at least 0.016 msecs
> >> **** alsa_pcm: xrun of at least 0.011 msecs
> >> **** alsa_pcm: xrun of at least 0.014 msecs
> >> 22:07:05.146 Server configuration saved to "/home/d135-1r43/.jackdrc".
> >> 22:07:05.148 Statistics reset.
> >> 22:07:05.796 Client activated.
> >> 22:07:05.798 Audio connection change.
> >> 22:07:05.802 Audio connection graph change.
> >> 22:07:05.802 XRUN callback (1).
> >> **** alsa_pcm: xrun of at least 0.019 msecs
> >> **** alsa_pcm: xrun of at least 0.019 msecs
> >> **** alsa_pcm: xrun of at least 0.022 msecs
> >> **** alsa_pcm: xrun of at least 41.788 msecs
> >> **** alsa_pcm: xrun of at least 0.017 msecs
> >> **** alsa_pcm: xrun of at least 0.014 msecs
> >> **** alsa_pcm: xrun of at least 0.011 msecs
> >> **** alsa_pcm: xrun of at least 0.018 msecs
> >> **** alsa_pcm: xrun of at least 0.013 msecs
> >> **** alsa_pcm: xrun of at least 0.012 msecs
> >> 22:07:07.701 XRUN callback (8).
> >> 22:07:07.837 XRUN callback (7 skipped).
> >> **** alsa_pcm: xrun of at least 0.018 msecs
> >> **** alsa_pcm: xrun of at least 0.016 msecs
> >> **** alsa_pcm: xrun of at least 0.012 msecs
> >> **** alsa_pcm: xrun of at least 0.011 msecs
> >> 22:07:09.869 XRUN callback (3 skipped).
> >> **** alsa_pcm: xrun of at least 0.020 msecs
> >> **** alsa_pcm: xrun of at least 0.011 msecs
> >> 22:07:10.376 Client deactivated.
> >> 22:07:10.377 JACK is stopping...
> >> jack main caught signal 15
> >> no message buffer overruns
> >> 22:07:10.717 JACK was stopped successfully.
> >> 22:07:10.718 Post-shutdown script...
> >> 22:07:10.719 killall jackd
> >> jackd: no process killed
> >> 22:07:11.086 Post-shutdown script terminated with exit status=256.
> >> 22:08:22.296 Startup script...
> >> 22:08:22.297 artsshell -q terminate
> >> 22:08:22.867 Startup script terminated with exit status=256.
> >> 22:08:22.868 JACK is starting...
> >> 22:08:22.868 jackd -R -P7 -u -dalsa -r44100 -p2048 -n2 -D -Chw:0 -Phw:0
> >> 22:08:22.874 JACK was started with PID=9631 (0x259f).
> >> jackd 0.101.1
> >> 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.
> >> loading driver ..
> >> apparent rate = 44100
> >> creating alsa driver ... hw:0|hw:0|2048|2|44100|0|0|nomon|swmeter|-|32bit
> >> control device hw:0
> >> configuring for 44100Hz, period = 2048 frames, buffer = 2 periods
> >> nperiods = 2 for capture
> >> nperiods = 2 for playback
> >> **** alsa_pcm: xrun of at least 0.015 msecs
> >> **** alsa_pcm: xrun of at least 0.015 msecs
> >> **** alsa_pcm: xrun of at least 0.016 msecs
> >> **** alsa_pcm: xrun of at least 0.015 msecs
> >> **** alsa_pcm: xrun of at least 0.019 msecs
> >> 22:08:24.927 Server configuration saved to "/home/d135-1r43/.jackdrc".
> >> 22:08:24.928 Statistics reset.
> >> 22:08:24.931 Client activated.
> >> 22:08:24.932 Audio connection change.
> >> 22:08:24.935 Audio connection graph change.
> >> **** alsa_pcm: xrun of at least 0.017 msecs
> >> 22:08:25.686 XRUN callback (1).
> >> **** alsa_pcm: xrun of at least 0.029 msecs
> >> **** alsa_pcm: xrun of at least 0.028 msecs
> >> **** alsa_pcm: xrun of at least 0.012 msecs
> >> **** alsa_pcm: xrun of at least 0.013 msecs
> >> 22:08:26.970 XRUN callback (4 skipped).
> >> **** alsa_pcm: xrun of at least 0.020 msecs
> >> **** alsa_pcm: xrun of at least 0.013 msecs
> >> **** alsa_pcm: xrun of at least 0.017 msecs
> >> 22:08:28.870 XRUN callback (8).
> >> 22:08:29.002 XRUN callback (2 skipped).
> >> **** alsa_pcm: xrun of at least 0.027 msecs
> >> **** alsa_pcm: xrun of at least 0.012 msecs
> >> **** alsa_pcm: xrun of at least 0.010 msecs
> >> 22:08:31.042 XRUN callback (2 skipped).
> >> **** alsa_pcm: xrun of at least 0.019 msecs
> >> 22:08:31.310 XRUN callback (12).
> >> 22:08:31.745 Client deactivated.
> >> 22:08:31.746 JACK is stopping...
> >> jack main caught signal 15
> >> no message buffer overruns
> >> 22:08:32.001 JACK was stopped successfully.
> >> 22:08:32.003 Post-shutdown script...
> >> 22:08:32.003 killall jackd
> >> jackd: no process killed
> >> 22:08:32.215 Post-shutdown script terminated with exit status=256.
> >>
> >> DuWayne Holsbeck wrote:
> >>> Being that you probably do not need really low latencey, if you are not
> >>> doing overdubs, you could change your period setting to 1024 or greater
> >>> frames vs the 256 setting. This usually works for me, I have an A31
> >>> thinkpad, with many hours of live recording use, both with the onboard
> >>> chip and an RME HDSP.
> >>>
> >>> Cheers
> >>> DRH
> >>>
> >>> On Thu, 2007-06-14 at 21:44 +0200, Markus Herhoffer wrote:
> >>>> Hi!
> >>>>
> >>>> I want to use Jack on my Thinkpad X60s notebook with the built in
> >>>> soundchip. I know that this is not the best hardware, but I need a
> >>>> possibility to record some things mobile.
> >>>>
> >>>> I get quite a few xruns every time I start jack with qjackctl -- too
> >>>> many to work efficiently. I use Gentoo kernel 2.6.20-gentoo-r8,
> >>>> realtime-lsm as module and the kernel option "Preemption Model
> >>>> (Preemptible Kernel (Low-Latency Desktop))".
> >>>>
> >>>> This is the output of qjackctl (I stopped Jack intentionally):
> >>>>
> >>>> 21:40:29.357 Patchbay deactivated.
> >>>> 21:40:29.486 Statistics reset.
> >>>> 21:40:29.553 MIDI connection graph change.
> >>>> 21:40:29.727 MIDI connection change.
> >>>> 21:40:31.468 Startup script...
> >>>> 21:40:31.468 artsshell -q terminate
> >>>> 21:40:32.225 Startup script terminated with exit status=256.
> >>>> 21:40:32.293 JACK is starting...
> >>>> 21:40:32.293 jackd -R -P7 -u -dalsa -r44100 -p256 -n2 -D -Chw:0 -Phw:0
> >>>> 21:40:32.295 JACK was started with PID=9380 (0x24a4).
> >>>> jackd 0.101.1
> >>>> 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.
> >>>> loading driver ..
> >>>> apparent rate = 44100
> >>>> creating alsa driver ... hw:0|hw:0|256|2|44100|0|0|nomon|swmeter|-|32bit
> >>>> control device hw:0
> >>>> configuring for 44100Hz, period = 256 frames, buffer = 2 periods
> >>>> nperiods = 2 for capture
> >>>> nperiods = 2 for playback
> >>>> **** alsa_pcm: xrun of at least 0.015 msecs
> >>>> **** alsa_pcm: xrun of at least 0.014 msecs
> >>>> **** alsa_pcm: xrun of at least 0.016 msecs
> >>>> **** alsa_pcm: xrun of at least 0.011 msecs
> >>>> **** alsa_pcm: xrun of at least 0.013 msecs
> >>>> **** alsa_pcm: xrun of at least 0.015 msecs
> >>>> **** alsa_pcm: xrun of at least 0.011 msecs
> >>>> **** alsa_pcm: xrun of at least 0.018 msecs
> >>>> **** alsa_pcm: xrun of at least 0.015 msecs
> >>>> **** alsa_pcm: xrun of at least 0.017 msecs
> >>>> **** alsa_pcm: xrun of at least 0.011 msecs
> >>>> **** alsa_pcm: xrun of at least 0.017 msecs
> >>>> **** alsa_pcm: xrun of at least 0.014 msecs
> >>>> **** alsa_pcm: xrun of at least 0.013 msecs
> >>>> **** alsa_pcm: xrun of at least 0.014 msecs
> >>>> 21:40:34.356 Server configuration saved to "/home/d135-1r43/.jackdrc".
> >>>> 21:40:34.357 Statistics reset.
> >>>> 21:40:34.380 Client activated.
> >>>> 21:40:34.382 Audio connection change.
> >>>> 21:40:34.391 Audio connection graph change.
> >>>> **** alsa_pcm: xrun of at least 0.015 msecs
> >>>> **** alsa_pcm: xrun of at least 0.039 msecs
> >>>> 21:40:34.446 XRUN callback (1).
> >>>> **** alsa_pcm: xrun of at least 0.013 msecs
> >>>> **** alsa_pcm: xrun of at least 0.015 msecs
> >>>> **** alsa_pcm: xrun of at least 0.017 msecs
> >>>> **** alsa_pcm: xrun of at least 0.011 msecs
> >>>> **** alsa_pcm: xrun of at least 0.026 msecs
> >>>> **** alsa_pcm: xrun of at least 0.010 msecs
> >>>> **** alsa_pcm: xrun of at least 0.014 msecs
> >>>> **** alsa_pcm: xrun of at least 0.016 msecs
> >>>> **** alsa_pcm: xrun of at least 0.016 msecs
> >>>> **** alsa_pcm: xrun of at least 0.016 msecs
> >>>> **** alsa_pcm: xrun of at least 0.014 msecs
> >>>> **** alsa_pcm: xrun of at least 0.010 msecs
> >>>> **** alsa_pcm: xrun of at least 0.011 msecs
> >>>> 21:40:35.649 Client deactivated.
> >>>> 21:40:35.651 JACK is stopping...
> >>>> jack main caught signal 15
> >>>> no message buffer overruns
> >>>> 21:40:35.904 JACK was stopped successfully.
> >>>> 21:40:35.907 Post-shutdown script...
> >>>> 21:40:35.907 killall jackd
> >>>> jackd: no process killed
> >>>> 21:40:36.242 Post-shutdown script terminated with exit status=25
> >>>>
> >>>> These are my cards:
> >>>>
> >>>> # cat /proc/asound/cards
> >>>> 0 [Intel ]: HDA-Intel - HDA Intel
> >>>> HDA Intel at 0xee240000 irq 22
> >>>>
> >>>> # lspci | grep Audio
> >>>> 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High
> >>>> Definition Audio Controller (rev 02)
> >>>>
> >>>> What to do? Are there some things to tweak?
> >>>>
> >>>> Markus
> >>>> _______________________________________________
> >>>> Linux-audio-user mailing list
> >>>> Linux-audio-user@email-addr-hidden
> >>>> http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user
> >>> _______________________________________________
> >>> Linux-audio-user mailing list
> >>> Linux-audio-user@email-addr-hidden
> >>> http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user
> >> _______________________________________________
> >> Linux-audio-user mailing list
> >> Linux-audio-user@email-addr-hidden
> >> http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user
> >
> > _______________________________________________
> > Linux-audio-user mailing list
> > Linux-audio-user@email-addr-hidden
> > http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user
>
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user@email-addr-hidden
> http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user
Received on Thu Jun 14 00:15:04 2007

This archive was generated by hypermail 2.1.8 : Thu Jun 14 2007 - 00:15:05 EEST