1 |
Hi all, I have one suggestion that could be useful for you and a better |
2 |
approach: |
3 |
|
4 |
I think it could be added to this part of the wiki: |
5 |
|
6 |
https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs |
7 |
|
8 |
|
9 |
an controlled autofs tmpfs mounted on /var/tmp/portage: |
10 |
|
11 |
|
12 |
Relevant files: |
13 |
|
14 |
(based on https://wiki.gentoo.org/wiki/AutoFS) |
15 |
|
16 |
|
17 |
from my /etc/autofs/auto.master entry: |
18 |
|
19 |
|
20 |
/- /etc/autofs/autofs.vartmp |
21 |
|
22 |
|
23 |
|
24 |
and from my /etc/autofs/autofs.vartmp: |
25 |
|
26 |
|
27 |
/var/tmp/portage -fstype=tmpfs,size=14G tmpfs --timeout 300 |
28 |
|
29 |
|
30 |
with those lines in the mount command output you could see: |
31 |
|
32 |
|
33 |
/etc/autofs/autofs.vartmp on /var/tmp/portage type autofs |
34 |
(rw,relatime,fd=6,pgrp=31264,timeout=300,minproto=5,maxproto=5,direct) |
35 |
|
36 |
and after accesing the directory: |
37 |
|
38 |
tmpfs on /var/tmp/portage type tmpfs (rw,relatime,size=14680064k) |
39 |
|
40 |
|
41 |
At this way you could get a portage dir mounted just only when you need |
42 |
it (emerging packages) and the RAM freed after use with the timeout. |