鲲鹏服务器phoronix-test-suite移植和使用

网友投稿 1674 2022-05-29

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。

本人已在鲲鹏云服务器上验证过下述软件,其他软件暂未进行测试,请根据实际需要选择软件进行测试。

鲲鹏服务器上phoronix-test-suite移植和使用

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、主板、内存、硬盘、操作系统、显卡、网络、文件系统、编译器等系统信息。

鲲鹏 Redis

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:在云服务器(Ubuntu)下安装MQTT服务器以及设置连接权限
下一篇:【奖励公示】【内容共创】第15期 春暖花开,等你而来!签约华为云小编,还可赢高达500元礼包!
相关文章