1 |
On Tue, Mar 17, 2020 at 09:15:58AM +0000, Peter Humphrey wrote: |
2 |
> On Tuesday, 17 March 2020 09:04:55 GMT Petr Vaněk wrote: |
3 |
> |
4 |
> > I use tmpfs to reduce compilation writes [1]. |
5 |
> > |
6 |
> > tmpfs /var/tmp/portage/ |
7 |
> > tmpfs uid=portage,gid=portage,mode=0775,size=2G,noatime 0 0 |
8 |
> > tmpfs /tmp/ tmpfs |
9 |
> mode=0777,size=1G,noexec,nosuid,noatime 0 0 |
10 |
> > |
11 |
> > 2G is usually enough for most of packages. |
12 |
> > |
13 |
> > [1] https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs |
14 |
> |
15 |
> Do you need to specify a size? I just let the kernel juggle the allocation of |
16 |
> memory to tmpfs and everything else. That is what it's for, no? :) |
17 |
|
18 |
No, you don't but then the system sets size to 50% of physical memory |
19 |
(see man 5 tmpfs). It is an upper bound, just in case if something |
20 |
strange happens. |