On Wed, 07 Jan 2015 10:00:17 +0800, Andrew Lowe wrote:

> #
> # RAM disk for emerges
> #
> tmpfs  /var/tmp/portage tmpfs
> uid=portage,gid=portage,mode=0775,size=8192M,noatime    0 0
> 
> 
> The above is all ONE line. This has worked fine for me. I have a machine
> with 16GB so I decided to go half/half on the RAM disk hence the 8GB
> size and tune if need be. I've seen no problems hence have left it at
> that.

size efaults to 50% for tmpfs so setting it to 8G is unnecessary.
 
> > Second question:  
> 
>       No idea :) Would some sort of cp/rsync running under a short
> interval cron job do what you want. As I said, I really have no idea
> here.

You could define a post_src_compile() in /etc/portage to make the copy
when the compile completes. You would also need to register a fail hook
to do the same when the compile fails.

Personally, I wouldn't bother, there is not that much of a gain when
using tmpfs, so if you want to keep all the working files after
compilation, the extra overhead and complexity of copying to hard disk
would make it not worthwhile. Just stick to a spinning disk. You may find
that a filesystem like XFS with its aggressive caching, would give a
similar performance.


-- 
Neil Bothwick

God is real, unless specifically declared integer.

Attachment: pgpgK0VECKeco.pgp
Description: OpenPGP digital signature

Reply via email to