---
title: "树莓派超频设置"
url: "https://versun.me/raspberry-pi-overclocking"
markdown_url: "https://versun.me/raspberry-pi-overclocking.md"
format: "note"
published: "2019-12-21T00:00:00.000Z"
updated: "2026-01-05T05:31:53.000Z"
collections:
  - "Blog"
site: "Versun"
---

# 树莓派超频设置

设备：树莓派4b 4G内存.  
编辑/boot/config.txt  
添加以下代码:  
arm\_freq=2000  
over\_voltage=10  
保存，重启即可。  
建议可以从1750开始超，如果能顺利重启，则再设置为2000  
如果无法顺利重启，可以把SD卡插到其他电脑上，去修改config文件即可。  
**其他相关命令：**  
当前电压：  
vcgencmd measure\_volts  
当前温度：  
vcgencmd measure\_temp  
当前频率：  
sudo cat /sys/devices/system/cpu/cpu0/cpufreqq/cpuinfo\_cur\_freq  
最大频率：  
sudo cat /sys/devices/system/cpu/cpu0/cpufreqq/cpuinfo\_max\_freq  
**性能测试**

- 表示创建4个线程来寻找 √￣20000 以内的质数：  
sysbench –num-threads=4 –test=cpu –cpu-max-prime=20000 run
- 跑分软件nbench  
wget  
tar -xvzf nbench-byte-2.2.3.tar.gz  
cd nbench-byte-2.2.3  
make  
./nbench  
**压力测试**  
期间温度不超85度为正常。  
sudo apt install stress  
stress -c 4 -t 10m -v
