On Sat, Sep 16, 2000 at 07:50:54PM -0400, b m ledvina wrote:
> Hello all,
>
> 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
Correct.
> 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), b) create a FIFO large
Actually, it's not that inefficient because it moves data into the reasonably
smart Linux file i/o system which is designed to move data fast.
A couple of copies is generally negligable when there is disk I/O at the end
of the pipe.
That said:
A) make sure your fifos are big
B) if you run into problems you might want to test some fifo changes I'm
playing with.
--
---------------------------------------------------------
Victor Yodaiken
Finite State Machine Labs: The RTLinux Company.
www.fsmlabs.com www.rtlinux.com
-- [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/