Re: Moving /tmp to tmpfs makes it useless
- To: Debian Developers <email@example.com>
- Subject: Re: Moving /tmp to tmpfs makes it useless
- From: Thomas Goirand <firstname.lastname@example.org>
- Date: Sat, 02 Jun 2012 19:33:26 +0800
- Message-id: <4FC9FA06.email@example.com>
- In-reply-to: <firstname.lastname@example.org>
- References: <CAOVenEo+CT6Ou_vHq8HvuCz1NdW0Ogq5UqxMZh-4Qkw4e01CsA@mail.gmail.com> <20120525003051.GA1497@jwilk.net> <email@example.com> <CAOVenEqx1VLBmn4eJdFJ29PUj5ebJp9DHrMea7gprF8+GZd5Fg@mail.gmail.com> <4FBF16A3.firstname.lastname@example.org> <20120525101420.GA6872@khazad-dum.debian.net> <email@example.com>
On 06/01/2012 06:50 PM, Goswin von Brederlow wrote:
> There is also no problem with having large files in tmpfs. Only
> requirement is that you make tmpfs large enough and add enough ram
> and/or swap to cope with it.
Well, there's the problem that it will take some memory at least. So
either your tmpfs is too small, either it eats all your RAM. None are
good options, unless you have a ridiculous huge amount of RAM available.
And that's why we shouldn't have it *by default* (that's the only thing
we are discussing here, not the fact that tmpfs is good or not, please
don't "hijack" the debate).
> All the complaints about /tmp as tmpfs come down to one simple issue:
> The size of the tmpfs isn't chosen well. It would be more constructive
> to find a better heuristic for the size there.
No. The complain is that it will never be big enough for some cases. If
you tell me that it should be twice as big as now, then I'll tell you:
what if we have to handle files twice as big as what you thought to
begin with? If you tell me 4 times, I'll tell you about files 4 times
bigger as well, and so on...
So it all goes down to a simple fact: in nearly all cases, we have a lot
more HDD space than we have RAM, which is why /tmp needs to be using the
HDD. There's never a case where tmpfs /tmp will be big enough to handle
all situations, while using HDD has a lot more chance to be able to cope
Anyway, if you're an expect, no problem, choose tmpfs if you want. But
don't force it to all users as a default which might break and that some
users wont understand. This is just too risky to have some users saying
"linux is crap, libreoffice can't open big PPT files, it gets horribly
slow, then crashes the whole system so much that I have to reboot".
Probably that's wrong, but it's still going to be the comments of our
users. Will you be watching firstname.lastname@example.org and our forum, and
explain each of them? Will you take the time to explain this to my wife
and my mom (good luck...)?