In article
wwvr3q9q7a0.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf 87AxnpFoA.invalid,
Richard Kettlewell wrote:
If your goal is to avoid physical writes if possible, then a tmpfs is a
good bet.
Is that something I can expect anyone who used my programs to either
already have, or be happy to setup?
I'd wondered about the above but didn't try it for the following reasons:
RISC OS provides a 'ram' filing system as standard and its reasonably
commonly used. So my RISC OS programs often also use it. Fast and avoids
any 'wear and tear' on hard discs. But there isn't anything obviously
like it on my Mint boxes (or earlier other distros). e.g. no 'icon' on
the backdrop saying 'ram' or 'tempfs' or any hint of a way in. Which
does seem to imply such stuff isn't for ordinary users.
To expand on that: I just checked my (Mint) laptop and it does have a
tempfs set up for /run. And inside that I find, for example, /run/usr/1000
directory that presumably for tempfiles associated with things being run
already for me as user 1000. I can create files, etc, in that when
operating as myself, so don't need to be root. Seems OK for me.
But can I take for granted that the bulk of others who might want to
use my programs also have something like that which I can easily and
reliably use? Ideally for me, a location with the same address for
all users, so I can just use that as the directory to put my tempfiles.
With my RO machines I just use a file with a name like ram::ramdisc0.$.fred
(RO is inherently single user). But what would I do that would 'run
anywhere'? Preferrably without any faffing about probing where a suitable
location might be for a stream of tempfiles.
At present I'm just repeatedly creating a file called (with impressive
originality!) 'tempfile' inside the application's directory. That's
trivially easy for me to do, but risks wear and tear, and may be slower
than a ram based location.
I've done a websearch on this but not found a 'how to' as yet that
makes this simple and clear. So some advice would be welcome as I would
prefer using ram / tempfs if I can understand it, and it's simple
enough for my limited understanding! :-)
Jim
--
Please use the address on the audiomisc page if you wish to email me.
Electronics
http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio
http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc
http://www.audiomisc.co.uk/index.html