Re: Moving /tmp to tmpfs makes it useless
- To: Salvo Tomaselli <firstname.lastname@example.org>
- Cc: email@example.com, "Ted Ts'o" <firstname.lastname@example.org>
- Subject: Re: Moving /tmp to tmpfs makes it useless
- From: Goswin von Brederlow <email@example.com>
- Date: Fri, 01 Jun 2012 13:42:21 +0200
- Message-id: <firstname.lastname@example.org>
- In-reply-to: <email@example.com> (Salvo Tomaselli's message of "Fri, 25 May 2012 21:18:32 +0200")
- References: <CAOVenEo+CT6Ou_vHq8HvuCz1NdW0Ogq5UqxMZh-4Qkw4e01CsA@mail.gmail.com> <firstname.lastname@example.org> <20120525125238.GA5628@thunk.org> <email@example.com>
Salvo Tomaselli <firstname.lastname@example.org> 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).