百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

CPUTune

> 编程语言
开源

开源内核扩展可以使动态CPU在运行时间为macOS进行性能调试.

191 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

开源内核扩展可以使动态CPU在运行时间为macOS进行性能调试.

CPUTune

An open source kernel extension enables dynamic CPU performance tuning at runtime for macOS.

Features

  • Allows turning on or off Intel Turbo Boost for better battery life
  • Allows turning on or off Intel Speed Shift for maximum performance
  • Provides the fine granularity to change HWP (performance value) at runtime
  • Provides the control over tuning turbo ratio limit at runtime when turbo boost is enabled
  • Allows turning on or off Intel Proc Hot (BD_PROCHOT) for running without a battery. Please note that this is NOT recommended and can seriously damage your mac. Do at your own risk.
  • Implements TimerEvent-based responses for dynamical switching Turbo Boost and Speed Shift at runtime
  • Allows System Integrity Protection (SIP) control a bit easier via Info.plist setting

Installation

  • Disable the System Integrity Protection, reboot
  • Download the repo and open the CPUTuneCore/CPUTuneCore.xcodeproj via Xcode
  • Navigate to Product then click Build. Once the compiled completed, you will find CPUTuneCore.kext in the Product folder, copy it to /Library/Extensions
  • Change the CPUTuneCore.kext ownership to root:wheel, mode to rwxr-xr-x (or 755)
  • Rebuild the kernel cache in terminal: sudo touch /Library/Extensions; sudo kextcache -i /, reboot
  • Enable the SIP back and reboot

Boot arguments

  • Add -cputoff to disable CPUTune
  • Add -cputbeta to enable CPUTune on unsupported os versions (10.15 and below are enabled by default).

Configuration

Open terminal:

  • Type in echo 1>/tmp/CPUTuneTurboBoostRT.conf to enable turbo boost when CPUTune is loaded
  • Type in echo 0>/tmp/CPUTuneTurboBoostRT.conf to disable turbo boost when needed
  • Type in echo >/tmp/HWPRequest.conf to submit persistency hwp request at runtime. For example = 0x80193008
  • Type in echo >/tmp/TurboRatioLimit.conf to submit cores maximum frequency at runtime. For example 0x2b2c2d2f3030 in i9-8950HK (6 cores) sets the maximum frequency for Core[1-6] at 43(0x2b), 44(0x2c), 45(0x2d), 46(0x2f), 48(0x30), 48(0x30) respectively.
  • Type in echo 1>/tmp/CPUTuneProcHotRT.conf to enable proc hot when needed
  • Type in echo 0>/tmp/CPUTuneProcHotRT.conf to disable proc hot when needed
  • Change update time interval (millisecond) in CPUTune.kext/Contents/Info.plist to have a more looser/tigher control over HWP request
  • In case you want a simplify command to switch turbo boost, change the TurboBoostAtRuntime in CPUTune.kext/Contents/Info.plist

Contribution

All suggestions and improvements are welcome, don't hesitate to pull request or open an issue if you want this project to be better than ever. Writing and supporting code is fun but it takes time. Please provide most descriptive bugreports or pull requests.

Change Log

Change logs for detail improvements

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言