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