You could use soft-realtime in "normal" linux. That way your
userspace app will always have the highest priority and will run when
it is not blocked. Becarefull because soft-realtime can also lockup yer
machine, when you make a while(1); and turn on SCHED_FIFO your
machine will lockup. Just take a look at the pthread man pages.
- Erwin
Robert Findlay wrote:
>
> I have developed an application under RTL1.1
>
> It consists of an RT module which gathers data at 8kHz from some hardware
> and pumps it out an rtfifo in 100 byte chunks. The user process does a
> select on that fifo followed by a read. In the mode I'm running at
> present the user process is set into "loopback" so it takes that chunk
> being read and writes it immediately to another rtfifo. My RT module has
> a handler installed which writes the incoming bytes back to the hardware.
>
> This is all being run on a 200MHz+ Pentium class machine.
>
> It runs flawlessly for several hours. At some point the harddisc starts
> to thrash and my user process stops being dinged on the select. All the
> processes are still running (because I have my RT module writing a
> heartbeat message to another rtfifo every 5 seconds or so).
>
> Is there some background process in Linux which comes along periodically to
> do lots of disc I/O which would disrupt my user process sufficiently to
> cause my 4k rtfifo to overflow? If so how can I overcome this in my
> design? Is there a way to "detect" depth in my rtfifo? (I know there is
> something on the RTLinux site which writes to /proc)
>
> Thanks.
> --- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ----
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/~rtlinux/
--
Q - S O F T - E N G I N E E R I N G
Rodachtalweg 11, 81549 Muenchen, Germany
Erwin Rol (Software Engineer) phone: +49-89-68050051
[EMAIL PROTECTED] fax : +49-89-68050052
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/