ちゃんと覚えておけよ?

忘れちゃいけない事のメモ、覚え書き

KAGOYA Cloud VPS 2コア 2GB のUnixBenchを取ってみた。

BYTE UNIX Benchmarks (Version 5.1.3)

System: *******: GNU/Linux
OS: GNU/Linux — 5.15.0-41-generic — #44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
CPU 0: Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz (4389.7 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 1: Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz (4389.7 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
13:21:53 up 2:38, 1 user, load average: 0.03, 2.11, 2.80; runlevel 2022-09-05

————————————————————————
Benchmark Run: Mon Sep 05 2022 13:21:53 – 13:49:57
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables 32917827.7 lps (10.0 s, 7 samples)
Double-Precision Whetstone 5763.6 MWIPS (9.8 s, 7 samples)
Execl Throughput 2523.5 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 496468.7 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 131448.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1210782.5 KBps (30.0 s, 2 samples)
Pipe Throughput 630591.5 lps (10.0 s, 7 samples)
Pipe-based Context Switching 74673.7 lps (10.0 s, 7 samples)
Process Creation 5106.5 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 7654.7 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1464.0 lpm (60.0 s, 2 samples)
System Call Overhead 361653.5 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 32917827.7 2820.7
Double-Precision Whetstone 55.0 5763.6 1047.9
Execl Throughput 43.0 2523.5 586.9
File Copy 1024 bufsize 2000 maxblocks 3960.0 496468.7 1253.7
File Copy 256 bufsize 500 maxblocks 1655.0 131448.0 794.2
File Copy 4096 bufsize 8000 maxblocks 5800.0 1210782.5 2087.6
Pipe Throughput 12440.0 630591.5 506.9
Pipe-based Context Switching 4000.0 74673.7 186.7
Process Creation 126.0 5106.5 405.3
Shell Scripts (1 concurrent) 42.4 7654.7 1805.4
Shell Scripts (8 concurrent) 6.0 1464.0 2439.9
System Call Overhead 15000.0 361653.5 241.1
========
System Benchmarks Index Score 852.3

————————————————————————
Benchmark Run: Mon Sep 05 2022 13:49:57 – 14:18:02
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables 65969771.2 lps (10.0 s, 7 samples)
Double-Precision Whetstone 11480.1 MWIPS (9.8 s, 7 samples)
Execl Throughput 4540.2 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 863477.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 221416.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2300617.9 KBps (30.0 s, 2 samples)
Pipe Throughput 1252384.1 lps (10.0 s, 7 samples)
Pipe-based Context Switching 247162.6 lps (10.0 s, 7 samples)
Process Creation 12252.4 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 10891.0 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1475.8 lpm (60.0 s, 2 samples)
System Call Overhead 690205.9 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 65969771.2 5652.9
Double-Precision Whetstone 55.0 11480.1 2087.3
Execl Throughput 43.0 4540.2 1055.8
File Copy 1024 bufsize 2000 maxblocks 3960.0 863477.1 2180.5
File Copy 256 bufsize 500 maxblocks 1655.0 221416.0 1337.9
File Copy 4096 bufsize 8000 maxblocks 5800.0 2300617.9 3966.6
Pipe Throughput 12440.0 1252384.1 1006.7
Pipe-based Context Switching 4000.0 247162.6 617.9
Process Creation 126.0 12252.4 972.4
Shell Scripts (1 concurrent) 42.4 10891.0 2568.6
Shell Scripts (8 concurrent) 6.0 1475.8 2459.7
System Call Overhead 15000.0 690205.9 460.1
========
System Benchmarks Index Score 1586.1

hdparmによるディスク読み込み速度のベンチマーク

hdparm -t /dev/vda1

■1回目
Timing buffered disk reads: 2852 MB in 3.00 seconds = 950.30 MB/sec

■2回目
Timing buffered disk reads: 2282 MB in 3.00 seconds = 760.18 MB/sec

■3回目
Timing buffered disk reads: 3106 MB in 3.00 seconds = 1035.12 MB/sec

■4回目
Timing buffered disk reads: 1874 MB in 3.00 seconds = 624.56 MB/sec



conoha VPS ubuntu 22.04にnginx 1.22、php7.4,mariadb 10.6をインストールし、WordPress設置

Nginx1.22 をインストール

※22.04の標準はNginx 1.8

apt update
apt upgrade

nginx を入れるための必要なものを先にインストール

# apt install -y curl gnupg2 ca-certificates lsb-release ubuntu-keyring

nginxの署名をインポート

# curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null

署名が正しいものか検証

# gpg --dry-run --quiet --import --import-options import-show /usr/share/keyrings/nginx-archive-keyring.gpg

conoha VPS 2コア 1GBのunixbenchを取ってみた

BYTE UNIX Benchmarks (Version 5.1.3)

System: ***************: GNU/Linux
OS: GNU/Linux — 5.15.0-25-generic — #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
CPU 0: Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz (5200.0 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 1: Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz (5200.0 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
13:15:00 up 1:47, 2 users, load average: 0.46, 0.16, 0.05; runlevel 2022-08-25

conoha VPS 6コア 8GBのunixbenchを取ってみた

BYTE UNIX Benchmarks (Version 5.1.3)

System: ******: GNU/Linux
OS: GNU/Linux — 5.15.0-46-generic — #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
CPU 0: Intel(R) Xeon(R) Gold 6230 CPU @ 2.10GHz (4190.1 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 1: Intel(R) Xeon(R) Gold 6230 CPU @ 2.10GHz (4190.1 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 2: Intel(R) Xeon(R) Gold 6230 CPU @ 2.10GHz (4190.1 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 3: Intel(R) Xeon(R) Gold 6230 CPU @ 2.10GHz (4190.1 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 4: Intel(R) Xeon(R) Gold 6230 CPU @ 2.10GHz (4190.1 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 5: Intel(R) Xeon(R) Gold 6230 CPU @ 2.10GHz (4190.1 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
13:20:18 up 3:36, 2 users, load average: 0.00, 0.00, 0.00; runlevel 2022-09-07

————————————————————————
Benchmark Run: Wed Sep 07 2022 13:20:18 – 13:48:22
6 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables 34555164.9 lps (10.0 s, 7 samples)
Double-Precision Whetstone 5957.8 MWIPS (9.9 s, 7 samples)
Execl Throughput 2433.7 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 440057.0 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 116359.8 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1304827.3 KBps (30.0 s, 2 samples)
Pipe Throughput 537713.2 lps (10.0 s, 7 samples)
Pipe-based Context Switching 65689.5 lps (10.0 s, 7 samples)
Process Creation 4333.4 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 5046.5 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 3019.8 lpm (60.0 s, 2 samples)
System Call Overhead 261213.6 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 34555164.9 2961.0
Double-Precision Whetstone 55.0 5957.8 1083.2
Execl Throughput 43.0 2433.7 566.0
File Copy 1024 bufsize 2000 maxblocks 3960.0 440057.0 1111.3
File Copy 256 bufsize 500 maxblocks 1655.0 116359.8 703.1
File Copy 4096 bufsize 8000 maxblocks 5800.0 1304827.3 2249.7
Pipe Throughput 12440.0 537713.2 432.2
Pipe-based Context Switching 4000.0 65689.5 164.2
Process Creation 126.0 4333.4 343.9
Shell Scripts (1 concurrent) 42.4 5046.5 1190.2
Shell Scripts (8 concurrent) 6.0 3019.8 5033.0
System Call Overhead 15000.0 261213.6 174.1
========
System Benchmarks Index Score 811.3

————————————————————————
Benchmark Run: Wed Sep 07 2022 13:48:22 – 14:16:27
6 CPUs in system; running 6 parallel copies of tests

Dhrystone 2 using register variables 205534931.3 lps (10.0 s, 7 samples)
Double-Precision Whetstone 35494.7 MWIPS (9.9 s, 7 samples)
Execl Throughput 12126.3 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1271295.4 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 359476.4 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 3323207.7 KBps (30.0 s, 2 samples)
Pipe Throughput 3172519.4 lps (10.0 s, 7 samples)
Pipe-based Context Switching 496441.9 lps (10.0 s, 7 samples)
Process Creation 30275.1 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 29884.2 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 4210.5 lpm (60.0 s, 2 samples)
System Call Overhead 1461403.6 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 205534931.3 17612.2
Double-Precision Whetstone 55.0 35494.7 6453.6
Execl Throughput 43.0 12126.3 2820.1
File Copy 1024 bufsize 2000 maxblocks 3960.0 1271295.4 3210.3
File Copy 256 bufsize 500 maxblocks 1655.0 359476.4 2172.1
File Copy 4096 bufsize 8000 maxblocks 5800.0 3323207.7 5729.7
Pipe Throughput 12440.0 3172519.4 2550.3
Pipe-based Context Switching 4000.0 496441.9 1241.1
Process Creation 126.0 30275.1 2402.8
Shell Scripts (1 concurrent) 42.4 29884.2 7048.2
Shell Scripts (8 concurrent) 6.0 4210.5 7017.4
System Call Overhead 15000.0 1461403.6 974.3
========
System Benchmarks Index Score 3597.1

HDD読み込み速度

# hdparm -t /dev/vda2

Timing buffered disk reads: 3062 MB in 3.00 seconds = 1020.07 MB/sec

UnixBenchのインストール

CentOS版

■動作に必要なものを先にインストール

# yum install perl perl-Time-HiRes make gcc git

■githubからダウンロード

# git clone https://github.com/kdlucas/byte-unixbench

■UnixBenchに移動

# cd byte-unixbench/UnixBench

■実行

# ./Run

Ubuntu版

■動作に必要なものを先にインストール

# apt update && install git build-essential -y

■githubからダウンロード

# git clone https://github.com/kdlucas/byte-unixbench

■UnixBenchに移動

# cd byte-unixbench/UnixBench

■構築

make

■実行

# ./Run

計測時間は30分くらい
その間は放置

phpモジュールopcache,imagick,zip,intl、memcachedをyumインストール

必要なモジュールをインストールしていく

■imagick
yum --enablerepo=epel,remi-php73 install php-imagick

■OPCACHE
yum --enablerepo=epel,remi-php73 install php-opcache

■intl
yum --enablerepo=epel,remi-php73 install php-intl

■zip
yum --enablerepo=epel,remi-php73 install php-zip

■memcached
yum --enablerepo=epel,remi-php73 install php-memcached

/usr/lib64/php/modules
に◯◯.soファイルが出来ればあとは、nginxを再起動して有効化