[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] kernel scheduler hack




>The goal is to have my linux process, the "engine", invoked at a regular
>interval (60 times per second). We are successfully using a Real-Time
>Linux periodic task to produce an IO byte on a device called
>/dev/framrate at 60 Hz. I made the "engine" block on a read of this

I have a program sheduled reliably at 33Hz. It runs without RT-Linux,  I have
recompiled the kernel with HZ=1000 so 1 ms is the time slice.
You may get it at http://crds.chemie.unibas.ch/PCI-MIO-E/pcontrol-0.3.1.tgz
look at crdst.c

May I see the how did you initialised the RT priority of your engine? 
I am afraid that you need to mark BH or do wake_up or set need_reshed in your
RT kernel task, otherwhise it will wait to the next timer interrupt with the
switch.

--
Tomasz Motylewski

--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/