Przeglądaj źródła
Merge pull request #187 from FHE3/add-transparent-hugepage-in-kernel
feature commit #186 - set transparent_hugepage as kernel parameter in…
pull/188/head
Filip Pytloun
6 lat temu
Brak konta powiązanego z adresem e-mail autora
3 zmienionych plików z
13 dodań i
0 usunięć
-
README.rst
-
linux/system/kernel.sls
-
tests/pillar/system.sls
|
|
@@ -705,6 +705,17 @@ Configure kernel boot options: |
|
|
|
- spectre_v2=off |
|
|
|
- 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 |
|
|
|
~~~ |
|
|
|
|
|
|
@@ -6,6 +6,7 @@ |
|
|
|
{%- set kernel_boot_opts = [] %} |
|
|
|
{%- 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('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 %} |
|
|
|
|
|
|
|
include: |
|
|
@@ -37,6 +37,7 @@ linux: |
|
|
|
kernel: |
|
|
|
isolcpu: 1,2,3,4 |
|
|
|
elevator: deadline |
|
|
|
transparent_hugepage: always |
|
|
|
boot_options: |
|
|
|
- pti=off |
|
|
|
- spectre_v2=auto |