Gentoo Archives: gentoo-amd64

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Emerge and Tmpfs
Date: Tue, 07 Jul 2009 16:03:26
Message-Id: 58965d8a0907070903j434bde25j6906741a7dc6354e@mail.gmail.com
In Reply to: [gentoo-amd64] Emerge and Tmpfs by Frank Peters
1 On Tue, Jul 7, 2009 at 9:36 AM, Frank Peters<frank.peters@×××××××.net> wrote:
2 > After reading through the thread on this list about the benefits
3 > of mounting PORTAGE_TMPDIR as tmpfs, I decided that I will be doing
4 > this mount from now on. My total RAM is 4G, but since I only "emerge world"
5 > about once per week, I can easily set aside temporarily 2G or more for this
6 > purpose.
7 >
8 > However, after doing some more reading, I find that some people recommend
9 > mounting tmpfs using the option nr_inodes=1M, while others just accept
10 > the default value for nr_inodes.
11 >
12 > To me, setting maximum inodes to 1M seems a bit high. Can emerge actually
13 > generate that many temporary files? Would it be safer and also avoid swapping
14 > to set nr_inodes=1M or is the default good enough?.
15
16 I have this and never had any problems:
17
18 none /dev/shm tmpfs defaults 0 0
19
20 (with both 4gb and 8gb of RAM)