Skip to content

Commit 9b9991e

Browse files
committed
guix: recommend mounting a tmpfs on /tmp
This was already suggested in the troubleshooting section, but recommending it upfront would prevent the issue in the first place and speed up builds.
1 parent 6822834 commit 9b9991e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

contrib/guix/INSTALL.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ For reference, the graphic below outlines Guix v1.3.0's dependency graph:
167167

168168
![bootstrap map](https://user-images.githubusercontent.com/6399679/125064185-a9a59880-e0b0-11eb-82c1-9b8e5dc9950d.png)
169169

170+
#### Consider /tmp on tmpfs
171+
172+
If you use an NVME (SSD) drive, you may encounter [cryptic build errors](#coreutils-fail-teststail-2inotify-dir-recreate). Mounting a [tmpfs at /tmp](https://ubuntu.com/blog/data-driven-analysis-tmp-on-tmpfs) should prevent this and may improve performance as a bonus.
173+
170174
#### Guile
171175

172176
##### Choosing a Guile version and sticking to it
@@ -775,15 +779,15 @@ The inotify-dir-create test fails on "remote" filesystems such as overlayfs
775779
as non-remote.
776780
777781
A relatively easy workaround to this is to make sure that a somewhat traditional
778-
filesystem is mounted at `/tmp` (where `guix-daemon` performs its builds). For
782+
filesystem is mounted at `/tmp` (where `guix-daemon` performs its builds), see [/tmp on tmpfs](#consider-tmp-on-tmpfs). For
779783
Docker users, this might mean [using a volume][docker/volumes], [binding
780784
mounting][docker/bind-mnt] from host, or (for those with enough RAM and swap)
781785
[mounting a tmpfs][docker/tmpfs] using the `--tmpfs` flag.
782786
783787
Please see the following links for more details:
784788
785789
- An upstream coreutils bug has been filed: [debbugs#47940](https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47940)
786-
- A Guix bug detailing the underlying problem has been filed: [guix-issues#47935](https://issues.guix.gnu.org/47935)
790+
- A Guix bug detailing the underlying problem has been filed: [guix-issues#47935](https://issues.guix.gnu.org/47935), [guix-issues#49985](https://issues.guix.gnu.org/49985#5)
787791
- A commit to skip this test in Guix has been merged into the core-updates branch:
788792
[savannah/guix@6ba1058](https://git.savannah.gnu.org/cgit/guix.git/commit/?id=6ba1058df0c4ce5611c2367531ae5c3cdc729ab4)
789793

0 commit comments

Comments
 (0)