[Musix-usuarios] Re: rtirq (fixed)

Marcos Guglielmetti marcospcmusica en gmail.com
Lun Jul 16 19:38:09 CEST 2007


Thanks Rui Nuno Capela!

A patch was attached to fix this problem on Musix.

Un parche para solucionar este problema en Musix está adjuntado, utilizarlo, 
gracias:

 | Marcos Guglielmetti wrote:
 | > Hi
 | >
 | >
 | > I was wandering if rtirq was working well here on Musix, see:
 | >
 | > Linux musix1.0R2b1 2.6.21.5-rt18 #2 SMP PREEMPT RT Fri Jun 29 19:55:08
 | > EEST 2007 i686 GNU/Linux
 | >
 | >
 | > rtirq start
 | >
 | >  rtirq status
 | >
 | >   PID CLS RTPRIO  NI PRI %CPU STAT COMMAND
 | >    47 FF      50   -  90  0.0 S<   IRQ-9
 | >   226 FF      50   -  90  0.0 S<   IRQ-8
 | >   249 FF      50   -  90  0.1 S<   IRQ-14
 | >   252 FF      50   -  90  0.0 S<   IRQ-15
 | >   325 FF      50   -  90  0.0 S<   IRQ-12
 | >   326 FF      50   -  90  0.0 S<   IRQ-1
 | >   587 FF      50   -  90  0.1 S<   IRQ-10
 | >   594 FF      50   -  90  0.0 S<   IRQ-5
 | >   929 FF      50   -  90  0.0 S<   IRQ-6
 | >  1040 FF      50   -  90  0.0 S<   IRQ-11
 | >  1071 FF      50   -  90  0.0 S<   IRQ-7
 | >
 | >
 | > It seems to work fine: JACK does not gives me any xrun...
 |
 | It does seem that rtirq is NOT working at all,

8-)

 | or  in other words, is 
 | not touching the IRQ threads priorities. 
 | See, RTPRIO=50 is the rt-kernel 
 | default. You should have somethng similar (but not identical) as here:
 |
 | # /etc/init.d/rtirq start
 | rtirq: start [rtc] irq=8 pid=374 prio=90: OK.
 | rtirq: start [snd] irq=21 pid=1959 prio=85: OK.
 | rtirq: start [snd] irq=23 pid=2132 prio=84: OK.
 | rtirq: start [snd] irq=17 pid=2091 prio=83: OK.
 | rtirq: start [uhci_hcd] irq=16 pid=1794 prio=80: OK.
 | rtirq: start [uhci_hcd] irq=18 pid=1735 prio=79: OK.
 | rtirq: start [uhci_hcd] irq=19 pid=1767 prio=78: OK.
 | rtirq: start [ehci_hcd] irq=20 pid=1801 prio=80: OK.
 | rtirq: start [i8042] irq=1 pid=412 prio=75: OK.
 | rtirq: start [i8042] irq=12 pid=411 prio=74: OK.


 | # /etc/init.d/rtirq status
 |
 |   PID CLS RTPRIO  NI PRI %CPU STAT COMMAND
 |   374 FF      90   - 130  0.0 S<   IRQ-8        rtc
 |  1959 FF      85   - 125  0.0 S<   IRQ-21       sk98lin, ICE1712
 |  2132 FF      84   - 124  0.0 S<   IRQ-23       CS46XX
 |  2091 FF      83   - 123  0.3 S<   IRQ-17       Intel ICH5
 |  1794 FF      80   - 120  0.0 S<   IRQ-16       uhci_hcd:usb3
 |  1801 FF      80   - 120  0.0 S<   IRQ-20       ehci_hcd:usb4
 |  1735 FF      79   - 119  0.2 S<   IRQ-18       uhci_hcd:usb1, nvidia
 |  1767 FF      78   - 118  0.1 S<   IRQ-19       uhci_hcd:usb2
 |   412 FF      75   - 115  0.0 S<   IRQ-1        i8042
 |   411 FF      74   - 114  0.0 S<   IRQ-12       i8042
 |     5 FF      50   -  90  0.0 S<   softirq-high/0
 |     6 FF      50   -  90  0.4 S<   softirq-timer/0
 |       ...
 |
 | Maybe you'll have an older rtirq. 

Yes:

ls -la /etc/init.d/rtirq
-rwxr-xr-x 1 root root 5648 2005-12-08 01:45 /etc/init.d/rtirq

apt-cache show rtirq
Package: rtirq
Status: install ok installed
Priority: optional
Section: base
Installed-Size: 72
Maintainer: Free Ekanayaka <free en agnula.org>
Architecture: all
Version: 20050914-1
Depends: schedutils
Conffiles:
 /etc/default/rtirq 62a7f4ddaa9b6c5f2f7bcfbbc37d1dd2
 /etc/init.d/rtirq 55bae5f55c7bbc14326b1cd5cc3ff724
