:: Re: [DNG] Tmpfs
トップ ページ
このメッセージを削除
このメッセージに返信
著者: Enrico Weigelt, metux IT consult
日付:  
To: dng
題目: Re: [DNG] Tmpfs
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

--
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@??? -- +49-151-27565287