Logo Ricky
  • 首頁
  • 關於
  • 更多的
    技能 經歷 學歷 專案
  • 文章
  • 筆記
  • 活動
  • 跑步
  • Chinese
    English Chinese
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • 標籤
  • ACME
  • AI
  • Ansible
  • APP
  • BASH
  • Browser
  • Byte
  • Chart
  • Checklist
  • Chrome OS
  • CI
  • Cloudflare
  • Command Line
  • Config
  • Container
  • CPU
  • CURL
  • Data
  • Debug
  • Docker
  • EFF
  • Emoji
  • EMQX
  • Extension
  • GIN
  • Git
  • Github
  • Gitlab
  • Gluetun
  • Go
  • Golang
  • Google
  • GraphQL
  • HTTP
  • Infra
  • Infrastructure
  • Introduction
  • ITerm2
  • Kubernetes
  • Leetcode
  • Lightweight
  • Linux
  • Llm
  • Lua
  • Lullaby
  • Machinelearning
  • MacOS
  • Markdown
  • Module
  • MQTT
  • Music
  • Network
  • Nftables
  • NGINX
  • Ollama
  • Prometheus
  • Protobuf
  • Proxy
  • Push
  • Python
  • QRCode
  • Redis
  • Regex
  • Security
  • SFTP
  • SHELL
  • Slides
  • Snow
  • Software
  • Ssh
  • String
  • Switch
  • Synology
  • Terminal
  • Timeout
  • Travel
  • Tunnel
  • URL
  • Video
  • Visualization
  • VPN
  • VScode
  • Web
  • Youtube
  • Zero Trust
  • 台語
Hero Image
独立服务器 CPU 频率最大化配置指南

独立服务器 CPU 频率最大化配置指南 看看 CPU 现在混哪种模式 前提条件 系统:Linux(Debian、Ubuntu、Proxmox 等都行) 权限:root CPU:支持动态调频(Intel Xeon、AMD EPYC / Ryzen 等) governor cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave:节能小绵羊(频率锁低,省电但废武功) ondemand:按需加速(要用时才升频,可能反应慢半拍) performance:全程高能(我们要的就是它!💪) 确认内核到底用的哪种驱动(Intel / AMD) cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 临时拉满性能 for cpu in /sys/devices/system/cpu/cpu[0-9]*; do echo performance > $cpu/cpufreq/scaling_governor done 重启后也保持高能 方案 A:最稳妥推荐 apt install cpufrequtils -y echo 'GOVERNOR="performance"' >/etc/default/cpufrequtils systemctl enable cpufrequtils systemctl start cpufrequtils 方案 B:systemd 自定义服务 # /etc/systemd/system/cpu-performance.service [Unit] Description=Set CPU governor to performance After=multi-user.target [Service] Type=oneshot ExecStart=/bin/bash -c 'for cpu in /sys/devices/system/cpu/cpu[0-9]*; do echo performance > $cpu/cpufreq/scaling_governor; done' [Install] WantedBy=multi-user.target systemctl daemon-reexec systemctl daemon-reload systemctl enable --now cpu-performance.service

Tuesday, September 2, 2025 閱讀
導覽列
  • 關於
  • 技能
  • 經歷
  • 學歷
  • 專案
聯絡方式:
  • zeyanlin@outlook.com
  • linzeyan
  • Ricky
  • Ricky
  • Ricky