Linux

phoronix-test-suite 사용 방법

Naan 2023. 1. 8. 00:06
320x100

phoronix-test-suite 사용하기 위해서는 우선 설치를 해야 한다.

epel 설치

# yum install epel*
Last metadata expiration check: 0:16:49 ago on Mon 02 Jan 2023 02:32:38 PM KST.
Dependencies resolved.
==========================================================================================================================================================================================
 Package                                             Architecture                             Version                                      Repository                                Size
==========================================================================================================================================================================================
Installing:
 epel-next-release                                   noarch                                   8-11.el8                                     extras                                    11 k
 epel-release                                        noarch                                   8-11.el8                                     extras                                    24 k

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

Total download size: 35 k
Installed size: 38 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): epel-release-8-11.el8.noarch.rpm                                                                                                                    70 kB/s |  24 kB     00:00
(2/2): epel-next-release-8-11.el8.noarch.rpm                                                                                                               20 kB/s |  11 kB     00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                      65 kB/s |  35 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                  1/1
  Installing       : epel-release-8-11.el8.noarch                                                                                                                                     1/2
  Installing       : epel-next-release-8-11.el8.noarch                                                                                                                                2/2
  Running scriptlet: epel-next-release-8-11.el8.noarch                                                                                                                                2/2
  Verifying        : epel-next-release-8-11.el8.noarch                                                                                                                                1/2
  Verifying        : epel-release-8-11.el8.noarch                                                                                                                                     2/2
Installed products updated.

Installed:
  epel-next-release-8-11.el8.noarch                                                              epel-release-8-11.el8.noarch

Complete!

phoronix-test-suite benchmark 설치

# yum install phoronix-test-suite
Last metadata expiration check: 2:50:59 ago on Mon 02 Jan 2023 04:52:13 PM KST.
Dependencies resolved.
==============================================================================================================================================================================================================================================================================================
 Package                                                                Architecture                                              Version                                                                                  Repository                                                    Size
==============================================================================================================================================================================================================================================================================================
Installing:
 phoronix-test-suite                                                    noarch                                                    10.8.4-1.el8                                                                             epel                                                         4.0 M
Installing dependencies:
 php-cli                                                                x86_64                                                    7.2.24-1.module_el8.2.0+313+b04d0a66                                                     appstream                                                    3.1 M
 php-common                                                             x86_64                                                    7.2.24-1.module_el8.2.0+313+b04d0a66                                                     appstream                                                    661 k
 php-gd                                                                 x86_64                                                    7.2.24-1.module_el8.2.0+313+b04d0a66                                                     appstream                                                     84 k
 php-json                                                               x86_64                                                    7.2.24-1.module_el8.2.0+313+b04d0a66                                                     appstream                                                     73 k
 php-pdo                                                                x86_64                                                    7.2.24-1.module_el8.2.0+313+b04d0a66                                                     appstream                                                    122 k
 php-process                                                            x86_64                                                    7.2.24-1.module_el8.2.0+313+b04d0a66                                                     appstream                                                     84 k
 php-xml                                                                x86_64                                                    7.2.24-1.module_el8.2.0+313+b04d0a66                                                     appstream                                                    188 k
Enabling module streams:
 nginx                                                                                                                            1.14
 php                                                                                                                              7.2

Transaction Summary
==============================================================================================================================================================================================================================================================================================
Install  8 Packages

Total download size: 8.2 M
Installed size: 32 M
Is this ok [y/N]: y
Downloading Packages:
(1/8): php-gd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64.rpm                                                                                                                                                                                                 1.0 MB/s |  84 kB     00:00
(2/8): php-json-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64.rpm                                                                                                                                                                                               2.3 MB/s |  73 kB     00:00
(3/8): php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64.rpm                                                                                                                                                                                                 14 MB/s | 3.1 MB     00:00
(4/8): php-pdo-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64.rpm                                                                                                                                                                                                398 kB/s | 122 kB     00:00
(5/8): php-xml-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64.rpm                                                                                                                                                                                                5.7 MB/s | 188 kB     00:00
(6/8): php-process-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64.rpm                                                                                                                                                                                            101 kB/s |  84 kB     00:00
(7/8): php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64.rpm                                                                                                                                                                                             602 kB/s | 661 kB     00:01
(8/8): phoronix-test-suite-10.8.4-1.el8.noarch.rpm                                                                                                                                                                                                             49 kB/s | 4.0 MB     01:23
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                                          99 kB/s | 8.2 MB     01:24
warning: /var/cache/dnf/epel-6519ee669354a484/packages/phoronix-test-suite-10.8.4-1.el8.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                                                                                                1.6 MB/s | 1.6 kB     00:00
Importing GPG key 0x2F86D6A1:
 Userid     : "Fedora EPEL (8) <epel@fedoraproject.org>"
 Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                                      1/1
  Installing       : php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                               1/8
  Installing       : php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                                  2/8
  Installing       : php-gd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                                   3/8
  Installing       : php-json-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                                 4/8
  Installing       : php-pdo-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                                  5/8
  Installing       : php-process-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                              6/8
  Installing       : php-xml-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                                  7/8
  Installing       : phoronix-test-suite-10.8.4-1.el8.noarch                                                                                                                                                                                                                              8/8
  Running scriptlet: phoronix-test-suite-10.8.4-1.el8.noarch                                                                                                                                                                                                                              8/8
  Verifying        : php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                                  1/8
  Verifying        : php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                               2/8
  Verifying        : php-gd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                                   3/8
  Verifying        : php-json-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                                 4/8
  Verifying        : php-pdo-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                                  5/8
  Verifying        : php-process-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                              6/8
  Verifying        : php-xml-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64                                                                                                                                                                                                                  7/8
  Verifying        : phoronix-test-suite-10.8.4-1.el8.noarch                                                                                                                                                                                                                              8/8
Installed products updated.

Installed:
  phoronix-test-suite-10.8.4-1.el8.noarch                php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64        php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64    php-gd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64    php-json-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64
  php-pdo-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64    php-process-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64    php-xml-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64

Complete!

설치가 다 완료 되었으면

# phoronix-test-suite 실행 해보자.

명령어가 여러가지 나온다.

하고 싶은 벤치를 돌리면 된다.

테스트 예시..

# phoronix-test-suite benchmark fs-mark

필요한 패키지는 자동으로 다운 받아서 설치가 된다.

대충 위와 같이 명령어를 이용해서 테스트 진행 하면 된다.

테스트 하면 결과는 위와 같이 브라우저(firefox)로 나온다 

마지막으로 저장소는

/var/lib/phoronix-test-suite/test-results 에 있다.

320x100