diff options
author | Cristian Di Pietrantonio <cristiandipietrantonio@gmail.com> | 2024-09-28 19:14:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-28 13:14:19 +0200 |
commit | 19712d346166c1c0dc3c0ae60848ee15fff62ad2 (patch) | |
tree | 4d63abbcb1b5551715fec4f84310407bcfdbd93e | |
parent | e08a72a3333739a0e483b625e38a3d87380213f1 (diff) | |
download | spack-19712d346166c1c0dc3c0ae60848ee15fff62ad2.tar.gz spack-19712d346166c1c0dc3c0ae60848ee15fff62ad2.tar.bz2 spack-19712d346166c1c0dc3c0ae60848ee15fff62ad2.tar.xz spack-19712d346166c1c0dc3c0ae60848ee15fff62ad2.zip |
Singularity: set `share loop devices` to `yes`. (#45846)
https://docs.sylabs.io/guides/main/admin-guide/configfiles.html#loop-devices
shared loop devices: This allows containers running the same image
to share a single loop device. This minimizes loop device usage and
helps optimize kernel cache usage.
Enabling this feature can be particularly useful for large MPI jobs.
-rw-r--r-- | var/spack/repos/builtin/packages/singularityce/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/singularityce/package.py b/var/spack/repos/builtin/packages/singularityce/package.py index 4969b1e3c2..8ebc4936d5 100644 --- a/var/spack/repos/builtin/packages/singularityce/package.py +++ b/var/spack/repos/builtin/packages/singularityce/package.py @@ -113,6 +113,11 @@ class SingularityBase(MakefilePackage): "mksquashfs path = {0}".format(squash_path), join_path(prefix.etc, self.singularity_name, self.singularity_name + ".conf"), ) + filter_file( + r"^shared loop devices = no", + "shared loop devices = yes", + join_path(prefix.etc, self.singularity_name, self.singularity_name + ".conf"), + ) # # Assemble a script that fixes the ownership and permissions of several |