@@ -204,6 +204,21 @@ Systcl kernel parameters | |||
net.ipv4.tcp_keepalive_time: 30 | |||
net.ipv4.tcp_keepalive_probes: 8 | |||
CPU | |||
~~~ | |||
Disable ondemand cpu mode service: | |||
.. code-block:: yaml | |||
linux: | |||
system: | |||
cpu: | |||
governor: performance | |||
Repositories | |||
~~~~~~~~~~~~ | |||
@@ -0,0 +1,9 @@ | |||
{%- from "linux/map.jinja" import system with context %} | |||
{%- if system.cpu.governor is defined %} | |||
ondemand_service_disable: | |||
service.dead: | |||
- name: ondemand | |||
- enable: false | |||
{%- endif %} |
@@ -12,6 +12,9 @@ include: | |||
{%- if system.kernel is defined %} | |||
- linux.system.kernel | |||
{%- endif %} | |||
{%- if system.cpu is defined %} | |||
- linux.system.cpu | |||
{%- endif %} | |||
{%- if system.locale|length > 0 %} | |||
- linux.system.locale | |||
{%- endif %} |