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.
This commit is contained in:
Cristian Di Pietrantonio 2024-09-28 19:14:19 +08:00 committed by GitHub
parent e08a72a333
commit 19712d3461
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,6 +113,11 @@ def fix_mksquashfs_path(self):
"mksquashfs path = {0}".format(squash_path), "mksquashfs path = {0}".format(squash_path),
join_path(prefix.etc, self.singularity_name, self.singularity_name + ".conf"), 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 # Assemble a script that fixes the ownership and permissions of several