public inbox for gentoo-doc@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dale <rdalek1967@gmail.com>
To: gentoo-doc@lists.gentoo.org
Subject: Re: [gentoo-doc] WIKI: /var/tmp/portage with tmpfs
Date: Sun, 18 Aug 2019 21:00:44 -0500	[thread overview]
Message-ID: <c3f63801-8e41-9761-13dc-1751437e23d0@gmail.com> (raw)
In-Reply-To: <4c73c725-5e83-46ae-7a3e-02f9075b2a7b@rsbac.org>

Javier Juan Martínez Cabezón wrote:
>
>
>
>
> 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.
>

I put emerge's work directory on tmpfs here as well.  From my
understanding, when it is not being used, all the memory is available
for other programs.  Right now, I have 16GBs for tmpfs but it still
shows 32GBs available because none of that space is in use.  When I am
emerging something, regular updates etc, then it shows memory being used
but only what is actually in use, not the whole 16GBs. 

Setting a timeout or only mounting it when you are about to use it
really doesn't change anything.  It just makes it unmounted until it is
needed is all.  Memory available stays the same. 

Dale

:-)  :-) 


      reply	other threads:[~2019-08-19  2:00 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 ` [gentoo-doc] WIKI: /var/tmp/portage with tmpfs Javier Juan Martínez Cabezón
2019-08-19  2:00   ` Dale [this message]

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=c3f63801-8e41-9761-13dc-1751437e23d0@gmail.com \
    --to=rdalek1967@gmail.com \
    --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