public inbox for gentoo-doc@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Javier Juan Martínez Cabezón" <tazok@rsbac.org>
To: gentoo-doc@lists.gentoo.org
Subject: [gentoo-doc] WIKI: /var/tmp/portage with tmpfs
Date: Mon, 12 Aug 2019 17:18:20 +0200	[thread overview]
Message-ID: <4c73c725-5e83-46ae-7a3e-02f9075b2a7b@rsbac.org> (raw)
In-Reply-To: <5872aea8-e978-267b-f339-770c7ecbf2e0@rsbac.org>






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.






       reply	other threads:[~2019-08-12 15:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5872aea8-e978-267b-f339-770c7ecbf2e0@rsbac.org>
2019-08-12 15:18 ` Javier Juan Martínez Cabezón [this message]
2019-08-19  2:00   ` [gentoo-doc] WIKI: /var/tmp/portage with tmpfs Dale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c73c725-5e83-46ae-7a3e-02f9075b2a7b@rsbac.org \
    --to=tazok@rsbac.org \
    --cc=gentoo-doc@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox