鲲鹏服务器上phoronix-test-suite移植和使用
【摘要】 Phoronix Test Suite是一款性能测试软件,其实就是一款集中测试软件,可以在Linux, Solaris, OS X, 和 BSD操作系统上进行benchmark测试。该软件集成了各式各样的测试软件,但是每个测试项都要联网下载。默认自带60多个测试套件和200多个独立的测试profile。每个profile都可以在phoronix-test-suite中单独进行测试。测试套件则...
Phoronix Test Suite是一款性能测试软件,其实就是一款集中测试软件,可以在Linux, Solaris, OS X, 和 BSD操作系统上进行benchmark测试。该软件集成了各式各样的测试软件,但是每个测试项都要联网下载。默认自带60多个测试套件和200多个独立的测试profile。每个profile都可以在phoronix-test-suite中单独进行测试。测试套件则由一组测试profile组成。一个profile由Bash/shell脚本和xml文件组成。
1 安装准备
华为云购买一台鲲鹏服务器
本文以云服务器KC1实例搭建,云服务器配置如表1-1所示。
表1-1 云服务器配置
项目 |
说明 |
规格 |
kc1.large.2 | 2vCPUs | 4GB |
磁盘 |
系统盘:高IO(40GB) |
表1-2 Ubuntu操作系统要求
项目 |
说明 |
下载地址 |
Ubuntu |
18.04 |
在公共镜像中已提供。 |
Kernel |
4.15.0 |
在公共镜像中已提供。 |
2 配置编译环境
安装依赖。
apt-get install php-cli php-xml -y
3 获取源码
cd /usr/local/src
wget https://github.com/phoronix-test-suite/phoronix-test-suite/archive/v9.8.0.tar.gz -O phoronix-test-suite-9.8.0.tar.gz
4 编译和安装
tar -zxvf phoronix-test-suite-9.8.0.tar.gz
cd phoronix-test-suite-9.8.0
./install-sh
5 运行和验证
1) 常用命令验证。
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 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测试套件
2) 测试redis。
本人已在鲲鹏云服务器上验证过下述软件,其他软件暂未进行测试,请根据实际需要选择软件进行测试。
l pts/git
l pts/openssl
l pts/redis
l pts/iozone
l pts/sysbench
l pts/leveldb
l pts/php
本例以“pts/redis-1.2.0”为例进行说明。
phoronix-test-suite benchmark pts/redis-1.2.0
如下显示测试步骤:
...
Redis 5.0.5
pts/redis-1.2.0
System Test Configuration
1: SET
2: GET
3: LPUSH
4: LPOP
5: SADD
6: Test All Options
** Multiple items can be selected, delimit by a comma. **
Test: 1 #选择测试的项
...
Would you like to save these test results (Y/n):Y //是否保存测试结果
Enter a name for the result file: redis-result //输入结果文件的名称
Enter a unique name to describe this test run / configuration: redis-config //输入唯一名称来描述此测试运行/配置
If desired, enter a new description below to better describe this result set / system configuration under test.Press ENTER to proceed without changes.
Current Description: VMware testing on CentOS Linux 7 via the Phoronix Test Suite.
New Description: //描述信息,可以不填,直接回车
...
Do you want to view the text results of the testing (Y/n):n //是否浏览测试结果
Would you like to upload the results to OpenBenchmarking.org (y/n):y /可以选择是否上传到官网,这样可以和其他测试人员数据进行对比
Would you like to attach the system logs (lspci, dmesg, lsusb, etc) to the test result (Y/n):y
Results Uploaded To: http://openbenchmarking.org/result/[testid]
本地的测试结果保存在 /var/lib/phoronix-test-suite/test-results/redis-result文件夹中。是否上传在测试结束时候可以进行人工选择。如果上传了,可以通过登陆http://openbenchmarking.org/result/[testid]本次测试结果中显示了CPU、主板、内存、硬盘、操作系统、显卡、网络、文件系统、编译器等系统信息。
【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
作者其他文章
评论(0)