You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/storage.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ The main reasons for this include:
27
27
As a result, using virtual environments can be slow, and these problems are only exacerbated when the virtual environment is loaded simultaneously by many ranks in an MPI job.
28
28
29
29
One solution is to use the tool `mksquashfs` to compresses the contents of a directory - files, inodes and sub-directories - into a single file.
30
-
This file can be mounted as a read-only file [Squashfs](https://en.wikipedia.org/wiki/SquashFS) file system, which is much faster because a single file is accessed instead of the many small files that were in the original environment.
30
+
This file can be mounted as a read-only [Squashfs](https://en.wikipedia.org/wiki/SquashFS) file system, which is much faster because a single file is accessed instead of the many small files that were in the original environment.
@@ -116,6 +116,9 @@ Note that the original virtual environment is still installed in `$SCRATCH/sqfs-
116
116
117
117
A benefit of this approach is that the squashfs file can be copied to a location that is not subject to the Scratch cleaning policy.
118
118
119
+
??? warning
120
+
Most likely, your virtual environment is not relocatable as it contains symlinks to paths in the original location on the filesystem. Therefore, you need to mount the image in the exact same location where you created the virtual environment.
121
+
119
122
#### Step 4: (optional) regenerate the virtual environment
120
123
121
124
The squashfs file is immutable - it is not possible to modify the contents of `.pyenv` while it is mounted.
0 commit comments