Browse Source

Merge pull request #53 from jiribroulik/master

cpu governor
tags/mcp0.5
Filip Pytloun 8 years ago
parent
commit
b26f03851f
3 changed files with 27 additions and 0 deletions
  1. +15
    -0
      README.rst
  2. +9
    -0
      linux/system/cpu.sls
  3. +3
    -0
      linux/system/init.sls

+ 15
- 0
README.rst View File

@@ -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
~~~~~~~~~~~~


+ 9
- 0
linux/system/cpu.sls View File

@@ -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 %}

+ 3
- 0
linux/system/init.sls View File

@@ -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 %}

Loading…
Cancel
Save