背景

想研究一下国产和不同架构,不通型号CPU的算力
也作为后续生产交付的基线准备.
学习各种不同工具进行简要测试.

安装

git clone https://github.com/ColinIanKing/stress-ng.git
cd stress-ng
make
然后就会在当前目录创建一个可执行文件
stress-ng
x86和aarch64是一样的.

主要测试脚本

Run 4 CPU, 2 virtual memory, 1 disk and 8 fork stressors for 2 minutes and print measurements:
stress-ng --cpu 4 --vm 2 --hdd 1 --fork 8 --timeout 2m --metrics Run matrix stressor on all online CPUs for 60 seconds and measure temperature:
stress-ng --matrix -1 --tz -t 60 Run a mix of 4 I/O stressors and check for changes in disk S.M.A.R.T. metadata:
sudo stress-ng --iomix 4 --smart -t 30s Benchmark system calls using the VDSO:
stress-ng --vdso 1 -t 5 --metrics Generate and measure branch misses using perf metrics:
sudo stress-ng --branch 1 --perf -t 10 --stdout | grep Branch

鲲鹏虚拟机的结果

/stress-ng --cpu 4 --vm 2 --hdd 1 --fork 8 --timeout 2m --metrics
stress-ng: info: [1764043] setting to a 120 second (2 mins, 0.00 secs) run per stressor
stress-ng: info: [1764043] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork
stress-ng: info: [1764043] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s CPU used per RSS Max
stress-ng: info: [1764043] (secs) (secs) (secs) (real time) (usr+sys time) instance (%) (KB)
stress-ng: info: [1764043] cpu 90568 120.01 476.10 0.25 754.67 190.13 99.23 5376
stress-ng: info: [1764043] vm 4479814 120.00 237.18 1.09 37331.39 18801.41 99.28 150656
stress-ng: info: [1764043] hdd 458752 125.92 15.30 6.96 3643.14 20609.34 17.68 1600
stress-ng: info: [1764043] fork 805043 120.00 88.03 90.05 6708.66 4520.63 18.55 3904
stress-ng: info: [1764043] miscellaneous metrics:
stress-ng: info: [1764043] hdd 5378.02 MB/sec read rate (geometic mean of 1 instances)
stress-ng: info: [1764043] hdd 5385.10 MB/sec write rate (geometic mean of 1 instances)
stress-ng: info: [1764043] hdd 5381.56 MB/sec read/write combined rate (geometic mean of 1 instances)
stress-ng: info: [1764043] successful run completed in 125.92s (2 mins, 5.92 secs)

飞腾2500+物理机

stress-ng: info:  [4155956] setting to a 120 second (2 mins, 0.00 secs) run per stressor
stress-ng: info: [4155956] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork
stress-ng: info: [4155956] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s CPU used per RSS Max
stress-ng: info: [4155956] (secs) (secs) (secs) (real time) (usr+sys time) instance (%) (KB)
stress-ng: info: [4155956] cpu 54036 120.08 480.27 0.04 449.99 112.50 100.00 6336
stress-ng: info: [4155956] vm 2327541 120.00 238.08 1.92 19395.68 9698.38 99.99 151104
stress-ng: info: [4155956] hdd 1706914 120.00 80.84 37.43 14223.72 14432.65 98.55 3776
stress-ng: info: [4155956] fork 799938 120.00 494.91 581.67 6666.13 743.03 112.14 4032
stress-ng: info: [4155956] miscellaneous metrics:
stress-ng: info: [4155956] hdd 2663.89 MB/sec read rate (geometic mean of 1 instances)
stress-ng: info: [4155956] hdd 3252.81 MB/sec write rate (geometic mean of 1 instances)
stress-ng: info: [4155956] hdd 2929.55 MB/sec read/write combined rate (geometic mean of 1 instances)
stress-ng: info: [4155956] successful run completed in 120.17s (2 mins, 0.17 secs)

飞腾2000+物理机

