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 > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 09-24-2012, 09:06 PM
Ralf Mardorf
 
Default xruns - differen kenerls & graphics

Subject was: Re: [arch-general] Switching back from nouveau doesn't work - Was: Proprietary nvidia driver for different kernels
On Sat, 2012-09-22 at 18:00 +0200, Joakim Hernberg wrote:
> One thing did catch my attention though. you have your rme audio card
> in a slot that shares irq with the nvidia and with several usb
> devices. Imo that is really asking for trouble and you need to at the
> very least get your soundcard to use another interrupt than the nvidia
> card...

Hi

I switched from a NVIDIA PCIe graphics to the integrated ATI. In the
past the shared IRQ didn't cause xruns for the latency test, this is
what rtirq is for.

Using the ATI's FLOSS driver Google Earth can be used, so I don't need
the NVIDIA anymore, it only was needed when the ATI on Linux had no 3D
acceleration, the proprietary driver didn't work.

The first latency test for the kernel-rt failed with a xrun, while the
NVIDIA graphics still was mounted [1]. The second test for the default
kernel is ok, no xrun. The test run 3 times [2].

After removing the NVIDIA card, BIOS setting 256MB framebuffer, still
256MB RAM are missing. The latency test for the kernel-rt again failed
with a xrun [3].

Even if the shared IRQ should be the culprit, it's strange that there
are no xruns, when using a default kernel, not to mention that the Jack
MIDI latency test isn't an audio test, so there isn't load regarding to
audio.

Later or tomorrow I'll test, if the proprietary ATI driver should
improve the situation, assumed it should work nowadays with the
integrated graphics. I'll also take a look at the kernel-rt's config. In
the past I build kernels-rt and full preempt kernels with threadirqs
myself, current kernels-rt I tested are from the Arch repositories.

IIRC only difference between my kernels and the Arch repository
kernels-rt was, that I enabled tickless system (dynamic ticks) and that
some were and other were not build with CONFIG_MK8=y.

Regards,
Ralf

[1]
[spinymouse@archlinux ~]$ date
Mon Sep 24 21:09:43 CEST 2012
[spinymouse@archlinux ~]$ uname -a
Linux archlinux 3.4.11-rt19-1-rt #1 SMP PREEMPT RT Fri Sep 21 13:19:10 UTC 2012 x86_64 GNU/Linux
[spinymouse@archlinux ~]$ hdspmixer
Card 0: RME AIO S/N 0x579bcc at 0xfddf0000, irq 18
Card 1: TerraTec EWX24/96 at 0xaf00, irq 20
Card 2: TerraTec EWX24/96 at 0xab00, irq 21
[spinymouse@archlinux ~]$ pacman -Qi xf86-video-nouveau
error: package 'xf86-video-nouveau' was not found
[spinymouse@archlinux ~]$ pacman -Qi xf86-video-ati
Version : 1:6.14.6-1
[spinymouse@archlinux ~]$ sudo cpupower frequency-set -g performance
[spinymouse@archlinux ~]$ /etc/rc.d/rtirq status
PID CLS RTPRIO NI PRI %CPU STAT COMMAND
62 FF 90 - 130 0.0 S irq/8-rtc0
294 FF 85 - 125 0.0 S irq/18-snd_hdsp
331 FF 80 - 120 0.0 S irq/20-snd_ice1
334 FF 79 - 119 0.0 S irq/21-snd_ice1
98 FF 70 - 110 0.0 S irq/19-ehci_hcd
101 FF 70 - 110 0.5 S irq/16-ohci_hcd
120 FF 69 - 109 0.0 S irq/17-ohci_hcd
124 FF 68 - 108 0.0 S irq/17-ohci_hcd
60 FF 65 - 105 0.0 S irq/1-i8042
20 FF 50 - 90 0.0 S irq/9-acpi
103 FF 50 - 90 0.2 S irq/22-ahci
113 FF 50 - 90 0.0 S irq/14-pata_ati
114 FF 50 - 90 0.0 S irq/15-pata_ati
122 FF 50 - 90 0.0 S irq/18-ohci_hcd
126 FF 50 - 90 0.0 S irq/18-ohci_hcd
269 FF 50 - 90 0.0 S irq/7-parport0
292 FF 50 - 90 0.0 S irq/22-firewire
303 FF 50 - 90 0.0 S irq/18-radeon
337 FF 50 - 90 0.0 S irq/18-nouveau
584 FF 50 - 90 0.0 S irq/43-eth0
3 FF 1 - 41 0.1 S ksoftirqd/0
11 FF 1 - 41 0.1 S ksoftirqd/1
[spinymouse@archlinux ~]$ jackd --sync -Xalsarawmidi -dalsa -r48000 -p256jackdmp 1.9.8
[spinymouse@archlinux ~]$ jack_midi_latency_test -m 3 -s 8192 -t 5 "system:1-1 HDSPMx579bcc MIDI 1 1 out" "system:1-1 HDSPMx579bcc MIDI 1 1 in"
Xruns: 1

