$ mount -t tmpfs none /var/tmp/portage
warning: use only if you have more free ram than you know what to do with, like I do (4Gigs).
speed up is caused by never touching a moving part (aka. a disk) during operations that read and write lots of files (software building).
i don't have any numbers to say it works faster, but it does. also, you would want to change your MAKEOPTS to reflect your ACTUAL number of processors rather than N+1 since the processors won't be hanging around waiting to read and write to disk anymore.
and you should be doing this to your /tmp as well, since the contents of that aren't supposed to be hanging around after reboot anyways.
as always, put it in your /etc/fstab to make it stick.
Subscribe to:
Post Comments (Atom)
1 comments:
There is another way of doing the same.
in make.conf you might want to set
PORTAGE_TMPDIR
PORTAGE_PREFIX
PORTAGE_TMPFS
point them to /dev/shm
And in bothe of these methods you should make sure if using ccache to set the CCACHE_DIR to something permanent.
Post a Comment