Description: Realtime IRQ
 This package contains scripts to prioritize IRQ thread handlers
 on a realtime-preemptible kernel



 | You can do the upgrade the dirty way, 
 | by grabbing
 |   http://www.rncbc.org/jack/rtirq-20070101.tar.gz.
 | Locate where your existing rtirq is installed (mine is in
 | "/etc/init.d/rtirq" as of LSB) bur yours may vary (as in debian which I
 | don't grok very well:)

rm /usr/bin/rtirq


Ok

Download from: http://www.rncbc.org/jack/rtirq-20070101.tar.gz

Now:



cd /etc/init.d

rm rtirq # ok, I dont need it, and I have backups


mv rtirq.sh rtirq

ln -s /etc/init.d/rtirq /usr/sbin/

(just to lauch it in an easy way)


 | .  Make a backup. Locate where your rtirq 
 | configuration is also. Make a backup. Replace the existing "rtirq"
 | script with the supplied "rtirq.sh". Do the same with the configuration
 | by "rtirq.conf" (LSB suggest that's "/etc/sysconfig/rtirq", but YMMV)

I dont see this on my system...

locate rtirq | grep conf
/mnt/hda1/knx/source/KNOPPIX/var/lib/dpkg/info/rtirq.conffiles
/mnt/hdb2/var/lib/dpkg/info/rtirq.conffiles
/mnt/hdb5/var/lib/dpkg/info/rtirq.conffiles
/mnt/hdb8/var/lib/dpkg/info/rtirq.conffiles
/var/lib/dpkg/info/rtirq.conffiles



* So, I just added it there, see:

ls -la /etc/sysconfig/rtirq.conf
-rw-r--r-- 1 root root 918 2007-01-01 21:30 /etc/sysconfig/rtirq.conf

* Rename it:

mv /etc/sysconfig/rtirq.conf /etc/sysconfig/rtirq


 | . 
 | Check and edit the new "rtirq" shell script and eventually change the
 | variable which points to the new configuration file, something like
 |   RTIRQ_CONFIG=/etc/sysconfig/rtirq

It's ok

 | If you were under an RPM based distro (which I think you aren't) you
 | could just go on your life with
 |   http://www.rncbc.org/jack/rtirq-20070101-18.noarch.rpm
 |
 | Good luck.
 | Cheers.

Thanks, now:


root en musix1:/etc/init.d# rtirq stop
root en musix1:/etc/init.d# rtirq start
rtirq: start [rtc] irq=8 pid=226 prio=90: OK.
rtirq: start [snd] irq=12 pid=325 prio=85: OK.
rtirq: start [snd] irq=10 pid=587 prio=84: OK.
rtirq: start [uhci_hcd] irq=5 pid=594 prio=80: OK.
rtirq: start [ehci_hcd] irq=11 pid=1040 prio=80: OK.
rtirq: start [i8042] irq=1 pid=326 prio=75: OK.
root en musix1:/etc/init.d# rtirq status

  PID CLS RTPRIO  NI PRI %CPU STAT COMMAND
  226 FF      90   - 130  0.0 S<   IRQ-8        rtc
  325 FF      85   - 125  0.1 S<   IRQ-12       uhci_hcd:usb3, VIA82XX-MODEM
  587 FF      84   - 124  0.8 S<   IRQ-10       uhci_hcd:usb1, EMU10K1
  594 FF      80   - 120  0.0 S<   IRQ-5        uhci_hcd:usb2
 1040 FF      80   - 120  0.0 S<   IRQ-11       ehci_hcd:usb4
  326 FF      75   - 115  0.0 S<   IRQ-1        i8042
    4 FF      50   -  90  0.0 S    softirq-high/0
    5 FF      50   -  90  0.7 S    softirq-timer/0
    6 FF      50   -  90  0.0 S    softirq-net-tx/
    7 FF      50   -  90  0.0 S    softirq-net-rx/
    8 FF      50   -  90  0.0 S    softirq-block/0
    9 FF      50   -  90  0.0 S    softirq-tasklet
   10 FF      50   -  90  0.0 S    softirq-sched/0
   11 FF      50   -  90  0.0 S    softirq-hrtimer
   12 FF      50   -  90  0.0 S    softirq-rcu/0
   47 FF      50   -  90  0.0 S<   IRQ-9        acpi
  249 FF      50   -  90  0.0 S<   IRQ-14       ide0
  252 FF      50   -  90  0.0 S<   IRQ-15       ide1
  929 FF      50   -  90  0.0 S<   IRQ-6
 1071 FF      50   -  90  0.0 S<   IRQ-7        parport0

Cheers,


-- 
     `&' 
      #    Marcos Guglielmetti, co-director de               
      #   Musix GNU+Linux, 100% Software Libre para artistas      
     _#_       http://www.musix.org.ar           
     (#)     
    / O \    + archivos: ftp://musix.ourproject.org/pub/musix
   ( === )   Ecología: http://autosus.wordpress.com    
    `---'    Personal: http://marcospcmusica.wordpress.com

"La libertad está en ser dueños de la propia vida." 
Aristóteles
------------ próxima parte ------------
Se ha borrado un mensaje que no está en formato texto plano...
Nombre     : fix-rtirq.sh
Tipo       : application/x-shellscript
Tamaño     : 502 bytes
Descripción: no disponible
Url        : /pipermail/musix-usuarios/attachments/20070716/301c976e/fix-rtirq.bin


Más información sobre la lista de distribución Musix-usuarios