[2]
[spinymouse@archlinux ~]$ date
Mon Sep 24 21:46:01 CEST 2012
[spinymouse@archlinux ~]$ uname -a
Linux archlinux 3.5.4-1-ARCH #1 SMP PREEMPT Sat Sep 15 08:12:04 CEST 2012 x86_64 GNU/Linux
[spinymouse@archlinux ~]$ hdspmixer
Card 0: RME AIO S/N 0x579bcc at 0xfdff0000, irq 18
Card 1: TerraTec EWX24/96 at 0xaf00, irq 20
Card 2: TerraTec EWX24/96 at 0xab00, irq 21
[spinymouse@archlinux ~]$ sudo cpupower frequency-set -g performance
[spinymouse@archlinux ~]$ /etc/rc.d/rtirq status
PID CLS RTPRIO NI PRI %CPU STAT COMMAND
3 TS - 0 19 0.0 S ksoftirqd/0
10 TS - 0 19 0.0 S ksoftirqd/1
[spinymouse@archlinux ~]$ jackd --sync -Xalsarawmidi -dalsa -r48000 -p256
jackdmp 1.9.8
[spinymouse@archlinux ~]$ jack_midi_latency_test -m 3 -s 8192 -t 5 "system:1-1 HDSPMx579bcc MIDI 1 1 out" "system:1-1 HDSPMx579bcc MIDI 1 1 in"
Waiting for connections ...
Waiting for test completion ...

Reported out-port latency: 5.33-5.33 ms (256-256 frames)
Reported in-port latency: 5.33-5.33 ms (256-256 frames)
Average latency: 11.66 ms (559.54 frames)
Lowest latency: 11.65 ms (559 frames)
Highest latency: 11.71 ms (562 frames)
Peak MIDI jitter: 0.06 ms (3 frames)
Average MIDI jitter: 0.01 ms (0.02 frames)

Jitter Plot:
0.0 - 0.1 ms: 8192

Latency Plot:
11.6 - 11.7 ms: 8190
11.7 - 11.8 ms: 2

Messages sent: 8192
Messages received: 8192
[spinymouse@archlinux ~]$ jack_midi_latency_test -m 3 -s 8192 -t 5 "system:1-1 HDSPMx579bcc MIDI 1 1 out" "system:1-1 HDSPMx579bcc MIDI 1 1 in"
Waiting for connections ...
Waiting for test completion ...

Reported out-port latency: 5.33-5.33 ms (256-256 frames)
Reported in-port latency: 5.33-5.33 ms (256-256 frames)
Average latency: 11.66 ms (559.54 frames)
Lowest latency: 11.64 ms (559 frames)
Highest latency: 11.71 ms (562 frames)
Peak MIDI jitter: 0.06 ms (3 frames)
Average MIDI jitter: 0.01 ms (0.01 frames)

Jitter Plot:
0.0 - 0.1 ms: 8192

Latency Plot:
11.6 - 11.7 ms: 8191
11.7 - 11.8 ms: 1

Messages sent: 8192
Messages received: 8192
[spinymouse@archlinux ~]$ jack_midi_latency_test -m 3 -s 8192 -t 5 "system:1-1 HDSPMx579bcc MIDI 1 1 out" "system:1-1 HDSPMx579bcc MIDI 1 1 in"
Waiting for connections ...
Waiting for test completion ...

Reported out-port latency: 5.33-5.33 ms (256-256 frames)
Reported in-port latency: 5.33-5.33 ms (256-256 frames)
Average latency: 11.66 ms (559.63 frames)
Lowest latency: 11.65 ms (559 frames)
Highest latency: 12.95 ms (621 frames)
Peak MIDI jitter: 1.31 ms (62 frames)
Average MIDI jitter: 0.01 ms (0.05 frames)

Jitter Plot:
0.0 - 0.1 ms: 8191
1.2 - 1.3 ms: 1

Latency Plot:
11.6 - 11.7 ms: 8185
11.7 - 11.8 ms: 6
12.9 - 13.0 ms: 1

Messages sent: 8192
Messages received: 8192

[3]
[spinymouse@archlinux ~]$ hwinfo --memory
Memory Size: 3 GB + 512 MB
[spinymouse@archlinux ~]$ date
Mon Sep 24 22:29:49 CEST 2012
[spinymouse@archlinux ~]$ uname -r
3.4.11-rt19-1-rt
[spinymouse@archlinux ~]$ hdspmixer
Card 0: RME AIO S/N 0x579bcc at 0xfdff0000, irq 18
Card 1: TerraTec EWX24/96 at 0xbf00, irq 20
Card 2: TerraTec EWX24/96 at 0xbb00, irq 21
[spinymouse@archlinux ~]$ sudo cpupower frequency-set -g performance
[spinymouse@archlinux ~]$ /etc/rc.d/rtirq status
PID CLS RTPRIO NI PRI %CPU STAT COMMAND
59 FF 90 - 130 0.0 S irq/8-rtc0
314 FF 85 - 125 0.0 S irq/18-snd_hdsp
321 FF 80 - 120 0.0 S irq/20-snd_ice1
324 FF 79 - 119 0.0 S irq/21-snd_ice1
110 FF 70 - 110 0.0 S irq/19-ehci_hcd
112 FF 70 - 110 0.2 S irq/16-ohci_hcd
115 FF 69 - 109 0.0 S irq/17-ohci_hcd
119 FF 68 - 108 0.0 S irq/17-ohci_hcd
57 FF 65 - 105 0.0 S irq/1-i8042
20 FF 50 - 90 0.0 S irq/9-acpi
100 FF 50 - 90 0.1 S irq/22-ahci
117 FF 50 - 90 0.0 S irq/18-ohci_hcd
121 FF 50 - 90 0.0 S irq/18-ohci_hcd
124 FF 50 - 90 0.0 S irq/14-pata_ati
125 FF 50 - 90 0.0 S irq/15-pata_ati
269 FF 50 - 90 0.0 S irq/7-parport0
304 FF 50 - 90 0.0 S irq/22-firewire
318 FF 50 - 90 0.0 S irq/18-radeon
574 FF 50 - 90 0.0 S irq/42-eth0
3 FF 1 - 41 0.1 S ksoftirqd/0
11 FF 1 - 41 0.0 S ksoftirqd/1
[spinymouse@archlinux ~]$ jackd --sync -Xalsarawmidi -dalsa -r48000 -p256
jackdmp 1.9.8
[spinymouse@archlinux ~]$ jack_midi_latency_test -m 3 -s 8192 -t 5 "system:1-1 HDSPMx579bcc MIDI 1 1 out" "system:1-1 HDSPMx579bcc MIDI 1 1 in"
Waiting for connections ...
Waiting for test completion ...

Reported out-port latency: 5.33-5.33 ms (256-256 frames)
Reported in-port latency: 5.33-5.33 ms (256-256 frames)
Average latency: 11.68 ms (560.64 frames)
Lowest latency: 11.64 ms (559 frames)
Highest latency: 11.75 ms (564 frames)
Peak MIDI jitter: 0.11 ms (5 frames)
Average MIDI jitter: 0.01 ms (0.07 frames)

Jitter Plot:
0.0 - 0.1 ms: 8191
> 10 ms: 1

Latency Plot:
11.6 - 11.7 ms: 7696
11.7 - 11.8 ms: 495
> 21.6 ms: 1

Messages sent: 8192
Messages received: 8192
Xruns: 1
 
Old 09-24-2012, 10:12 PM
Joakim Hernberg
 
Default xruns - differen kenerls & graphics

