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.
RAM or RAMDISK for cache: need confirmation
Moderator: Mattk
Re: RAM or RAMDISK for cache: need confirmation
"/var/run" or "/var/run/meteohub" should be fine for that.
Meteohub is using this in the same manner.
Meteohub is using this in the same manner.