Skip to content

Commit

Permalink
Merge pull request #48 from stackhpc/tuning
Browse files Browse the repository at this point in the history
Separate disk tuning from system tuning (v19.8.2)
  • Loading branch information
brtkwr authored Sep 3, 2019
2 parents 1b89e13 + 8211795 commit cb05795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion tasks/tuning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@
src: beegfs-oss-tuning.service
dest: /etc/systemd/system/
notify: Restart BeeGFS tuning service
when: beegfs_oss_tunable | default([]) | length > 0
become: true
2 changes: 2 additions & 0 deletions templates/beegfs-oss-tuning.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -x

echo always > /sys/kernel/mm/transparent_hugepage/enabled
echo always > /sys/kernel/mm/transparent_hugepage/defrag
{% if beegfs_oss_tunable | length > 0 %}
for dev in {{ beegfs_oss_tunable | join(' ') }}
do
if [ -d /sys/block/${dev} ]; then
Expand All @@ -14,3 +15,4 @@ do
echo 256 > /sys/block/${dev}/queue/max_sectors_kb
fi
done
{% endif %}

0 comments on commit cb05795

Please sign in to comment.