Gentoo Archives: gentoo-dev

From: Richard Freeman <rich0@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Concerns about WIPE_TMP change [offtopic]
Date: Sun, 20 Jan 2008 13:43:28
Message-Id: 47934FEA.3080603@gentoo.org
In Reply to: Re: [gentoo-dev] Re: Concerns about WIPE_TMP change [offtopic] by Stefan de Konink
1 Stefan de Konink wrote:
2 > ..very offtopic but how are you all compiling stuff like firefox on a
3 > ram disk. Or is 8GB of ram very cheap suddenly?
4 >
5
6 Swap is your friend. The performance hit is the same as what you'd get
7 compiling on disk if pages need to be swapped out. The performance is
8 of course far superior for any pages that don't need to be swapped out.
9 The big clean at the end is of course MUCH faster in a ram-disk.
10
11 The beauty of tmpfs is that it performs no worse than disk in the worst
12 case, and in the case of short-lived files it performs far better. If
13 you write, use, and delete a file on disk (more than a few seconds
14 apart) the kernel actually takes care to sync everything as if you cared
15 about the file 10 minutes into the future. The kernel can also be far
16 more opportunistic with how it swaps pages compared to how it flushes
17 buffers - since there is a general understanding that when you write to
18 a file you care about being able to read it back in a few days.
19 --
20 gentoo-dev@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: Concerns about WIPE_TMP change [offtopic] Caleb Cushing <xenoterracide@×××××.com>