On Wed, Jul 27, 2011 at 9:23 AM, Mick <michaelkintz...@gmail.com> wrote: > On Wednesday 27 Jul 2011 08:24:37 Alexander Puchmayr wrote: >> Depending on your available ram and swap space, you might want to mount >> /var/tmp/portage as tmpfs. My fstab entry shows >> >> none /var/tmp/portage tmpfs >> size=10g,nr_inodes=1m >> >> I have 4GB ram, and the speed benefit especially for open/libre-office is >> quite impressive. >> >> The advantage is, that it >> a) uses only as much of memory as is really used >> b) you may use mount option -remount to increase the size of the >> filesystem, and add proper swapfiles if you see that you're running out of >> space (mkswap, swapon) > > I also only have 4G of RAM and libreoffice seems to need more than 7-8G of > /var/tmp/portage to compile and build. OOo does it in less that 5G. > > What will libreoffice do if /var/tmp/portage is a tmpfs? Start swapping like > mad?
No; the tmpfs runs out of space, and the build fails. Had that happen with Thunderbird, and thus ended my usage of tmpfs for /var/tmp. I'll probably go back to using tmpfs there once I've bumped my machine up to the motherboard's max of 16GB of RAM. -- :wq