From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E1E8D1382C5 for ; Thu, 8 Feb 2018 17:47:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B4677E0A5C; Thu, 8 Feb 2018 17:47:37 +0000 (UTC) Received: from blaine.gmane.org (unknown [195.159.176.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33920E09E9 for ; Thu, 8 Feb 2018 17:47:37 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ejqFs-000458-8P for gentoo-user@lists.gentoo.org; Thu, 08 Feb 2018 18:45:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: /var/tmp on tmpfs Date: Thu, 8 Feb 2018 19:47:37 +0200 Message-ID: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: Content-Language: en-US X-Archives-Salt: b5eeefaa-fab0-43da-af9f-dbabdea25371 X-Archives-Hash: 0e8ac3a7807edb351aabadcc74dcaa78 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. 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.)