Hi all, I have one suggestion that could be useful for you and a better
approach:
I think it could be added to this part of the wiki:
https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs
an controlled autofs tmpfs mounted on /var/tmp/portage:
Relevant files:
(based on https://wiki.gentoo.org/wiki/AutoFS)
from my /etc/autofs/auto.master entry:
/- /etc/autofs/autofs.vartmp
and from my /etc/autofs/autofs.vartmp:
/var/tmp/portage -fstype=tmpfs,size=14G tmpfs --timeout 300
with those lines in the mount command output you could see:
/etc/autofs/autofs.vartmp on /var/tmp/portage type autofs
(rw,relatime,fd=6,pgrp=31264,timeout=300,minproto=5,maxproto=5,direct)
and after accesing the directory:
tmpfs on /var/tmp/portage type tmpfs (rw,relatime,size=14680064k)
At this way you could get a portage dir mounted just only when you need
it (emerging packages) and the RAM freed after use with the timeout.
approach:
I think it could be added to this part of the wiki:
https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs
an controlled autofs tmpfs mounted on /var/tmp/portage:
Relevant files:
(based on https://wiki.gentoo.org/wiki/AutoFS)
from my /etc/autofs/auto.master entry:
/- /etc/autofs/autofs.vartmp
and from my /etc/autofs/autofs.vartmp:
/var/tmp/portage -fstype=tmpfs,size=14G tmpfs --timeout 300
with those lines in the mount command output you could see:
/etc/autofs/autofs.vartmp on /var/tmp/portage type autofs
(rw,relatime,fd=6,pgrp=31264,timeout=300,minproto=5,maxproto=5,direct)
and after accesing the directory:
tmpfs on /var/tmp/portage type tmpfs (rw,relatime,size=14680064k)
At this way you could get a portage dir mounted just only when you need
it (emerging packages) and the RAM freed after use with the timeout.