每当我在安装 Linux 的 MacBook Pro 上进行一些性能测试时,我经常在 dmesg 中看到以下消息:
Aug 8 09:29:31 infinity kernel: [79791.789404] CPU1: Package power limit notification (total events = 40365)
Aug 8 09:29:31 infinity kernel: [79791.789408] CPU3: Package power limit notification (total events = 40367)
Aug 8 09:29:31 infinity kernel: [79791.789411] CPU2: Package power limit notification (total events = 40453)
Aug 8 09:29:31 infinity kernel: [79791.789414] CPU0: Package power limit notification (total events = 40453)
Run Code Online (Sandbox Code Playgroud)
我还看到 sysfs 中的油门计数器随着时间的推移而增加:
trustin@infinity:/sys/devices/system/cpu/cpu0/thermal_throttle
$ ls
core_power_limit_count package_power_limit_count
core_throttle_count package_throttle_count
$ cat …
Run Code Online (Sandbox Code Playgroud)