On 01/07/2015 02:03 AM, James wrote:
> Hello,
>
> First question:
>
> I have this in my /etc/fstab and I'm not certain it
> is necessary or needs to be removed to facility cleanly
> mounting /var/tmp/portage on tmpfs (ram):
>
> current fstab:
>
> shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
>
> [1]. Perhaps there is a better (updated wiki) reference I missed)?
>
> proposed fstab entry:
>
> tmpfs /var/tmp/portage tmpfs size=2G 0 0
>
>
I was thinking along the same lines and came across this somewhere in
the email list/forums/blogs:
#
# 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.
> 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.
Andrew