Mailinglist Archive: opensuse-factory (435 mails)

< Previous Next >
Re: [opensuse-factory] Proposal: /tmp as tmpfs
On Fri, Jul 10, 2020 at 5:49 AM Richard Brown <rbrown@xxxxxxx> wrote:

Hello community,

We recently moved MicroOS and Kubic to use tmpfs for /tmp instead of
writing files there to disk.

Right off the bat, +1 .. I have been using this since a long time..that said..

- Reducing wear on SSDs/SD card storage

This is actually a non issue with modern SSD devices.

- Using less disk space and being more tidy generally

I'd buy the more tidy argument.. see..
you unfortunately cannot trust software to clean after themselves..
this is the sad state of things and one of the main reasons this has
to be done, as long as something uses the mk*stmp* tmpn* interfaces
will continue happen. (tmpfile() now uses O_TMPFILE so it is excluded
from nasties list)

The impact should be minimal, as all POSIX compliant applications
should already assume that /tmp is not persistant between invocations
of the program.

Those who don't are broken, yes.

We will likely impliment this as systemd mount unit, meaning if people
disable it then they will be able to return to the old behaviour.

Yes, it is as simple as re-adding and enabling one upstream unit by default.

Does anyone have any objections, concerns, thoughts?

Not really.
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
This Thread