日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux grub设置cpu频率,Linux:使用性能调控器时,为什么CPU频率会发生波动?

發布時間:2025/3/20 linux 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux grub设置cpu频率,Linux:使用性能调控器时,为什么CPU频率会发生波动? 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我正在使用Debian 8 amd64機器進行基準測試.在實驗過程中,我希望CPU以固定頻率(最好是可能的最大頻率)運行.這將排除CPU時鐘速度作為結果變化的來源.

The CPUfreq governor “performance” sets the CPU statically to the

highest frequency within the borders of scaling_min_freq and

scaling_max_freq.

遺憾的是,未提供有關scaling_min_freq和scaling_max_freq的更多詳細信息.希望它無關緊要,因為使用的CPU頻率是間隔的最大值.

所以我使用cpufreq-set啟用了這個調控器:

$cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

performance

performance

performance

performance

為了更好的衡量,我還在BIOS中禁用了turbo boost模式:

$cat /sys/devices/system/cpu/intel_pstate/no_turbo

1

基于以上對性能調控器的描述,我預計CPU時鐘速度不會有波動.然而,如果我反復運行cpufreq-info,我會看到時鐘速度波動:

$cpufreq-info | grep 'current CPU fr'

current CPU frequency is 4.00 GHz.

current CPU frequency is 3.99 GHz.

current CPU frequency is 4.00 GHz.

current CPU frequency is 4.00 GHz.

$cpufreq-info | grep 'current CPU fr'

current CPU frequency is 4.00 GHz.

current CPU frequency is 4.00 GHz.

current CPU frequency is 4.00 GHz.

current CPU frequency is 3.96 GHz.

$cpufreq-info | grep 'current CPU fr'

current CPU frequency is 4.00 GHz.

current CPU frequency is 4.00 GHz.

current CPU frequency is 4.00 GHz.

current CPU frequency is 3.94 GHz.

$cpufreq-info | grep 'current CPU fr'

current CPU frequency is 4.01 GHz.

current CPU frequency is 4.00 GHz.

current CPU frequency is 4.00 GHz.

current CPU frequency is 3.98 GHz.

這種波動是由于硬件,BIOS,內核還是其他因素造成的?有沒有辦法設置CPU頻率,使其根本不會波動?

與50位技術專家面對面20年技術見證,附贈技術全景圖

總結

以上是生活随笔為你收集整理的linux grub设置cpu频率,Linux:使用性能调控器时,为什么CPU频率会发生波动?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。