Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
Applies to SUSE Enterprise Storage 6

A Salt State for Kernel Tuning Edit source

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:

  1. Create directory named my_kerntune in /srv/salt/.

  2. Create /srv/salt/my_kerntune/init.sls with 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_tune
  3. Issue the following command to set the state:

    salt '*' state.apply my_kerntune
  4. Reboot the nodes.

Warning
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.

Print this page