Re: Moving /tmp to tmpfs makes it useless
- To: Salvo Tomaselli <email@example.com>
- Cc: firstname.lastname@example.org, "Ted Ts'o" <email@example.com>
- Subject: Re: Moving /tmp to tmpfs makes it useless
- From: Goswin von Brederlow <firstname.lastname@example.org>
- Date: Fri, 01 Jun 2012 13:42:21 +0200
- Message-id: <email@example.com>
- In-reply-to: <firstname.lastname@example.org> (Salvo Tomaselli's message of "Fri, 25 May 2012 21:18:32 +0200")
- References: <CAOVenEo+CT6Ou_vHq8HvuCz1NdW0Ogq5UqxMZh-4Qkw4e01CsA@mail.gmail.com> <email@example.com> <20120525125238.GA5628@thunk.org> <firstname.lastname@example.org>
Salvo Tomaselli <email@example.com> writes:
>> So what? If you write to a normal file system, it goes into the page
>> cache, which is pretty much the same as writing into tmpfs.
> tmpfs will make it stay forever in the RAM, caches are flushed to disk and
> their space can be used for new things.
> - Ted
No, tmpfs will be swapped out if you don't use a file for a while but
something else uses memory, including IO caching. The difference to a
disk based filesystem is that most disk based filesystems force the
write out after a short wait (1-60s).