✨ feat(TSG-OS-9140): CPU FrequencyScaling
通过使能cpupower来设置CPU frequency scaling来优化9140性能
This commit is contained in:
@@ -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
|
||||
3
ansible/roles/system-init-9140/templates/cpupower.j2
Normal file
3
ansible/roles/system-init-9140/templates/cpupower.j2
Normal 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"
|
||||
Reference in New Issue
Block a user