View Single Post
  #1   Spotlight this post!  
Unread 09-12-2011, 18:27
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Writing a logger for cRIO - flash memory and wear leveling

Hello all,

I wrote a small logging utility that has many VI's pushing log messages onto a queue, and one VI periodically consuming that queue and writing log events to disk.

How concerned should I be about wearing out the memory of the cRIO? What best practices can be followed to extend the lifetime of the device?

For example, I have read that the minimum write size for the vxWorks system is 8192 bytes. My current implementation caches log lines until it is approximately ~8000 bytes long and then writes to disk. By doing this, am I actually avoiding multiple writes, or is it equivalent to flushing every line (~100 bytes) to disk immediately?
Reply With Quote