每当我在装有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)
我还看到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 core_power_limit_count
0
$ cat core_throttle_count
41912
$ cat package_power_limit_count
67945
$ cat package_throttle_count
67565
这些计数器是什么意思?
它们会影响CPU或系统的性能吗?它们会导致绩效数字偏差增加吗?(即它们是否阻止了我获得可靠的性能数据?)
如果是这样,如何避免这些消息并增加计数器?在凉爽的桌面系统上运行性能测试会有所帮助吗?