RAM or RAMDISK for cache: need confirmation

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
jmcafee
Junior Boarder
Junior Boarder
Posts: 26
Joined: Sun Nov 11, 2012 12:11 pm

RAM or RAMDISK for cache: need confirmation

Post 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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7878
Joined: Mon Oct 01, 2007 10:51 pm

Re: RAM or RAMDISK for cache: need confirmation

Post by admin »

"/var/run" or "/var/run/meteohub" should be fine for that.
Meteohub is using this in the same manner.
Post Reply