centos 上安装phoronix-test-suite

1009  yum install php-cli php-xml -y
 1010  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
 1011  tar -zxvf phoronix-test-suite-9.8.0.tar.gz
 1012  cd phoronix-test-suite-9.8.0
 1013  ./install-sh
 1014  phoronix-test-suite list-available-tests
 1018  yum install php-json.aarch64
 1019  phoronix-test-suite list-available-tests

出现这个错误的话,需要安装php-json.aarch64
[root@localhost phoronix-test-suite-9.8.0]# phoronix-test-suite list-available-tests

The following PHP extensions are REQUIRED:

JSON      JSON support is required for OpenBenchmarking.org.

The following PHP extensions are OPTIONAL but recommended:

GD        The GD library is recommended for improved graph rendering.
SQLite3   SQLite3 is required when running a Phoromatic server.
POSIX     POSIX support is highly recommended.

[root@localhost phoronix-test-suite-9.8.0]# phoronix-test-suite list-available-tests | wc -l
329
phoronix-test-suite 总共有329个测试项
[root@localhost phoronix-test-suite-9.8.0]# phoronix-test-suite list-available-tests



Phoronix Test Suite v9.8.0
Available Tests

pts/ai-benchmark               - AI Benchmark Alpha                      System
pts/aircrack-ng                - Aircrack-ng                             Processor
pts/amg                        - Algebraic Multi-Grid Benchmark          Processor
pts/aobench                    - AOBench                                 Processor
pts/aom-av1                    - AOM AV1                                 Processor
pts/apache                     - Apache Benchmark                        System
              

这里举个测试pts/startup-time的例子,可以看到会自动下载安装依赖包,具体的测试benchmark的源码是
放在/var/lib/phoronix-test-suite/installed-tests/pts 目录中的.
/var/lib/phoronix-test-suite/installed-tests/pts/startup-time-1.4.1/S-34.zip


[root@localhost phoronix-test-suite-9.8.0]# phoronix-test-suite benchmark pts/startup-time


    Evaluating External Test Dependencies ...........................................................................................................................
    Evaluating System Dependencies ..................................................................................................................................

The following dependencies are needed and will be installed:

- libaio-devel
- fio

This process may take several minutes.
Last metadata expiration check: 0:37:10 ago on Mon Dec  7 02:01:21 2020.
Dependencies resolved.
================================================================================
 Package             Architecture   Version              Repository        Size
================================================================================
Installing:
 fio                 aarch64        3.7-3.el8            AppStream        478 k
 libaio-devel        aarch64        0.3.112-1.el8        BaseOS            19 k

Transaction Summary
================================================================================
Install  2 Packages

Total download size: 497 k
Installed size: 2.0 M
Downloading Packages:
(1/2): libaio-devel-0.3.112-1.el8.aarch64.rpm    32 kB/s |  19 kB     00:00
(2/2): fio-3.7-3.el8.aarch64.rpm                380 kB/s | 478 kB     00:01
--------------------------------------------------------------------------------
Total                                           141 kB/s | 497 kB     00:03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Installing       : libaio-devel-0.3.112-1.el8.aarch64                     1/2
  Installing       : fio-3.7-3.el8.aarch64                                  2/2
  Running scriptlet: fio-3.7-3.el8.aarch64                                  2/2
  Verifying        : fio-3.7-3.el8.aarch64                                  1/2
  Verifying        : libaio-devel-0.3.112-1.el8.aarch64                     2/2

Installed:
  fio-3.7-3.el8.aarch64            libaio-devel-0.3.112-1.el8.aarch64

Complete!

Phoronix Test Suite v9.8.0

    To Install:    pts/startup-time-1.4.1

    Determining File Requirements ...................................................................................................................................
    Searching Download Caches .......................................................................................................................................

    1 Test To Install
        1 File To Download [23.57MB]
        4MB Of Disk Space Is Needed
        1 Second Estimated Install Time

    pts/startup-time-1.4.1:
        Test Installation 1 of 1
        1 File Needed [23.57 MB]
        Downloading: S-34.zip                                                                                                                               [23.57MB]
        Downloading


.................................................................................................................................................
        Approximate Install Size: 4 MB
        Installing Test @ 02:39:27



Application Start-up Time 3.4.0:
    pts/startup-time-1.4.1
    Disk Test Configuration
        1: Only Sequential Reads
        2: Sequential Reads + Writes
        3: Test All Options
        ** Multiple items can be selected, delimit by a comma. **
        Background I/O Mix:

        1: Only Sequential Reads
        2: Sequential Reads + Writes
        3: Test All Options
        ** Multiple items can be selected, delimit by a comma. **
        Background I/O Mix:

        1: Only Sequential Reads
        2: Sequential Reads + Writes
        3: Test All Options
        ** Multiple items can be selected, delimit by a comma. **
        Background I/O Mix:

        1: Only Sequential Reads
        2: Sequential Reads + Writes
        3: Test All Options
        ** Multiple items can be selected, delimit by a comma. **
        Background I/O Mix: 1


        1: GNOME Terminal
        2: xterm
        3: LibreOffice Writer
        4: Test All Options
        ** Multiple items can be selected, delimit by a comma. **
        Application To Start: 1


        1: Default Test Directory
        2: /home
        3: /
        4: Test All Options
        ** Multiple items can be selected, delimit by a comma. **
        Disk Target:
/var/lib/phoronix-test-suite/installed-tests/pts/startup-time-1.4.1/S-34.zip

猜你喜欢

转载自blog.csdn.net/tiantao2012/article/details/110820384