Skip to content

Commit

Permalink
somehow fuse gets stuck... maybe fsync=0 fixed it?
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie committed Feb 22, 2022
1 parent f2dc8e6 commit 4a4252d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions experimental/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@ spack.lock: spack.yaml deps/spack
# Spack believes it's installing to UPSTREAM_STORE, but in reality it's installing new
# packages to `DOWNSTREAM_STORE`.
build: spack.lock deps/usr/bin/overlayfs
mkdir -p $(UPSTREAM_STORE) $(DOWNSTREAM_STORE) work merged
# Not sure if really required, but to avoid having to bind mount
# the merged dir over the bottom layer, add a level of indirection with a
# symlink from $(UPSTREAM_STORE) to $(UPSTREAM_STORE)-current
mkdir -p $(UPSTREAM_STORE)-current $(DOWNSTREAM_STORE) work merged
ln -s $(UPSTREAM_STORE)-current $(UPSTREAM_STORE) || true
$(SRUN_BUILD) \
$(OVERLAY_SH) $(OVERLAYFS) $(UPSTREAM_STORE) $(DOWNSTREAM_STORE) $(CURDIR)/work $(CURDIR)/merged \
$(OVERLAY_SH) $(OVERLAYFS) $(UPSTREAM_STORE)-current $(DOWNSTREAM_STORE) $(CURDIR)/work $(CURDIR)/merged \
$(UNSHARE) -rm \
$(BIND_SH) $(CURDIR)/merged $(UPSTREAM_STORE) \
$(SPACK) \
Expand Down
2 changes: 1 addition & 1 deletion experimental/bin/overlay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fusermount -u "$merge" > /dev/null 2>&1 || true

# First process runs the overlay mount
if [ "$SLURM_LOCALID" = 0 ] || [ -z "${SLURM_LOCALID+x}" ]; then
"$overlayfscmd" -o "auto_unmount,big_writes,max_write=1048576,threaded=0,lowerdir=$lower,upperdir=$upper,workdir=$work" "$merge"
"$overlayfscmd" -o "fsync=0,noxattrs=1,xattr_permissions=0,lowerdir=$lower,upperdir=$upper,workdir=$work" "$merge"
fi

# Other processes wait for it to come into existence
Expand Down

0 comments on commit 4a4252d

Please sign in to comment.