备用电源性能下降

备用电源性能下降

我在备份上测试了我的系统,发现在备份上运行时性能明显下降。结果如下:

配置:

  1. CPU:2.0 Ghz,6 核,12 线程
  2. 内存:16 GB
  3. 不间断电源:600W/1000VA
  4. PSU:460W 黄金效率
  5. 操作系统:Ubuntu 12.04.3
  6. 软件:sysbench

*) 主电源开启

andra@Ajax-Alpha:~$ sysbench --test=cpu --cpu-max-prime=100000 --num-threads=12 run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 12

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 100000


Test execution summary:
    total time:                          32.4046s
    total number of events:              10000
    total time taken by event execution: 388.4964
    per-request statistics:
         min:                                 33.81ms
         avg:                                 38.85ms
         max:                                 50.79ms
         approx.  95 percentile:              38.88ms

Threads fairness:
    events (avg/stddev):           833.3333/1.18
    execution time (avg/stddev):   32.3747/0.01

*) 主电源关闭

andra@Ajax-Alpha:~$ sysbench --test=cpu --cpu-max-prime=100000 --num-threads=12 run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 12

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 100000


Test execution summary:
    total time:                          40.6918s
    total number of events:              10000
    total time taken by event execution: 487.9980
    per-request statistics:
         min:                                 34.56ms
         avg:                                 48.80ms
         max:                                730.18ms
         approx.  95 percentile:              44.61ms

Threads fairness:
    events (avg/stddev):           833.3333/0.47
    execution time (avg/stddev):   40.6665/0.01

这意味着相同量的计算需要额外 8 秒,即主电源运行服务器所需时间的 25%。

我想知道这是否与服务器可用的备用电源不足有关?或者

无论为服务器提供多少备用电源,在使用备用电源运行时,性能都会大大下降?

答案1

在 Windows 上,操作系统能够检测服务器何时使用电池供电,并限制 CPU 以节省电量。如果您的系统上配置了类似的东西,我一点也不惊讶。

相关内容