瀏覽代碼

cpu governor

tags/mcp0.5
Jiri Broulik 8 年之前
父節點
當前提交
f8f55a2fcc
共有 3 個檔案被更改,包括 27 行新增0 行删除
  1. +15
    -0
      README.rst
  2. +9
    -0
      linux/system/cpu.sls
  3. +3
    -0
      linux/system/init.sls

+ 15
- 0
README.rst 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存