iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
seasona
V2EX  ›  iDev

Macos 怎么限制某个进程的 CPU 使用率?

  •  
  •   seasona · Oct 30, 2025 · 3013 views
    This topic created in 330 days ago, the information mentioned may be changed or developed.

    想限制一下 macbook 上监控软件的 CPU 使用率,尝试了一些 GUI 软件都不生效。

    想自己写个小程序,尝试了以下方式也都不可行:

    1. cgroup, macos 没有
    2. 通过 kill SIGSTOP 和 SIGCONT 信号,macos 也不支持
    3. 改 nice 值,只是调低优先级,并不能实际将 CPU 使用率限制到 20%这样

    有没有什么好办法?

    3 replies  •  2025-10-31 13:56:05 +08:00
    ybz
        1
    ybz  
    PRO
       Oct 30, 2025
    使用 launchctl 来启动,launchctl 的 plist 配置文件可以限制。
    ern
        2
    ern  
       Oct 30, 2025
    AppTamer ?好像没那么精准
    MIUIOS
        3
    MIUIOS  
       Oct 31, 2025
    曲线救国,用 docker
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   866 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 22:07 · PVG 06:07 · LAX 15:07 · JFK 18:07
    ♥ Do have faith in what you're doing.