Skip to content

Commit

Permalink
fix for issue in some hpc images causing lustre performance degradati…
Browse files Browse the repository at this point in the history
…on (#1753)

* fix read-ahead value for lustre mounts

* added a check to work if there is no lustre

* better check for lustre
  • Loading branch information
vgamayunov authored Nov 6, 2023
1 parent 1d05c28 commit ba9beb7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,10 @@ fi

# TODO : don't chmod 777, but instead reorganize lustre directories structure and permissions
chmod 777 $lustre_mount

# Fix the read-ahead issue present in some HPC images
for bdi in /sys/devices/virtual/bdi/lustrefs-* ; do
if [ -e $bdi/read_ahead_kb ] ; then
echo 0 > $bdi/read_ahead_kb
fi
done

0 comments on commit ba9beb7

Please sign in to comment.