feat(TSG-OS-9140): CPU FrequencyScaling

通过使能cpupower来设置CPU frequency scaling来优化9140性能
This commit is contained in:
songyanchao
2021-11-18 04:27:50 -05:00
committed by 付明卫
parent 71b9ddf1b4
commit 72fd71d4d0
2 changed files with 14 additions and 0 deletions

View File

@@ -256,4 +256,15 @@
- name: 'start-poweroff-guard service start'
systemd:
name: start-poweroff-guard
enabled: yes
#Set CPU frequency scaling
- name: "copy cpupower.j2 to /etc/sysconfig/cpupower"
copy:
src: "{{ role_path }}/templates/cpupower.j2"
dest: /etc/sysconfig/cpupower
mode: 0644
- name: "enable cpupower"
systemd:
name: cpupower
enabled: yes

View File

@@ -0,0 +1,3 @@
# See 'cpupower help' and cpupower(1) for more info
CPUPOWER_START_OPTS="frequency-set -g performance"
CPUPOWER_STOP_OPTS="frequency-set -g powersave"