BurnlnTest

最近又了解了一下BurnlnTest,主要用来对虚拟机进行加压,可以进行压测CPU,内存,IO等,我主要是测试了Linux主机,版本稍微有点老

下载链接:

wget http://www.passmark.com/ftp/burnintest_2.1.tar.gz

下载完解压后,先看下目录下各个玩意,README和帮助文档就不管了,这里有个shell脚本

#!/bin/bash

#Check if 64 bit or 32 bit
platform=$(uname -m)
if [ "$platform" = "x86_64" ]; then
bitexe="./64bit/bit_gui_x64"
echo "64-bit OS detected, launching" $bitexe
else
bitexe="./32bit/bit_gui_x32"
echo "32-bit OS detected, launching" $bitexe
fi

echo
#Check if required libraries are there, warn if not

#for i in $( ldd $bitexe |cut -f2 | cut -d' ' -f1 ); do
count=0
for i in $( ldd $bitexe | grep "not found" |cut -f2 | cut -d' ' -f1 ); do
    echo "Missing Library: " $i
    count=1
done

echo
if [ $count -gt 0 ]; then
echo "Missing libraries detected!"
echo "To use the GUI version of BurnInTest you will need to install the above"
echo "libraries using your prefered package manager before running BurnInTest"
echo "A command line version of BurnInTest that requires less libraries"
echo "is also available in the 32bit and 64bit directories."
else
exec $bitexe
fi

先判断32位还是64位操作系统,然后检查了一大堆的动态库,但都是不需要的,因为涉及到GUI相关,如果要用Linux下的GUI,估计除了这些动态链接库,本身linux可能也要额外一些依赖KDE,GNOME等之类的包,这里就不管了

进入64bit目录下,这里有两个可执行程序bit_cmd_line_x64和bit_gui_x64,用到的是bit_cmd_line_x64,在虚拟机里验证一下

./bit_cmd_line_x64

这时候可以输出信息

BurnInTest Linux Command Line Version
Start Time Fri Mar  3 00:48:33 Elapsed Time 00:00:21
Run for 15.0 minutes or 0 cycles (0 is forever)

Test Name                Cycle  Operations       Errors Last Error Description
CPU - Maths              20     1.953 Billion    0      No error
Memory (RAM)             0      11.336 Billion   0      No error
Network: 127.0.0.1       34628  304 Million      0      No error











Use ESC or CTRL-C to exit. Use number keys to switch to single test screen;
1: Main Menu     2: CPU Math Test 3: Memory Test   4: Disk Test   5: DVD/CD Test
6: Network Test  7: Serial Test   8: Parallel Test 9: USB Test

按下面的提示,选择2,只看CPU数学计算

NewImage

 

 

 

 

 

 

 

 

 

 

 

 

可以看到每行的运算在逐行刷新

这里有个官方文档,Linux相关的,对于CPU Math Test,有相关说明,这里就直接COPY一下,以后好直接查看,懒得去官网看

CPU Maths Test
The CPU test exercises and verifies a wide range of CPU instructions, at user specified loads. The user selectable sub-categories of the CPU test are:
• General purpose instructions (x86)
• Floating Point Unit (FPU) instructions (x87)
• CPU extension instructions (x86 extensions). The specific extension instructions may be selected: SSE, SSE2. • Prime number test
The numbers displayed in the test window for this test represent how many millions of CPU operations have been performed and verified. Each different math’s test is run for half a second. After all tests have been run the cycle count is incremented. The duty cycle and the CPU speed determine how many operations can be processed during the half second period. By default, a CPU test is run on each CPU core.
General purpose instructions
This test exercises and verifies correct operation of CPU instructions from the following groups:
· Integer mathematics (e.g. add, subtract, multiply and divide)
· Data transfer instructions (e.g. pushing/popping data to/from the stack) · Bitwise logical instructions (e.g. bitwise and/or/xor)
· Shift and rotate instructions (e.g. shift data left x number of bits)
· Logical instructions (e.g. equals)
· Control transfer instructions (e.g. jump on x greater than y)
· String instructions (eg. copy a text string)
Known and random data sets are used to exercise and verify correct operation. The random numbers are generated regularly to provide a larger data set, as well as ensure that the CPU caches overflow and that this mechanism is tested.
Floating Point Unit (FPU) instructions
This test exercises and verifies correct operation of CPU instructions from the following groups: · Floating Point math (e.g. add, subtract, multiply and divide)
  
· Transcendental's (e.g. sin, cos)
Extension instructions (x86 extensions)
This test exercises extensions to the x86 CPU instruction set for a variety of applications, such as multimedia.
SSE : As above, but for SSE instructions. Instructions include moving SSE registers, adding, subtracting, and multiplying. Data set: groups of 4 x 32-bit floats (e.g. a,b,c,d) where a,b,c and d are 32-bit floats.
SSE2: As for the SSE test, but for SSE2 instructions. Data set: pairs of 64-bit floats (e.g. x,y) where x,y are 64-bit floats.
Prime number
This test exercises and verifies correct operation of CPU through the use of a prime number generation algorithm.
Helpful command line tool:
[your_command_line_prompt]# cat /proc/cpuinfo
This command will show your CPU info, including speed, cache size and features.

介绍了有哪些指令的测试,运算以及浮点型运算

文档地址:

http://www.passmark.com/ftp/BIT_Linux_Help.pdf

看下htop的结果

NewImage

 

 

 

 

 

 

 

 

 

这里可以看到有这句显示

Run for 15.0 minutes or 0 cycles (0 is forever)

这里有两个参数,-D:minutes和-X:cycles

比如指定参数-D 1的结果:

Run for 1.0 minutes or 0 cycles (0 is forever)

-X 1的结果:

Run for 15.0 minutes or 1 cycles (0 is forever)

可惜的是只提供了可执行程序,而没有源代码,无法修改

  

发表评论