1 |
On Mittwoch 06 Mai 2009, Mark Haney wrote: |
2 |
> Duncan wrote: |
3 |
> > Consider pointing PORTAGE_TMPDIR at a tmpfs. |
4 |
> > |
5 |
> > The idea is based on the fact that everything portage does in its tmpdir |
6 |
> > (/var/tmp by default) is temporary, erased as soon as it's done emerging |
7 |
> > that package. Since tmpfs uses swap backed memory, worst-case, it has to |
8 |
> > write to swap -- that is, to disk, which is where it would otherwise be |
9 |
> > writing ALL the temporary files. With memory access so much faster than |
10 |
> > disk access, every file that's erased before it hits disk saves time, and |
11 |
> > it can make a BIG difference in emerge times. |
12 |
> |
13 |
> Duncan, you talk about tmpfs and I'm suddenly interested in trying this |
14 |
> out. My question is, how much space do you allocate for the tmpfs? I |
15 |
> know it'll fall back to swap if I'm out of space there, but what works |
16 |
> well for you? I have (currently) 1GB RAM on this system, but I'm |
17 |
> getting ready to order more to get me to 4GB. |
18 |
|
19 |
|
20 |
2gb. That is enough for almost everything. Not enough for openoffice. |
21 |
tmpfs 2,0G 3,2M 2,0G 1% /var/tmp/portage |
22 |
tmpfs 1,0G 116K 1,0G 1% /tmp |