2018-02-08 19:47 GMT+02:00 Nikos Chantziaras <rea...@gmail.com>: > On 08/02/18 19:11, gevisz wrote: >> >> I never used tmpfs for portage TMPDIR before and now decided >> to give it a try. >> >> I have 8GB of RAM and 12GB of swap on a separate partition. >> >> Do I correctly understood >> https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs >> that I can safely set in the fstab the size of my tmpfs to 12GB so >> that the chromium >> could be emerged in tmpfs (using the swap) without the need to set >> notmpfs.conf >> for chromium and the likes. >> >> And I am going to set the whole /var/tmp/ on tpmfs instead of just >> /var/tmp/portage >> Is it ok? > > > If you're not using ccache, then you don't need /var/tmp to be on tmpfs. You > should only put /var/tmp/portage on tmpfs.
Thank you for the reply. I do not use ccache, and in my /var/tmp I only have /var/tmp/portage and /var/tmp/genkernel (I use genkernel to generate initramfs image). I never use emerge and genkernel at the same time. So, why not to put the whole /var/tmp into one tmpfs? > If you do use ccache, then you need to mount both /var/tmp and > /var/tmp/portage as tmpfs. Although if you end up swapping, it's probably > going to be slower than not using tmpfs. So unless you have something like > 32GB of RAM, it might be best to use notmpfs.conf for Chromium anyway. > > (Although I didn't benchmark swap vs notmpfs.conf. Swap being slower than > notmpfs.conf is just an educated guess.)