最近又了解了一下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数学计算

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

这里有个官方文档,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的结果

这里可以看到有这句显示

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)

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

linux如何运行burnintest,BurnlnTest相关推荐

  1. Linux上运行一个c程序

    b站的视频链接:Linux虚拟机运行c程序_哔哩哔哩_bilibili希望对大家有所帮助,不对的地方还请多多指教!https://www.bilibili.com/video/BV18Q4y1r7st ...

  2. linux里运行windows,在Linux上运行Windows应用程序

    当前位置:我的异常网» Linux/Unix » 在Linux上运行Windows应用程序 在Linux上运行Windows应用程序 www.myexceptions.net  网友分享于:2015- ...

  3. linux下运行python unitest_Python unittest打印日志可以在Linux上运行,但在Windows上不行...

    我正在尝试编写一个unittest,它将stdout和stderr重定向到一个写在Windows网络驱动器上的文件.出于某些原因,相同的脚本(只有diff.是目录路径)可以在Linux上工作,但在Wi ...

  4. linux如何运行windows游戏,可运行在Linux下最好Windows软件和游戏

    下面这篇文章是为了告知我们的读者,在Wine软件的帮助下,流行的Windows原生软件和游戏,也可以安装并运行在基于Linux的操作系统上. 我们最近发现,许多人不知道,游戏如流行的魔兽世界,使命召唤 ...

  5. Kali Linux下运行Sniffjoke出错的解决

    Kali Linux下运行Sniffjoke出错的解决 由于Kali Linux版本的更新和Sniffjoke发布时间久远等问题,Sniffjoke在新版本的Kali Linux中运行存在各种问题.下 ...

  6. Linux下运行java DES解密失败,报javax.crypto.BadPaddingException:Given final block not properly padded

    参考:http://blog.csdn.net/rj042/article/details/8196125 单点登录:https://github.com/ebnew/ki4so redis客户端操作 ...

  7. 如何判断 Linux 是否运行在虚拟机上

    在 WebHostingTalk 论坛上有些国外奸商会把虚拟机当作独立服务器卖,去年7月份的时候就有一位中国同胞上当受骗,并在 WHT 上发帖声讨,证据确凿,甚至连服务商自己也承认,回帖达355篇.这 ...

  8. python php linux-怎么在linux上运行python

    Linux默认是已经安装好了Python程序 目前来说,大多数的Linux发行版是安装了两个版本的Python程序 一个是Python 2.x 一个是Python 3.x 一些系统自带的程序文件需要P ...

  9. 如何让LINUX程序运行在多CPU?

    我们在LINUX中运行一些程序,经常会发现这些程序就运行一个CPU核心之上,如何分散到现在多核的CPU呢? 当然第一方法是从程序源码上解决,这个暂不淡: 第二方法就是从运维角度思考?我们一起想想吧. ...

最新文章

  1. mysql 多物理机_MySQL 5.6同一物理主机配置多实例
  2. dragstart drag dragend dragenter dragover dragleave drop
  3. 郑州大学“战疫杯”大学生程序设计在线邀请赛(6)(C++题解+详细思路)2022年5月14日
  4. 观天涯kk大神10年帖子有感
  5. 网站服务器域名费用入什么科目,企业域名服务费记什么科目
  6. 重庆阿尔克分析2020中国经济,为什么实体经济干不过虚拟经济?
  7. mathtype下载之后word工具栏不出现
  8. 爬取华尔街日报的历史数据并翻译
  9. 转:如何在艰难时期留住好员工
  10. 使用Mixamo_Converter重新定义根骨骼导入UE4
  11. iOS 开发值得拥有的75 个工具
  12. 推进全息智慧情报研判,助力构建现代交通安全防控体系
  13. OSChina 周二乱弹 ——同桌男孩子动手动脚,我该怎么办
  14. 太酷了,手把手教你用 Python 绘制桑基图
  15. 不定高垂直居中的三种方法
  16. 解决Navicat使用账号密码登陆Oracle数据库提示【密码已过期,请输入新密码】【或账号已被锁定】
  17. 数据挖掘分析考试笔记
  18. Java基础之map总结
  19. linux 隐藏字符 h,shell 里面的奇葩字符实现
  20. 【文本三剑客之一sed】

热门文章

  1. 初试 Matlab 之去除水印
  2. 物联网大潮下的金融变革 智慧银行时代到来
  3. Database Navigator 使用默认MySQL连接提示:The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or repres
  4. Lottie动画框架入门及源码简析
  5. 爬取上交所和深交所的年报问询函到Excel
  6. 强化学习用于推荐系统 相关资料
  7. 如何使用机器学习对CFD模拟结果进行预测
  8. 反馈式神经网络之HNN
  9. debug chromium project - create sub proces
  10. uin-app微信小程序开发