A Salt State for Kernel Tuning #
There are a significant number of items that can be tuned to provide improved performance of a Ceph cluster. While the material provided in previous sections attempts to showcase important items, it should not be considered exhaustive. It is highly recommended that use of the information contained herein be done so with a scientific approach to understanding the performance needs and outcomes of specific tuning in comparison with baseline performance.
To utilize this Salt state follow these steps:
Create directory named
my_kerntunein/srv/salt/.Create
/srv/salt/my_kerntune/init.slswith the following contents:my_kern_tune: file.replace: - name: /etc/default/grub - pattern: showopts.* - repl: showopts intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll scsi_mod.use_blk_mq=1 nospec spectre_v2=off pti=off spec_store_bypass_disable=off l1tf=off" grub2_mkconfig: cmd.run: - runas: root - name: grub2-mkconfig -o /boot/grub2/grub.cfg - onchanges: - file: my_kern_tuneIssue the following command to set the state:
salt '*' state.apply my_kerntune
Reboot the nodes.
Warning
Verify the grub kernel command line and ensure the
pattern match specified by the pattern: parameter is appropriate. As is,
this will overwrite anything after the showopts kernel
command line argument.