[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Idea: mount /tmp to tmpfs depending on free space and RAM



[Serge]
> Well, nobody named the benefits yet.

[Wouter Verhelst]
> - You could mount your mail spool there, and make things go blazingly
>   fast [1]
[...]
> - There's no danger of a symlink attack or similar with things like
>   tmpreaper -- or indeed any need for tmpreaper anymore. You reboot the
>   system, and /tmp is clean again, no matter what was there before. This
>   is more than just a convenience.

I've happily been using tmpfs on /tmp/ for probably ten years now, and
can list some more benefits:

 - It allow diskless setups like LTSP to work the same way the default
   installation in Debian work.  They use read-only NFS-mounted file
   systems and a writable tmpfs mounted on /tmp/.

 - It reduces the number of disk writes on a laptop, allowing it to
   spin down the disk a bit longer.
-- 
Happy hacking,
Petter Reinholdtsen


Reply to: