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 1AA31138334 for ; Mon, 12 Aug 2019 15:18:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 965C4E080E; Mon, 12 Aug 2019 15:18:38 +0000 (UTC) Received: from www.rsbac.org (www.rsbac.org [85.214.57.106]) (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 662C5E0809 for ; Mon, 12 Aug 2019 15:18:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by www.rsbac.org (Postfix) with ESMTP id 167F23A0315 for ; Mon, 12 Aug 2019 17:18:37 +0200 (CEST) Received: from www.rsbac.org ([127.0.0.1]) by localhost (www.rsbac.org [127.0.0.1]) (maiad, port 10024) with ESMTP id 32417-05 for ; Mon, 12 Aug 2019 17:18:20 +0200 (CEST) Received: from [10.0.3.54] (unknown [46.37.70.122]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by www.rsbac.org (Postfix) with ESMTPSA id 767FF3A0272 for ; Mon, 12 Aug 2019 17:18:20 +0200 (CEST) Subject: [gentoo-doc] WIKI: /var/tmp/portage with tmpfs References: <5872aea8-e978-267b-f339-770c7ecbf2e0@rsbac.org> To: gentoo-doc@lists.gentoo.org From: =?UTF-8?Q?Javier_Juan_Mart=c3=adnez_Cabez=c3=b3n?= Openpgp: preference=signencrypt X-Forwarded-Message-Id: <5872aea8-e978-267b-f339-770c7ecbf2e0@rsbac.org> Message-ID: <4c73c725-5e83-46ae-7a3e-02f9075b2a7b@rsbac.org> Date: Mon, 12 Aug 2019 17:18:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc@lists.gentoo.org Reply-to: gentoo-doc@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <5872aea8-e978-267b-f339-770c7ecbf2e0@rsbac.org> Content-Type: text/plain; charset=utf-8 Content-Language: es Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Maia Mailguard 1.0.4.1524 (m-privacy) at rsbac.org X-Archives-Salt: 70be2ed4-c725-4243-bb73-c9f0460a2034 X-Archives-Hash: 29b725c8aed527e5ef1363eee5372c3f Hi all, I have one suggestion that could be useful for you and a better approach: I think it could be added to this part of the wiki: https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs an controlled autofs tmpfs mounted on /var/tmp/portage: Relevant files: (based on https://wiki.gentoo.org/wiki/AutoFS) from my /etc/autofs/auto.master entry: /- /etc/autofs/autofs.vartmp and from my /etc/autofs/autofs.vartmp: /var/tmp/portage -fstype=tmpfs,size=14G tmpfs --timeout 300 with those lines in the mount command output you could see: /etc/autofs/autofs.vartmp on /var/tmp/portage type autofs (rw,relatime,fd=6,pgrp=31264,timeout=300,minproto=5,maxproto=5,direct) and after accesing the directory: tmpfs on /var/tmp/portage type tmpfs (rw,relatime,size=14680064k) At this way you could get a portage dir mounted just only when you need it (emerging packages) and the RAM freed after use with the timeout.