On Mon, 24 Sep 2012 23:06:57 +0200
Ralf Mardorf <ralf.mardorf@alice-dsl.net> wrote:

> 294 FF 85 - 125 0.0 S irq/18-snd_hdsp
> 122 FF 50 - 90 0.0 S irq/18-ohci_hcd
> 126 FF 50 - 90 0.0 S irq/18-ohci_hcd
> 303 FF 50 - 90 0.0 S irq/18-radeon
> 337 FF 50 - 90 0.0 S irq/18-nouveau

This isn't looking all that good.. Afaik, you really ought to prefer
having that snd_hdsp on it's own irq, but if not, then at least you
need to raise the priority to around the same for the rest of the
threads on the same irq...

--

Joakim
 
Old 09-25-2012, 02:12 AM
Ralf Mardorf
 
Default xruns - differen kenerls & graphics

On Tue, 2012-09-25 at 00:12 +0200, Joakim Hernberg wrote:
> On Mon, 24 Sep 2012 23:06:57 +0200
> Ralf Mardorf <ralf.mardorf@alice-dsl.net> wrote:
>
> > 294 FF 85 - 125 0.0 S irq/18-snd_hdsp
> > 122 FF 50 - 90 0.0 S irq/18-ohci_hcd
> > 126 FF 50 - 90 0.0 S irq/18-ohci_hcd
> > 303 FF 50 - 90 0.0 S irq/18-radeon
> > 337 FF 50 - 90 0.0 S irq/18-nouveau
>
> This isn't looking all that good.. Afaik, you really ought to prefer
> having that snd_hdsp on it's own irq, but if not, then at least you
> need to raise the priority to around the same for the rest of the
> threads on the same irq...

