:: Re: [DNG] Tmpfs
Etusivu
Poista viesti
Vastaa
Lähettäjä: al3xu5
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] Tmpfs
Thu, 13 Jun 2024 15:39:56 +0200 - "Enrico Weigelt, metux IT consult"
<lkml@???>:

> On 05.06.24 16:15, Kevin Chadwick via Dng wrote:
> > What do people think of this
> >
> > https://news.itsfoss.com/debian-13-tmp-mounting/
>
> IMHO, it always should been in tmpfs, for many reaons.
>
> /tmp was invented for *temporary* stuff (things that usually should be
> deleted soon) and should be removed on next reboot. (actually, back in
> the 90s I've often been angry about long bootup times due rm'ing /tmp)
>
> Earlier versions of tmpfs (actually, ramfs) had a major drawback: non-
> swappable. But that's long gone: on memory pressure the pages can get
> swapped out exactly like userland pages.
>
> Therefore, /tmp (and /var/tmp is practically the same - often even just
> symlinked) really *should* go into tmpfs (probably even w/o memory
> limit), because
>
> a) much lower load on disk/ssd (gets written out *only* when necessary)
>     and no extra write load for metadata (that a disk fs *must* do)
> b) therefore *much* better performance (note that it's often also used
>     as some form of IPC), much less stress on the physical medium
> c) safely cleaned on next reboot or remount

>
>
> --mtx


+1

Regards
alexus


--
The only way humans have learned to survive brings them to extinction.
______________________________________________________________________
Public GPG/PGP key: 8FC2 3121 2803 86E9 F7D8 B624 DA50 835B 2624 A36B