[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] A New Linux Box
[27/10/08 09:10] Richard Ibbotson wrote:
> On Monday 27 October 2008 08:57:07 Peter Humphrey wrote:
>> (Aside: there is a trick to enable vast package compilations:
>> define /tmp as tmpfs and set its size big enough for the
>> compilations, 6 GB in my case, and create plenty of swap for it to
>> roll out into on those rare occasions when it's needed. This is my
>> fstab line:
>> tmpfs /tmp tmpfs nodev,nosuid,size=6g
>> 0 0 )
>
> Yes. Sounds a bit like OpenBSD/NetBSD/UNIX in general.
AIUI (and please correct me if I'm wrong) using tmpfs for /tmp makes a
fake filesystem (like what we used to call a RAM-drive) in memory (using
both RAM and swap).
Is the advantage purely one of speed, because most of the time (you
hope) you're manipulating the virtual /tmp/* files in RAM rather than
reading and writing to disk?
And when swap is being used for this too, it's no slower than /tmp/* on
disk would be anyway?
To do this, how much extra swap needs to be allowed?
_______________________________________________
Sheffield Linux User's Group
http://sheflug.org.uk/mailman/listinfo/sheflug_sheflug.org.uk
FAQ at: http://www.sheflug.org.uk/mailfaq.html
GNU - The Choice of a Complete Generation