最初这个问题是关于为什么我购买了2300 mhz服务器cpu时,为什么我的cpuinfo mhz是1400。
在HBruijn(thx!)的帮助下,使用cpufreq-info工具,我发现了我的真实规格:
analyzing CPU 7: driver: powernow-k8 CPUs which run at the same hardware frequency: 7 CPUs which need to have their frequency coordinated by software: 7 maximum transition latency: 8.0 us. hardware limits: 1.40 GHz - 2.40 GHz available frequency steps: 2.40 GHz, 2.10 GHz, 1.90 GHz, 1.60 GHz, 1.40 GHz available cpufreq governors: userspace, powersave, conservative, ondemand, performance current policy: frequency should be within 1.40 GHz and 2.40 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 1.40 GHz (asserted by call to hardware).
题:
让驱动程序决定 CPU的功率是多less(1400MHZ低使用率), 还是服务器永久设置频率(2300MHZ)更好?
原始答案:
我会说一切的一点点。
AMD 3280 CPU产品说明指定了8个内核,基本频率为2400 Hz。 这与您的/ proc / cpuinfo不匹配,也不与您的发票上的8×2.3 GHz匹配。
如何做CPU频率缩放,以节省电力?
从https://wiki.debian.org/HowTo/CpuFrequencyScaling解释
apt-get install cpufrequtils
编辑/ etc / default / cpufrequtils(如果不存在,则可能需要创build它),并使用GOVERNORvariables指定pipe理器:
# /etc/default/cpufrequtils # get valid values from cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors # typically: userspace conservative powersave ondemand performance GOVERNOR="conservative"
扩大您的CPU频率或不?
这取决于。 它总是,真的。
IBM开发者工作有一系列关于Linux功耗,调优和CPU节stream的第二 部分 。 非常翔实。
结论是,性能pipe理者的性能最高,延迟最低,但是看每瓦性能,这是performance最差的。
所以从生态的angular度来看保守。 如果你支付自己的电力消耗,那么也这样做。 如果您的机架空间需要最大性能和功耗,请始终将其设置为最大值。