Page 1 of 1

RAM or RAMDISK for cache: need confirmation

Posted: Mon May 13, 2013 8:11 pm
by jmcafee
To prevent flash wear, I want to use either RAM cache or a RAMDISK to hold temporary data. For a tiny file of a couple of hundred bytes is there any issue caching it in /var/log (which looks like it is a small RAMDISK and is barely used)? Alternatively, is the pipe used for stdout/stdin cached entirely in RAM?

I want to push near real time data (rapid fire) to my web page. I will run a shell script to query the sensor data every 5-10 seconds, and ftp the output to my web server.

Any problems with this plan?

Thank you.

Re: RAM or RAMDISK for cache: need confirmation

Posted: Tue May 14, 2013 10:30 pm
by admin
"/var/run" or "/var/run/meteohub" should be fine for that.
Meteohub is using this in the same manner.