I guess it's impossible to change the IRQ. Assumed that rtirq fits to
the current kernel version, it's easy to raise the priority of
the others that share IRQ 18 (but it's not wanted).

Note! In the past I never run into this trouble:
http://www.digipedia.pl/usenet/thread/11091/63/

Btw. there's no audio load, so xruns are really strange.

The config was
[spinymouse@archlinux ~]$ grep RTIRQ_NAME_LIST /etc/conf.d/rtirq
RTIRQ_NAME_LIST="rtc snd_hdsp snd_ice1 snd usb i8042"

New trial (the RMR card still get xruns)
[spinymouse@archlinux ~]$ sudo cpupower frequency-set -g performance
[spinymouse@archlinux ~]$ /etc/rc.d/rtirq status
PID CLS RTPRIO NI PRI %CPU STAT COMMAND
59 FF 90 - 130 0.0 S irq/8-rtc0
298 FF 85 - 125 0.0 S irq/18-snd_hdsp
331 FF 85 - 125 0.0 S irq/20-snd_ice1
333 FF 85 - 125 0.0 S irq/21-snd_ice1
293 FF 80 - 120 0.0 S irq/18-radeon
106 FF 75 - 115 0.1 S irq/16-ohci_hcd
119 FF 74 - 114 0.0 S irq/17-ohci_hcd
130 FF 73 - 113 0.0 S irq/17-ohci_hcd
104 FF 70 - 110 0.0 S irq/19-ehci_hcd
57 FF 65 - 105 0.0 S irq/1-i8042
20 FF 50 - 90 0.0 S irq/9-acpi
109 FF 50 - 90 0.8 S irq/22-ahci
121 FF 50 - 90 0.0 S irq/14-pata_ati
122 FF 50 - 90 0.0 S irq/15-pata_ati
128 FF 50 - 90 0.0 S irq/18-ohci_hcd
132 FF 50 - 90 0.0 S irq/18-ohci_hcd
285 FF 50 - 90 0.0 S irq/7-parport0
291 FF 50 - 90 0.2 S irq/22-firewire
583 FF 50 - 90 0.0 S irq/42-eth0
3 FF 1 - 41 0.3 S ksoftirqd/0
11 FF 1 - 41 0.3 S ksoftirqd/1
[spinymouse@archlinux ~]$ grep RTIRQ_NAME_LIST /etc/conf.d/rtirq
#RTIRQ_NAME_LIST="rtc snd_hdsp snd_ice1 snd usb i8042"
RTIRQ_NAME_LIST="rtc snd radeon ohci_hcd usb i8042"
[spinymouse@archlinux ~]$ jackd --sync -Xalsarawmidi -dalsa -r48000 -p256
jackdmp 1.9.8

[spinymouse@archlinux ~]$ jack_midi_latency_test -m 3 -s 8192 -t 5 "system:1-1 HDSPMx579bcc MIDI 1 1 out" "system:1-1 HDSPMx579bcc MIDI 1 1 in"
Waiting for connections ...
Waiting for test completion ...

Reported out-port latency: 5.33-5.33 ms (256-256 frames)
Reported in-port latency: 5.33-5.33 ms (256-256 frames)
Average latency: 11.68 ms (560.54 frames)
Lowest latency: 11.65 ms (559 frames)
Highest latency: 11.75 ms (564 frames)
Peak MIDI jitter: 0.10 ms (5 frames)
Average MIDI jitter: 0.01 ms (0.05 frames)

Jitter Plot:
0.0 - 0.1 ms: 8192

Latency Plot:
11.6 - 11.7 ms: 7822
11.7 - 11.8 ms: 370

Messages sent: 8192
Messages received: 8192
[spinymouse@archlinux ~]$ jack_midi_latency_test -m 3 -s 8192 -t 5 "system:1-1 HDSPMx579bcc MIDI 1 1 out" "system:1-1 HDSPMx579bcc MIDI 1 1 in"
Waiting for connections ...
Waiting for test completion ...

Reported out-port latency: 5.33-5.33 ms (256-256 frames)
Reported in-port latency: 5.33-5.33 ms (256-256 frames)
Average latency: 11.69 ms (560.64 frames)
Lowest latency: 11.67 ms (560 frames)
Highest latency: 11.75 ms (564 frames)
Peak MIDI jitter: 0.08 ms (4 frames)
Average MIDI jitter: 0.03 ms (0.06 frames)

Jitter Plot:
0.0 - 0.1 ms: 8186
> 10 ms: 6

Latency Plot:
11.6 - 11.7 ms: 7709
11.7 - 11.8 ms: 477
> 21.6 ms: 6

Messages sent: 8192
Messages received: 8192
Xruns: 6
[spinymouse@archlinux ~]$ jack_midi_latency_test -m 3 -s 8192 -t 5 "system:2-1 TerraTec EWX24/96 MIDI 1 out" "system:2-1 TerraTec EWX24/96 MIDI 1 in"
Waiting for connections ...
Waiting for test completion ...

Reported out-port latency: 5.33-5.33 ms (256-256 frames)
Reported in-port latency: 5.33-5.33 ms (256-256 frames)
Average latency: 11.69 ms (561.05 frames)
Lowest latency: 11.67 ms (560 frames)
Highest latency: 11.75 ms (564 frames)
Peak MIDI jitter: 0.08 ms (4 frames)
Average MIDI jitter: 0.00 ms (0.01 frames)

Jitter Plot:
0.0 - 0.1 ms: 8192

Latency Plot:
11.6 - 11.7 ms: 7771
11.7 - 11.8 ms: 421

Messages sent: 8192
Messages received: 8192
[spinymouse@archlinux ~]$ jack_midi_latency_test -m 3 -s 8192 -t 5 "system:2-1 TerraTec EWX24/96 MIDI 1 out" "system:2-1 TerraTec EWX24/96 MIDI 1 in"
Waiting for connections ...
Waiting for test completion ...

Reported out-port latency: 5.33-5.33 ms (256-256 frames)
Reported in-port latency: 5.33-5.33 ms (256-256 frames)
Average latency: 11.69 ms (561.04 frames)
Lowest latency: 11.67 ms (560 frames)
Highest latency: 11.75 ms (564 frames)
Peak MIDI jitter: 0.08 ms (4 frames)
Average MIDI jitter: 0.00 ms (0.01 frames)

Jitter Plot:
0.0 - 0.1 ms: 8192

Latency Plot:
11.6 - 11.7 ms: 7798
11.7 - 11.8 ms: 394

Messages sent: 8192
Messages received: 8192

Regards,
Ralf
 

Thread Tools




All times are GMT. The time now is 04:48 PM.

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