stress-ng: info:  [3916081] setting to a 120 second (2 mins, 0.00 secs) run per stressor
stress-ng: info: [3916081] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork
stress-ng: info: [3916081] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s CPU used per RSS Max
stress-ng: info: [3916081] (secs) (secs) (secs) (real time) (usr+sys time) instance (%) (KB)
stress-ng: info: [3916081] cpu 52085 120.10 479.29 0.11 433.70 108.65 99.80 6336
stress-ng: info: [3916081] vm 1881017 120.00 237.33 1.89 15674.69 7863.20 99.67 150912
stress-ng: info: [3916081] hdd 1614848 120.01 73.40 46.24 13455.87 13497.90 99.69 3776
stress-ng: info: [3916081] fork 1314325 120.00 522.63 579.41 10952.70 1192.63 114.80 4032
stress-ng: info: [3916081] miscellaneous metrics:
stress-ng: info: [3916081] hdd 2012.78 MB/sec read rate (geometic mean of 1 instances)
stress-ng: info: [3916081] hdd 2487.28 MB/sec write rate (geometic mean of 1 instances)
stress-ng: info: [3916081] hdd 2226.36 MB/sec read/write combined rate (geometic mean of 1 instances)
stress-ng: info: [3916081] successful run completed in 120.20s (2 mins, 0.20 secs)

飞腾2500 虚拟机

stress-ng: info:  [814485] setting to a 120 second (2 mins, 0.00 secs) run per stressor
stress-ng: info: [814485] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork
stress-ng: info: [814485] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s CPU used per RSS Max
stress-ng: info: [814485] (secs) (secs) (secs) (real time) (usr+sys time) instance (%) (KB)
stress-ng: info: [814485] cpu 39040 120.05 354.04 0.61 325.19 110.08 73.85 4736
stress-ng: info: [814485] vm 1612136 120.00 180.96 1.82 13434.14 8820.19 76.16 146880
stress-ng: info: [814485] hdd 1189177 120.02 57.64 28.67 9907.93 13777.31 71.91 1664
stress-ng: info: [814485] fork 310675 120.00 100.49 111.94 2588.94 1462.49 22.13 3904
stress-ng: info: [814485] miscellaneous metrics:
stress-ng: info: [814485] hdd 1788.38 MB/sec read rate (geometic mean of 1 instances)
stress-ng: info: [814485] hdd 2009.70 MB/sec write rate (geometic mean of 1 instances)
stress-ng: info: [814485] hdd 1893.48 MB/sec read/write combined rate (geometic mean of 1 instances)
stress-ng: info: [814485] successful run completed in 120.14s (2 mins, 0.14 secs)

海光7285

stress-ng: info:  [2005838] setting to a 120 second (2 mins, 0.00 secs) run per stressor
stress-ng: info: [2005838] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork
stress-ng: info: [2005838] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s CPU used per RSS Max
stress-ng: info: [2005838] (secs) (secs) (secs) (real time) (usr+sys time) instance (%) (KB)
stress-ng: info: [2005838] cpu 370238 120.00 479.22 0.00 3085.25 772.58 99.84 6008
stress-ng: info: [2005838] vm 5513614 120.00 237.47 2.11 45946.46 23013.67 99.82 149276
stress-ng: info: [2005838] hdd 2173494 120.05 86.50 32.82 18105.25 18215.65 99.39 2168
stress-ng: info: [2005838] fork 1593832 120.00 524.99 444.59 13281.92 1643.83 101.00 4332
stress-ng: info: [2005838] miscellaneous metrics:
stress-ng: info: [2005838] hdd 9165.57 MB/sec read rate (geometic mean of 1 instances)
stress-ng: info: [2005838] hdd 3352.49 MB/sec write rate (geometic mean of 1 instances)
stress-ng: info: [2005838] hdd 4897.99 MB/sec read/write combined rate (geometic mean of 1 instances)
stress-ng: info: [2005838] successful run completed in 120.10s (2 mins, 0.10 secs)

Golden 6150

stress-ng: info:  [76329] setting to a 120 second (2 mins, 0.00 secs) run per stressor
stress-ng: info: [76329] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork
stress-ng: info: [76329] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s CPU used per RSS Max
stress-ng: info: [76329] (secs) (secs) (secs) (real time) (usr+sys time) instance (%) (KB)
stress-ng: info: [76329] cpu 557584 120.00 479.66 0.34 4646.48 1161.64 100.00 3344
stress-ng: info: [76329] vm 3156543 120.02 229.66 10.38 26299.99 13149.95 100.00 148164
stress-ng: info: [76329] hdd 1828690 120.20 46.95 72.79 15213.18 15272.39 99.61 744
stress-ng: info: [76329] fork 551818 120.00 51.47 910.99 4598.47 573.34 100.26 964
stress-ng: info: [76329] miscellaneous metrics:
stress-ng: info: [76329] hdd 3928.41 MB/sec read rate (geometic mean of 1 instances)
stress-ng: info: [76329] hdd 1295.59 MB/sec write rate (geometic mean of 1 instances)
stress-ng: info: [76329] hdd 1945.16 MB/sec read/write combined rate (geometic mean of 1 instances)
stress-ng: info: [76329] successful run completed in 120.21s (2 mins, 0.21 secs)

Silver 4216

stress-ng: info:  [5609] setting to a 120 second (2 mins, 0.00 secs) run per stressor
stress-ng: info: [5609] dispatching hogs: 4 cpu, 2 vm, 1 hdd, 8 fork
stress-ng: info: [5609] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s CPU used per RSS Max
stress-ng: info: [5609] (secs) (secs) (secs) (real time) (usr+sys time) instance (%) (KB)
stress-ng: info: [5609] cpu 445180 120.00 479.96 0.01 3709.81 927.51 99.99 6092
stress-ng: info: [5609] vm 2430504 120.01 237.08 2.92 20253.01 10126.97 100.00 149300
stress-ng: info: [5609] hdd 1322664 120.90 42.32 44.13 10939.86 15300.42 71.50 2228
stress-ng: info: [5609] fork 1788238 120.00 572.10 357.04 14901.97 1924.63 96.78 2240
stress-ng: info: [5609] miscellaneous metrics:
stress-ng: info: [5609] hdd 6977.70 MB/sec read rate (geometic mean of 1 instances)
stress-ng: info: [5609] hdd 1507.84 MB/sec write rate (geometic mean of 1 instances)
stress-ng: info: [5609] hdd 2465.46 MB/sec read/write combined rate (geometic mean of 1 instances)
stress-ng: info: [5609] successful run completed in 120.90s (2 mins, 0.90 secs)

Stress-ng 的简单学习的更多相关文章

  1. OI数学 简单学习笔记

    基本上只是整理了一下框架,具体的学习给出了个人认为比较好的博客的链接. PART1 数论部分 最大公约数 对于正整数x,y,最大的能同时整除它们的数称为最大公约数 常用的:\(lcm(x,y)=xy\ ...

  2. 百度首席科学家 Andrew Ng谈深度学习的挑战和未来(转载)

    转载:http://www.csdn.net/article/2014-07-10/2820600 人工智能被认为是下一个互联网大事件,当下,谷歌.微软.百度等知名的高科技公司争相投入资源,占领深度学 ...

  3. Log4j简单学习笔记

    log4j结构图: 结构图展现出了log4j的主结构.logger:表示记录器,即数据来源:appender:输出源,即输出方式(如:控制台.文件...)layout:输出布局 Logger机滤器:常 ...

  4. shiro简单学习的简单总结

    权限和我有很大渊源. 培训时候的最后一个项目是OA,权限那块却不知如何入手,最后以不是我写的那个模块应付面试. 最开始的是使用session装载用户登录信息,使用简单权限拦截器做到权限控制,利用资源文 ...

  5. CentOS 简单学习 firewalld的使用

    1. centos7 开始 使用firewalld 代替了 iptables 命令工具为 firewall-cmd 帮助信息非常长,简单放到文末 2. 简单使用 首先开启 httpd 一般都自带安装了 ...

  6. Windows 下 Docker 的简单学习使用过程之一 dockertoolbox

    1. Windows 下面运行 Docker 的两个主要工具1): Docker for Windows2): DockerToolbox区别:Docker For Windows 可以理解为是新一代 ...

  7. 在MVC中实现和网站不同服务器的批量文件下载以及NPOI下载数据到Excel的简单学习

    嘿嘿,我来啦,最近忙啦几天,使用MVC把应该实现的一些功能实现了,说起来做项目,实属感觉蛮好的,即可以学习新的东西,又可以增加自己之前知道的知识的巩固,不得不说是双丰收啊,其实这周来就开始面对下载在挣 ...

  8. Linux——帮助命令简单学习笔记

    Linux帮助命令简单学习笔记: 一: 命令名称:man 命令英文原意:manual 命令所在路径:/usr/bin/man 执行权限:所有用户 语法:man [命令或配置文件] 功能描述:获得帮助信 ...

  9. mongodb,redis简单学习

     2.mongodb安装配置简单学习                   配置好数据库路径就可以mongo命令执行交互操作了:先将服务器开起来:在开个cmd执行交互操作                 ...

  10. html css的简单学习(三)

    html css的简单学习(三) 前端开发工具:Dreamweaver.Hbuilder.WebStorm.Sublime.PhpStorm...=========================== ...

随机推荐

  1. 可以一学的代码优化小技巧:减少if-else冗余

    摘要:if-else 语句对于程序员来说,是非常非常熟悉的一个判断语句,我们在日常开发和学习中都经常看见它. 本文分享自华为云社区<JavaScript代码之美-代码优化,减少if-else冗余 ...

  2. 云小课|云小课带你玩转可视化分析ELB日志

    阅识风云是华为云信息大咖,擅长将复杂信息多元化呈现,其出品的一张图(云图说).深入浅出的博文(云小课)或短视频(云视厅)总有一款能让您快速上手华为云.更多精彩内容请单击此处. 云日志服务支持可视化查看 ...

  3. 混合编程:如何用pybind11调用C++

    摘要:在实际开发过程中,免不了涉及到混合编程,比如,对于python这种脚本语言,性能还是有限的,在一些对性能要求高的情景下面,还是需要使用c/c++来完成. 本文分享自华为云社区<混合编程:如 ...

  4. 面试官问:mysql中时间日期类型和字符串类型的选择

    摘要:MySQL中有多种表示时间日期的数据类型,主要有YEAR.TIME.DATE.DATETIME.TIMESTAMP等 本文分享自华为云社区<一针见血,mysql中时间日期类型和字符串类型的 ...

  5. 快来一起玩转LiteOS组件:RHas

    摘要:RHash是一个C语言编写的哈希函数库,用于计算和验证磁力链接和各种消息摘要的控制台实用程序. 本文分享自华为云社区<LiteOS组件尝鲜-玩转RHas>,作者:Lionlace . ...

  6. 大端、小端,& 与、 | 或、 ~ 反、 << 左移 >> 右移

    小端存储:较低的有效字节存放在较低的存储器地址,较高的字节存放在较高的存储器地址: 大端存储:较低的有效字节存放在较高的存储器地址,较高的字节存放在较低的存储器地址. & 计算操作数的逻辑按位 ...

  7. 互联网公司Python高性能编程

    虽然Python一直被吐槽执行速度慢,但是架不住简洁的语法和丰富的第三方库使其能够节省开发时间.众所周知在互联网公司中要求频繁的迭代.快速的上线,而Python的优点就特别适合这种需求,所以Pytho ...

  8. Android Viewpager 滑动冲突解决

    这篇博客主要讲解一下几个问题 粗略地介绍一下View的事件分发机制 解决事件滑动冲突的思路及方法 ScrollView 里面嵌套ViewPager导致的滑动冲突 ViewPager里面嵌套ViewPa ...

  9. 01-什么是 Java:Java 初学者指南

    什么是Java? Java 是一种用于互联网分布式环境的面向对象编程语言.它是一种高级语言,也易于阅读和理解.有了它,开发人员可以"编写一次,随处运行"(WORA),这意味着编译后 ...

  10. 【JAVA基础】时间处理

    #时间处理 ##查询前台报表运单数据集 @ApiOperation(value = "查询前台报表运单数据集") @Permission(permissionPublic = tr ...