Parcourir la source

feature commit #186 - set transparent_hugepage as kernel parameter in grub.conf

pull/187/head
Nick Metz il y a 6 ans
Parent
révision
e9d0277639
3 fichiers modifiés avec 13 ajouts et 0 suppressions
  1. +11
    -0
      README.rst
  2. +1
    -0
      linux/system/kernel.sls
  3. +1
    -0
      tests/pillar/system.sls

+ 11
- 0
README.rst Voir le fichier

- spectre_v2=off - spectre_v2=off
- nopti - nopti


Alternative way to set kernel boot options:

.. code-block:: yaml

linux:
system:
kernel:
transparent_hugepage: always
elevator: deadline
isolcpu: 1,2,3,4

CPU CPU
~~~ ~~~



+ 1
- 0
linux/system/kernel.sls Voir le fichier

{%- set kernel_boot_opts = [] %} {%- set kernel_boot_opts = [] %}
{%- do kernel_boot_opts.append('isolcpus=' ~ system.kernel.isolcpu) if system.kernel.isolcpu is defined %} {%- do kernel_boot_opts.append('isolcpus=' ~ system.kernel.isolcpu) if system.kernel.isolcpu is defined %}
{%- do kernel_boot_opts.append('elevator=' ~ system.kernel.elevator) if system.kernel.elevator is defined %} {%- do kernel_boot_opts.append('elevator=' ~ system.kernel.elevator) if system.kernel.elevator is defined %}
{%- do kernel_boot_opts.append('transparent_hugepage=' ~ system.kernel.transparent_hugepage) if system.kernel.transparent_hugepage is defined %}
{%- do kernel_boot_opts.extend(system.kernel.boot_options) if system.kernel.boot_options is defined %} {%- do kernel_boot_opts.extend(system.kernel.boot_options) if system.kernel.boot_options is defined %}


include: include:

+ 1
- 0
tests/pillar/system.sls Voir le fichier

kernel: kernel:
isolcpu: 1,2,3,4 isolcpu: 1,2,3,4
elevator: deadline elevator: deadline
transparent_hugepage: always
boot_options: boot_options:
- pti=off - pti=off
- spectre_v2=auto - spectre_v2=auto

Chargement…
Annuler
Enregistrer