CPU Governor 對 MySQL 效能的影響

Percona 的「CPU governor performance」這篇研究在 Linux 下 CPU Governor 對 MySQL 效能的影響。

由於是要測試 CPU 效能,所以作者將資料量控制在 memory fit,避免 i/o 造成的影響。

探討了兩種 driver (acpi-cpufreq 與 intel_pstate) 與兩種 governor (ondemand 與 performance),交叉後總共四種不同的組合。給了兩張圖,不過我覺得後面這張比較清楚:

黑色線是 intel_pstate + performance 的組合 (當基準),三個條狀圖就是另外三種。

可以看到藍色的 acpi-cpufreq + performance 效能其實跟基準線的 intel_pstate + performance 差不多。而只要是 ondemand 效能就掉很多... 所以伺服器開 performance 就是了 :o

Leave a Reply

Your email address will not be published. Required fields are marked *