unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Mount /tmp as tmpfs?
@ 2018-05-17 17:03 Pierre Neidhardt
  2018-05-17 18:21 ` Clément Lassieur
  2018-05-18 10:53 ` Nils Gillmann
  0 siblings, 2 replies; 6+ messages in thread
From: Pierre Neidhardt @ 2018-05-17 17:03 UTC (permalink / raw)
  To: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 362 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.

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mount /tmp as tmpfs?
  2018-05-17 17:03 Mount /tmp as tmpfs? Pierre Neidhardt
@ 2018-05-17 18:21 ` Clément Lassieur
  2018-05-17 18:26   ` Pierre Neidhardt
  2018-05-18 10:53 ` Nils Gillmann
  1 sibling, 1 reply; 6+ messages in thread
From: Clément Lassieur @ 2018-05-17 18:21 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: help-guix@gnu.org

Pierre Neidhardt <ambrevar@gmail.com> writes:

> 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.
>
> 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))
>
> ?

I use:

(file-system
  (mount-point "/tmp")
  (device "none")
  (title 'device)
  (type "tmpfs")
  (check? #f))

And it works perfectly.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mount /tmp as tmpfs?
  2018-05-17 18:21 ` Clément Lassieur
@ 2018-05-17 18:26   ` Pierre Neidhardt
  0 siblings, 0 replies; 6+ messages in thread
From: Pierre Neidhardt @ 2018-05-17 18:26 UTC (permalink / raw)
  To: Clément Lassieur; +Cc: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]


Thanks!

-- 
Pierre Neidhardt

Spiritual leadership should remain spiritual leadership and the temporal
power should not become too important in any church.
- Eleanor Roosevelt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mount /tmp as tmpfs?
  2018-05-17 17:03 Mount /tmp as tmpfs? Pierre Neidhardt
  2018-05-17 18:21 ` Clément Lassieur
@ 2018-05-18 10:53 ` Nils Gillmann
  2018-05-18 11:20   ` Clément Lassieur
  2018-05-18 11:22   ` Pierre Neidhardt
  1 sibling, 2 replies; 6+ messages in thread
From: Nils Gillmann @ 2018-05-18 10:53 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: help-guix@gnu.org

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mount /tmp as tmpfs?
  2018-05-18 10:53 ` Nils Gillmann
@ 2018-05-18 11:20   ` Clément Lassieur
  2018-05-18 11:22   ` Pierre Neidhardt
  1 sibling, 0 replies; 6+ messages in thread
From: Clément Lassieur @ 2018-05-18 11:20 UTC (permalink / raw)
  To: Nils Gillmann; +Cc: help-guix@gnu.org

Nils Gillmann <ng0@n0.is> 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mount /tmp as tmpfs?
  2018-05-18 10:53 ` Nils Gillmann
  2018-05-18 11:20   ` Clément Lassieur
@ 2018-05-18 11:22   ` Pierre Neidhardt
  1 sibling, 0 replies; 6+ messages in thread
From: Pierre Neidhardt @ 2018-05-18 11:22 UTC (permalink / raw)
  To: Nils Gillmann; +Cc: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 310 bytes --]


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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-05-18 11:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-17 17:03 Mount /tmp as tmpfs? Pierre Neidhardt
2018-05-17 18:21 ` Clément Lassieur
2018-05-17 18:26   ` Pierre Neidhardt
2018-05-18 10:53 ` Nils Gillmann
2018-05-18 11:20   ` Clément Lassieur
2018-05-18 11:22   ` Pierre Neidhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).