Gentoo Archives: gentoo-user

From: gevisz <gevisz@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: /var/tmp on tmpfs
Date: Thu, 08 Feb 2018 21:31:56
Message-Id: CA+t6X7eES36A-pZ-_j3jT=JX6MivTk19GkiFdpEjOpUyonJFSw@mail.gmail.com
In Reply to: [gentoo-user] Re: /var/tmp on tmpfs by Nikos Chantziaras
1 2018-02-08 19:47 GMT+02:00 Nikos Chantziaras <realnc@×××××.com>:
2 > On 08/02/18 19:11, gevisz wrote:
3 >>
4 >> I never used tmpfs for portage TMPDIR before and now decided
5 >> to give it a try.
6 >>
7 >> I have 8GB of RAM and 12GB of swap on a separate partition.
8 >>
9 >> Do I correctly understood
10 >> https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs
11 >> that I can safely set in the fstab the size of my tmpfs to 12GB so
12 >> that the chromium
13 >> could be emerged in tmpfs (using the swap) without the need to set
14 >> notmpfs.conf
15 >> for chromium and the likes.
16 >>
17 >> And I am going to set the whole /var/tmp/ on tpmfs instead of just
18 >> /var/tmp/portage
19 >> Is it ok?
20 >
21 >
22 > If you're not using ccache, then you don't need /var/tmp to be on tmpfs. You
23 > should only put /var/tmp/portage on tmpfs.
24
25 Thank you for the reply.
26
27 I do not use ccache, and in my /var/tmp I only have /var/tmp/portage
28 and /var/tmp/genkernel (I use genkernel to generate initramfs image).
29
30 I never use emerge and genkernel at the same time. So, why not to put
31 the whole /var/tmp into one tmpfs?
32
33 > If you do use ccache, then you need to mount both /var/tmp and
34 > /var/tmp/portage as tmpfs. Although if you end up swapping, it's probably
35 > going to be slower than not using tmpfs. So unless you have something like
36 > 32GB of RAM, it might be best to use notmpfs.conf for Chromium anyway.
37 >
38 > (Although I didn't benchmark swap vs notmpfs.conf. Swap being slower than
39 > notmpfs.conf is just an educated guess.)

Replies

Subject Author
[gentoo-user] Re: /var/tmp on tmpfs Nikos Chantziaras <realnc@×××××.com>