[PlanetCCRMA] no realtime with latest kernel

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Tue Feb 22 12:15:00 2005


On Tue, 2005-02-22 at 12:01, Mark Knecht wrote:
> Hi Fernando,
>    I'm trying to get my laptop updated but running a new kernel from
> the Planet I'm not being allowed to run realtime:
> 
> [root@flash root]# uname -r
> 2.6.10-2.1.ll.rhfc2.ccrma
> [root@flash root]#
> 
> >From QJC's message window:
> 
> 11:53:55.813 Patchbay deactivated.
> 11:53:55.942 Statistics reset.
> 11:53:55.970 MIDI connection graph change.
> 11:54:00.097 Startup script...
> 11:54:00.097 artsshell -q terminate
> 11:54:00.340 Startup script terminated with exit status=256.
> 11:54:00.340 JACK is starting...
> 11:54:00.340 /usr/bin/jackd -R -p512 -dalsa -dhw:0 -r44100 -p256 -n2 -i2 -o2
> 11:54:00.352 JACK was started with PID=3198 (0xc7e).
> jackd 0.99.36
> Copyright 2001-2003 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 = 44100
> creating alsa driver ... hw:0|hw:0|256|2|44100|2|2|nomon|swmeter|-|32bit
> control device hw:0
> configuring for 44100Hz, period = 256 frames, buffer = 2 periods
> nperiods = 2 for capture
> nperiods = 2 for playback
> JACK: unable to mlock() port buffers: Cannot allocate memory
> jack_create_thread: error -1 switching current thread to rt for
> inheritance: Unknown error 4294967295
> cannot start watchdog thread
> cannot load driver module alsa
> 11:54:00.510 JACK was stopped successfully.
> 11:54:02.384 Could not connect to JACK server as client.

Make sure that you have the "rtload" package installed and active. If
you installed through the planetccrma-core-* meta packages it should be
there. 

> I don't know if anything special is supposed to be loaded anymore:
> 
> [root@flash root]# lsmod
> Module                  Size  Used by
> snd_mixer_oss          21504  2
> snd_seq                74896  0
> snd_seq_device          9740  1 snd_seq
> snd_atiixp             23776  3
> snd_ac97_codec         75256  1 snd_atiixp
> snd_pcm               120968  2 snd_atiixp,snd_ac97_codec
> snd_timer              37380  2 snd_seq,snd_pcm
> snd                    73732  9
> snd_mixer_oss,snd_seq,snd_seq_device,snd_atiixp,snd_ac97_codec,snd_pcm,snd_timer
> soundcore              11232  3 snd
> snd_page_alloc         10884  2 snd_atiixp,snd_pcm
> autofs4                28292  0
> kaweth                 21248  0
> iptable_filter          3712  0
> ip_tables              18944  1 iptable_filter
> 8139too                30208  0
> mii                     4864  1 8139too
> dm_mod                 62868  0
> joydev                  9792  0
> ohci_hcd               27784  0
> ehci_hcd               40836  0
> video                  15620  0
> button                  6544  0
> battery                 9220  0
> ac                      4740  0
> radeon                136452  2
> md5                     4224  1
> ipv6                  279232  8
> ext3                  135304  1
> jbd                    90264  1 ext3
> [root@flash root]#
> 
> What have I forgotten here? 

I don't see the "realtime" kernel module, that's what enables realtime
access for all or a group of users. There's a package that installs a
loader so that the module loads on every boot with the proper
parameters.

See if you have the package installed:
  rpm -q rtload
If you do, see if it is active:
  /sbin/chkconfig --list rtload
Or check the status:
  /etc/rc.d/init.d/rtload status

Both rtload and rtirq (the last one reorders the priority of irqs)
should have been installed through planetccrma-core, the latest version
is 2005.02.15. 

-- Fernando