1 |
On Saturday 05 March 2011 12:16:23 Stéphane Guedon wrote: |
2 |
> On Saturday 05 March 2011 12:47:39 Kent Hagebrand wrote: |
3 |
|
4 |
(Odd: I haven't received this e-mail.) |
5 |
|
6 |
> > Yes, I use tmpfs on /vat/tmp/portage to reduce the disk i/o on my |
7 |
> > laptop. Here is the line I use in the /etc/fstab: |
8 |
> > |
9 |
> > none /var/tmp/portage tmpfs nr_inodes=1M,size=2G |
10 |
> > 0 0 |
11 |
> > |
12 |
> > This will allow the directory /var/tmp/portage to use at most 2GB of |
13 |
> > memory (I have 4GB). |
14 |
> > It is enough to compile most of the packages in portage. |
15 |
|
16 |
I've found that it isn't necessary to limit the tmpfs to half your RAM. I |
17 |
had it set to 6 GB on this box with 4 GB RAM. The kernel seems effective at |
18 |
managing this arrangement, swapping out to disk when needed - which, as you |
19 |
say, isn't often. When it does that I only find out by running top; it has no |
20 |
discernible effect on the desktop. |
21 |
|
22 |
-- |
23 |
Rgds |
24 |
Peter |