public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: gentoo-user@c-14.de
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] tmp on tmpfs
Date: Wed, 24 May 2017 07:34:34 +0200	[thread overview]
Message-ID: <20170524053434.GA2656@anonymous> (raw)
In-Reply-To: <20170524051002.12325.12B52329@matica.foolinux.mooo.com>

On 17-05-23 at 22:16, Ian Zimmerman wrote:
> So what are gentoo users' opinions on this matter of faith?
I use an ext4 partition backed by zram. Gives me ~3x compression on the
things I normally have lying around there (plain text files) and ensures
that anything I throw there (or programs throw there) gets cleaned up on
reboot.

> I have long been in the camp that thinks tmpfs for /tmp has no
> advantages (and may have disadvantages) over a normal filesystem like
> ext3, because the files there are normally so small that they will stay
> in the page cache 100% of the time.
I've never actually benchmarked this. Most of the things I notice that
tend to end up there are temporary build files generated during
configure stages or temporary log files used by various programs (clang
static analyzer). Even if the entire file stays in the page cache, it'll
still generate IO overhead and extra seeks that might slow down the rest
of your system (unless your /tmp is on a different hard drive) which on
spinning rust will cause slowdowns while on an ssd it'll eat away at
your writes (which you may or may not have to worry about).

> But I see that tmpfs is the default with systemd.  Surely they have a
> good reason for this? :)
Or someone decided they liked the idea and made it the default and
nobody ever complained (or if they did were told to just change it on
their system). 

Either way, it'd be nice if someone actually benchmarked this.

-- 
Simon Thelen


  reply	other threads:[~2017-05-24  5:34 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-24  5:16 [gentoo-user] tmp on tmpfs Ian Zimmerman
2017-05-24  5:34 ` gentoo-user [this message]
2017-05-24  6:00   ` [gentoo-user] " Kai Krakow
2017-05-24 17:05     ` Kai Krakow
2017-05-25 18:46       ` [gentoo-user] Puzzled by zswap [Was: tmp on tmpfs] Ian Zimmerman
2017-05-25 19:16         ` [gentoo-user] " Martin Vaeth
2017-05-26  6:00         ` Kai Krakow
2017-05-24 18:34     ` [gentoo-user] Re: tmp on tmpfs Ian Zimmerman
2017-05-24 19:30       ` Rich Freeman
2017-05-24 21:16         ` Andrew Savchenko
2017-05-24 22:40           ` Rich Freeman
2017-05-25  6:34             ` J. Roeleveld
2017-05-25 11:04               ` Kai Krakow
2017-05-25 12:23                 ` Rich Freeman
2017-05-25 14:16                 ` J. Roeleveld
2017-05-25 16:06                   ` Rich Freeman
2017-05-25 16:28                     ` J. Roeleveld
2017-05-25 16:41                       ` Rich Freeman
2017-05-25  3:38         ` Kai Krakow
2017-05-25  7:19           ` J. Roeleveld
2017-05-25  3:36       ` Kai Krakow
2017-05-24 17:00   ` [gentoo-user] " R0b0t1
2017-05-24  6:03 ` Andrew Tselischev
2017-05-24  9:34 ` Rich Freeman
2017-05-24  9:43   ` gentoo-user
2017-05-24  9:54     ` Rich Freeman
2017-05-24 12:45   ` Andrew Savchenko
2017-05-25  4:45     ` [gentoo-user] " Martin Vaeth
2017-05-25  7:24       ` Mick
2017-05-25 15:46         ` Martin Vaeth
2017-05-25 22:36     ` [gentoo-user] " Kent Fredric
2017-05-28 10:07       ` Mick
2017-05-31  0:36         ` Kent Fredric
2017-05-31  7:33           ` Mick
2017-05-24 18:46 ` [gentoo-user] " Nikos Chantziaras
  -- strict thread matches above, loose matches on Subject: below --
2017-05-29 11:09 [gentoo-user] Kernel did not finding root partition Raphael MD
2017-05-29 11:19 ` Rasmus Thomsen
2017-05-29 17:48 ` [gentoo-user] " Kai Krakow
2017-05-29 18:07   ` Raphael MD
2017-05-29 18:16     ` Neil Bothwick
2017-05-29 19:42       ` Kai Krakow
2017-05-30  8:26         ` Peter Humphrey
2017-05-30 17:08           ` Raphael MD
2017-05-30 18:05             ` Mick
2017-05-30 19:28           ` Kai Krakow

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=20170524053434.GA2656@anonymous \
    --to=gentoo-user@c-14.de \
    --cc=gentoo-user@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