diff --git a/roles/slurm-common/templates/slurm.epilog.j2 b/roles/slurm-common/templates/slurm.epilog.j2 index 71b02e52891533284ce7b31637757e55b18a0911..0c059ae612df1d3e3d57ccf5c552f46b6a2fa50a 100644 --- a/roles/slurm-common/templates/slurm.epilog.j2 +++ b/roles/slurm-common/templates/slurm.epilog.j2 @@ -6,8 +6,9 @@ find /tmp -user ${SLURM_JOB_USER} -name ".esd-*" | xargs rm -rf find /tmp -user ${SLURM_JOB_USER} -name ".X*-lock" | xargs rm -rf find /tmp/.X11-unix -user ${SLURM_JOB_USER} -name "X*" | xargs rm -rf -# files to be deleted from /tmp after jobs completed -/bin/find /tmp -user ${SLURM_JOB_USER} -type 'f' -print0 | /usr/bin/xargs -0 -r /bin/rm -f # echo 1 to drop page cache -sync; echo 1 > /proc/sys/vm/drop_caches +/bin/sync +/bin/echo 1 > /proc/sys/vm/drop_caches + +exit 0