---
title: 配置CPU frequency
description: 不同的CPU电源策略会导致CPU性能差异，使用性能优先的策略可以提升CPU性能。
url: "https://www.hikunpeng.com/document/detail/zh/kunpengcdns/ecosystemEnable/tngg/kunpengcdn_05_0008.html"
---

# 配置CPU frequency

#### 目的

不同的CPU电源策略会导致CPU性能差异，使用性能优先的策略可以提升CPU性能。


#### 方法

1. 重启服务器，进入BIOS设置界面，将CPU电源策略设置为“performance”模式。
2. 进入操作系统，将所有核的电源策略设置为“performance”模式。
  1 echo 'performance' |tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
