On Sat, 16 Sep 2000, b m ledvina wrote:

> I have a rt module that collects data at a relatively high rate (50Hz.)
> I'm currently writing this data to a FIFO, but I would prefer to write
> it to a file since the data size is quite large (~100MB per day), so I'm
> wondering what options I have.  Am I correct in believing that writing
> to standard files in rt modules is not a good idea?  Given that

It is just not possible as far as I know.

> assumption, I could a) write to the FIFO, have a user process
> continuously read the data and rewrite it to a file (basically a copy
> procedure which seems very inefficient to me

Why inefficient? You are memory/memory copy is fast, and you are doing only
one disk write. Just do

cat /dev/rtf0 > your_file

),  b) create a FIFO large
> enough to store all the data each day or 

FIFO is not a disk file! Data you write to FIFO are stored in memory, not on
disk and live only until the FIFO is closed.


> c) somehow pipe the data from
> the FIFO to a file (does this circumvent the reading/writing overhead of
> simply copying?)  Any ideas?

Same as a). RT-FIFO _is_ a pipe. There is not other way to use it.

--
Tomek

-- [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/

Reply via email to