Re: realtime section bugs still around

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/1/2012 12:55 AM, Jason Newton wrote:

>> Just to figure out for sure what the bottlenecks are and whether they can
> be dealt with rather than looking at it as opaque system and assuming
> nothing can be done.  Also as a learning experience.

Jason, have you considered something like this to solve your problems?

RAM is cheap.  Far cheaper than attacking this problem with any other
hardware type.  And you can't easily solve it by rewriting to use AIO,
given the effort involved with that.

You should be able to fit 32GB of RAM on the board.  Create a 24GB RAM
disk and use that for writing your 5.7MB frame files in real time.  This
eliminates any latency and stutter issues during capture.  Treat the RAM
disk as a FIFO, taking each new file and copying it out to SSD after
it's been closed, then delete the original.  This gives you in essence a
very fast buffer.  If my math is correct, 24,000MB / 300MB/s = roughly
80 seconds of buffer at a 300MB/s streaming capture rate, 40 seconds at
600MB/s.

This should be very easy to implement, and cheaper than all other
alternatives.  It should eliminate all possible latency issues, though
it will increase CPU cycles due to the data movement to/from the RAM
disk, though how much I can't guess at this point.  8GB RAM disk will
give you 26 seconds of buffering at 300MB/s, and a 4GB RAM disk will
give you 13 seconds of buffering.  If 13 seconds is sufficient, you can
implement this on a machine with only 8GB RAM, assuming you need no more
than 4GB for kernel/user space/application.

-- 
Stan

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux