phoronix-test-suit安装与测试

介绍

phoronix-test-suite是Linux下的一款性能测试软件,其实就是一款集中测试软件,该软件集成了各式各样的测试软件,但是每个测试项都要联网下载。整个的流程就是,联网下载各种测试项,测试套件,并在本机环境下编译安装,这样就能够达到跨平台的效果,比如你可以测试arm架构的cpu和x86架构的cpu.当然不仅仅测试cpu,gpu等性能,你还能够测试服务器,数据库等。

# deb cdrom:[Ubuntu 16.04.6 LTS _Xenial Xerus_ - Release i386 (20190227.1)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial universe
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

一、安装

sudo apt install phoronix-test-suit

二、测试

  • 运行一个小的测试集合
phoronix-test-suite benchmark smallpt

单位:Seconds (数值越小越好)
在这里插入图片描述

  • 内存测试
    测试套件:pts/ramspee
    phoronix-test-suite benchmark ramspeed

在这里插入图片描述
磁盘测试
测试套件:pts/tiobench
phoronix-test-suite benchmark tiobench

测试文件IO性能
phoronix-test-suite benchmark fio

三、命令

列出所有的命令选项
phoronix-test-suite

  • 查看所有支持的测试项
    phoronix-test-suite list-available-tests
  • 查看所有支持的测试套件
    phoronix-test-suite list-available-suite
  • 查看所有保存的测试结果
    phoronix-test-suite list-save-results
  • 查看所有已安装的测试
    phoronix-test-suite list-install-tests
    常用命令:
    $phoronix-test-suite list-available-tests 查看所有支持的测试项
    $phoronix-test-suite list-available-suite 查看所有支持的测试套件
    $phoronix-test-suite list-save-results 查看所有保存的测试结果
    $phoronix-test-suite lis-install-tests 查看所有已安装的测试
    $phoronix-test-suite show-result result-file查看测试结果
    $phoronix-test-suite result-file-to-pdf result-file 将结果文件转化为pdf格式
    $phoronix-test-suite result-file-to-json result-file 将结果文件转化为json格式
    $phoronix-test-suite result-file-to-text result-file 将结果文件转化为text格式 $phoronix-test-suite run pts/cpu 运行pts/cpu测试套件

安装测试套件

phoronix-test-suite install pts/cpu
安装pts/cpu的套件(pts/cpu这项可以从list-available-suite获得测试套件的名称)
注意1:安装会有部分失败,查看了下,失败的主要原因是因为部分下载链接失效或是下载链接打开失败,
解决办法:我们可以通过浏览器访问下载链接去下载内容并把下载包放到~/.phoronix-test-suite目录下的install-tests目录对应的包目录下,再次执行$phoronix-test-suite install pts/cpu你会发现之前就不会从网络上下载了,而是安装当前的包。
注意2:可能有部分下载完安装时提示:cannot guess build type, you must specify one, 如果出现这样的提示,我们可以找到对应项安装的脚本文件,在~/.phoronix-test-suite/test/profile/xxxx.1.1.1目录下(xxxx是安装项名),有个install.sh脚本文件,在文件中
的./configturn 后加上 --build=arm-linux(如果你是arm架构的就加arm-linux, 如果是x86架构的就只加linux)
4 运行测试项
phoronix-test-suite run pts/cpu 运行pts/cpu测试套件 (pts/cpu从list-available-suites查看名称)
测试之前会提示你输入这次测试的名称和描述等,输入完成就开始测试,我测试pts/cpu跑了2个多小时才跑完,所以需要耐心的等待下,测试完成之后,又会提示是否需要把这次测试结果上传到openBenchConfig.orgopenbenchmarking.org平台上。

5 查看测试结果
第一种
phoronix-test-suite show-result nvidia-x2 查看测试结果(nvidia-x2是我之前运行的结果, 运行后会弹出网页显示测试结果)
当然还有更多对测试结果的操作,比如结果转化为pdf文档,删除结果,重命名,合并等,具体的命令运行$phoronix-test-suite后看RESULT MANAGEMENT下的命令选项
第二种
如果你在测试完成后上传到了openbenchmarking.org平台上,你可以进入www.openbenchmarking.org/results/latest 查看该网站最近上传的测试结果,可以看到许多人上传的的测试结果,可以把结果导出为xml, pdf等文件,还可以选择两个文件进行对比查看。

安装9.8

安装php

sudo apt-get install php*
sudo dpkg -i

其它

sudo apt-get -f install

常用命令

phoronix-test-suite benchmark smallpt
phoronix-test-suite run iozone

  • 内存测试
    测试套件:pts/ramspee
    phoronix-test-suite benchmark ramspeed

磁盘测试
测试套件:pts/tiobench
phoronix-test-suite benchmark tiobench

测试文件IO性能
phoronix-test-suite benchmark fio

  • 4
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值