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

net.ipv4.tcp_keepalive_time: 30 net.ipv4.tcp_keepalive_time: 30
net.ipv4.tcp_keepalive_probes: 8 net.ipv4.tcp_keepalive_probes: 8



CPU
~~~

Disable ondemand cpu mode service:

.. code-block:: yaml

linux:
system:
cpu:
governor: performance



Repositories Repositories
~~~~~~~~~~~~ ~~~~~~~~~~~~



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

{%- 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

{%- if system.kernel is defined %} {%- if system.kernel is defined %}
- linux.system.kernel - linux.system.kernel
{%- endif %} {%- endif %}
{%- if system.cpu is defined %}
- linux.system.cpu
{%- endif %}
{%- if system.locale|length > 0 %} {%- if system.locale|length > 0 %}
- linux.system.locale - linux.system.locale
{%- endif %} {%- endif %}

Loading…
Cancel
Save