From this, I gather that RAM-directory /run/user/1000 is accessible by me, and by processes running under my account (I'm uid 1000).
I'm working on an application that needs to write a small packet of data every 10 seconds. In order to minimize wear on the SD-card, I want to write it to a tmpfs, and then copy accumulated packets to the SD-card every hour or so.
I have this, after startup.
me@Rpi:~ $ df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 22904 0 22904 0% /run/user/1000
I could use it for my application, or create a new, dedicated one. The latter option, I assume will never conflict with other user processes, but I guess it will occupy RAM, and there's only 256 MB of it.
So is there any best practice here?