Re: [gentoo-user] /var/tmp on tmpfs

2018-02-09 Thread Grant Taylor
On 02/09/2018 03:30 AM, gevisz wrote: May be, it is not a good idea to put /mnt on tmpfs at the time of Spector and Meltdown? I wouldn't put /mnt on tmpfs as I routinely create mount points there in. As such they would be lost on reboot. What difference does Spector or Meltdown (or the

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-09 Thread Gerrit Kühn
On Fri, 9 Feb 2018 12:30:21 +0200 gevisz <gev...@gmail.com> wrote about Re: [gentoo-user] /var/tmp on tmpfs: > > Why mess around with another tmpfs? Just set PORTAGE_TMPDIR="/tmp" in > > make.conf. Job done! > > It is an interesting idea. But why it is not done

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-09 Thread Neil Bothwick
On Fri, 09 Feb 2018 10:12:01 +, Peter Humphrey wrote: > > Why mess around with another tmpfs? Just set PORTAGE_TMPDIR="/tmp" in > > make.conf. Job done! > > Acting on the advice of various Gentoo guides, I have this: > > # grep tmp /etc/fstab > tmpfs /var/tmp/portage

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-09 Thread Neil Bothwick
On Fri, 9 Feb 2018 12:30:21 +0200, gevisz wrote: > > Why mess around with another tmpfs? Just set PORTAGE_TMPDIR="/tmp" in > > make.conf. Job done! > > It is an interesting idea. But why it is not done by default then? > Because when the defaults were picked neither /tmp nor /var/tmp used

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-09 Thread gevisz
2018-02-09 3:24 GMT+02:00 Dale : > > In my experience, once swap starts getting used, it gets slow, sometimes > to the point that a response may take several seconds or more. When I > compile without tmpfs at all, which means everything is on disk, it's > rare that I can

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-09 Thread gevisz
2018-02-09 10:11 GMT+02:00 Neil Bothwick : > On Thu, 8 Feb 2018 23:18:19 +, Wol's lists wrote: > >> > More specifically, /var/tmp is traditionally supposed to be >> > non-volatile (across reboots). >> > >> > Comparatively the contents of /tmp can be volatile (across

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-09 Thread Peter Humphrey
On Friday, 9 February 2018 08:11:29 GMT Neil Bothwick wrote: > On Thu, 8 Feb 2018 23:18:19 +, Wol's lists wrote: > > > More specifically, /var/tmp is traditionally supposed to be > > > non-volatile (across reboots). > > > > > > Comparatively the contents of /tmp can be volatile (across

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-09 Thread Neil Bothwick
On Thu, 8 Feb 2018 23:18:19 +, Wol's lists wrote: > > More specifically, /var/tmp is traditionally supposed to be > > non-volatile (across reboots). > > > > Comparatively the contents of /tmp can be volatile (across reboots). > > > > I would advise against mounting /var/tmp on tmpfs. > >

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread Dale
gevisz wrote: > 2018-02-08 21:17 GMT+02:00 Dale : >> 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 >>>

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread Dale
Rich Freeman wrote: > On Thu, Feb 8, 2018 at 2:17 PM, Dale wrote: >> As someone else pointed out, if you >> start using swap, that generally defeats the purpose of tmpfs. >> > I'll just add one thing to this, which I've probably already said ages ago: > > In an ideal world

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread Wol's lists
On 09/02/18 00:02, Rich Freeman wrote: On Thu, Feb 8, 2018 at 6:18 PM, Wol's lists wrote: /var/tmp is defined as the place where programs store stuff like crash recovery files. Mounting it tmpfs is going to screw up any programs that reply on that*defined* behaviour

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread Rich Freeman
On Thu, Feb 8, 2018 at 6:18 PM, Wol's lists wrote: > > /var/tmp is defined as the place where programs store stuff like crash > recovery files. Mounting it tmpfs is going to screw up any programs that > reply on that *defined* behaviour to recover after a crash. > Care

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread Grant Taylor
On 02/08/2018 04:18 PM, Wol's lists wrote: EMPHATICALLY YES. ;-) /tmp is defined as being volatile - stuff can disappear at any time. I don't know that I've ever had things in /tmp disappear "at any time" as in randomly and without external influence. Usually it's a reboot or nightly

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread Wol's lists
On 08/02/18 20:56, Grant Taylor wrote: On 02/08/2018 10:11 AM, gevisz wrote: And I am going to set the whole /var/tmp on tpmfs instead of just /var/tmp/portage Is it ok? I don't know about the context of emerging, but I do know about the context of /var/tmp being volatile. More

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread gevisz
2018-02-08 21:17 GMT+02:00 Dale : > 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 >>

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread Grant Taylor
On 02/08/2018 10:11 AM, gevisz wrote: And I am going to set the whole /var/tmp on tpmfs instead of just /var/tmp/portage Is it ok? I don't know about the context of emerging, but I do know about the context of /var/tmp being volatile. More specifically, /var/tmp is traditionally supposed

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread Rich Freeman
On Thu, Feb 8, 2018 at 2:17 PM, Dale wrote: > As someone else pointed out, if you > start using swap, that generally defeats the purpose of tmpfs. > I'll just add one thing to this, which I've probably already said ages ago: In an ideal world swap would STILL be better

Re: [gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread Dale
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

[gentoo-user] /var/tmp on tmpfs

2018-02-08 Thread gevisz
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