Re: Mount /tmp as tmpfs?

2018-05-18 Thread Pierre Neidhardt

For the record, I used to compile Gentoo packages in a tmpfs
on a machine with 8GB+ RAM.  Beside qtwebengine (which would work with
a 5GB tmpfs), I never had an issue.

--
Pierre Neidhardt

"Right now I feel that I've got my feet on the ground as far as my head
is concerned."
-- Baseball pitcher Bo Belinsky


signature.asc
Description: PGP signature


Re: Mount /tmp as tmpfs?

2018-05-18 Thread Clément Lassieur
Nils Gillmann  writes:

> Pierre Neidhardt transcribed 998 bytes:
>> 
>> I was wondering if it's commendable to mount /tmp as tmpfs with GuixSD.
>> I think it could be useful to speed up Guix builds.
>
> Guix maybe, for a developer system you run out of RAM for everything
> that has serious demands in RAM and/or Diskspace for building.
>
> If waste of writes is your concern, getting a separate disk for
> /tmp is a good choice. As long as you don't have to build big
> applications from source/without substitutes tmpfs is alright.
>
> Been there, tried that and considered it now only for machines that
> will never build anything big.

Well yes, my tmpfs works perfectly, but I forgot to say that I have 128G
RAM.



Re: Mount /tmp as tmpfs?

2018-05-18 Thread Nils Gillmann
Pierre Neidhardt transcribed 998 bytes:
> 
> I was wondering if it's commendable to mount /tmp as tmpfs with GuixSD.
> I think it could be useful to speed up Guix builds.

Guix maybe, for a developer system you run out of RAM for everything
that has serious demands in RAM and/or Diskspace for building.

If waste of writes is your concern, getting a separate disk for
/tmp is a good choice. As long as you don't have to build big
applications from source/without substitutes tmpfs is alright.

Been there, tried that and considered it now only for machines that
will never build anything big.

> What would be the best way to do so?
> Can't test now, but what about
> 
>  (file-system
>(mount-point "/tmp")
>(device "tmpfs")
>(type "tmpfs")
>(flags '(no-dev no-suid))
> 
> ?
> 
> -- 
> Pierre Neidhardt