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