Re: Moving /tmp to tmpfs makes it useless
- To: Salvo Tomaselli <tiposchi@tiscali.it>
- Cc: debian-devel@lists.debian.org, "Ted Ts'o" <tytso@mit.edu>
- Subject: Re: Moving /tmp to tmpfs makes it useless
- From: Goswin von Brederlow <goswin-v-b@web.de>
- Date: Fri, 01 Jun 2012 13:42:21 +0200
- Message-id: <[🔎] 87vcjbl0ma.fsf@frosties.localnet>
- In-reply-to: <201205252118.32729.tiposchi@tiscali.it> (Salvo Tomaselli's message of "Fri, 25 May 2012 21:18:32 +0200")
- References: <CAOVenEo+CT6Ou_vHq8HvuCz1NdW0Ogq5UqxMZh-4Qkw4e01CsA@mail.gmail.com> <201205251111.06639.tiposchi@tiscali.it> <20120525125238.GA5628@thunk.org> <201205252118.32729.tiposchi@tiscali.it>
Salvo Tomaselli <tiposchi@tiscali.it> 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).
MfG
Goswin
Reply to: