run-host-benchmark オプションを用いて、ホスト性能の測定を行うことができます。
run-host-benchmark オプションは、全てのコマンドで指定可能です。
以下に、サーバ側 hcpdコマンドを用いてホスト性能の測定を行う例を示します。
$ hcpd --run-host-benchmark
Benchmarking the following targets ...
AES256/GCM
AES256/CTR
AES256/CTR/VMAC
AES256/CBC
AES256/CBC/HMAC[MD5]
AES256/CBC/HMAC[SHA1]
AES256/CBC/HMAC[SHA256]
AES256/CTR [4 parallels]
AES256/CTR [8 parallels]
AES256/CBC [4 parallels]
AES256/CBC [8 parallels]
XXH3
fwrite (free space more than 16GiB needed at /root)
fread (file more than 128MiB produced by fwrite needed)
memcpy
memcpy [4 parallels]
memcpy [8 parallels]
Running ... (this will take several minutes until finished)
AES256/GCM done.
AES256/CTR done.
AES256/CTR/VMAC done.
AES256/CBC done.
AES256/CBC/HMAC[MD5] done.
AES256/CBC/HMAC[SHA1] done.
AES256/CBC/HMAC[SHA256] done.
AES256/CTR [4 parallels] done.
AES256/CTR [8 parallels] done.
AES256/CBC [4 parallels] done.
AES256/CBC [8 parallels] done.
XXH3 done.
fwrite done.
fread done.
memcpy done.
memcpy [4 parallels] done.
memcpy [8 parallels] done.
Finished.
-- [Application] -----------------------------------------------------------
hcp server (hcpd) 1.5.3_22 / Linux (HpFP2 2.0.0.91_21 WSAPI 0.0.1.34 WS 4.2.0-2)
-- [Linked Libraries] ------------------------------------------------------
boost 1_79
cryptopp 870
xxhash 0.8.1
icu 67.1
zlib 1.2.11
OpenSSL 3.0.7 1 Nov 2022
-- [System Information] ----------------------------------------------------
CPU : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz, physical 8 / logical 8
AES : x86_64 AES-NI ON
RAM : 1995032 kB
Kernel : Linux 5.14.0-284.30.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Sep 12 09:28:32 EDT 2023
OS : AlmaLinux 9.2 (Turquoise Kodkod)
Host : localhost.localdomain
Network Interface (filter dmesg by 'eth') :
e1000 0000:02:01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:a9:13:82
e1000 0000:02:01.0 eth0: Intel(R) PRO/1000 Network Connection
e1000 0000:02:05.0 eth1: (PCI:66MHz:32-bit) 00:0c:29:a9:13:8c
e1000 0000:02:05.0 eth1: Intel(R) PRO/1000 Network Connection
e1000 0000:02:01.0 ens33: renamed from eth0
e1000 0000:02:05.0 ens37: renamed from eth1
File System (filter dmesg by 'mounted') :
-- [Performance Configuration] ---------------------------------------------
License limit : 1.00Tbps
SendRate : 100.00Gbps
RecvRate : 100.00Gbps
-- [Secure Communication Performance] --------------------------------------
AES256/GCM : 10.16Gbps
AES256/CTR : 12.05Gbps
AES256/CTR/VMAC : 12.05Gbps (AES256/CTR slower than VMAC[66.46Gbps])
AES256/CBC : 5.58Gbps
AES256/CBC/HMAC[MD5] : 5.58Gbps (AES256/CBC slower than MD5[5.99Gbps])
AES256/CBC/HMAC[SHA1] : 5.55Gbps
AES256/CBC/HMAC[SHA256] : 2.80Gbps
AES256/CTR [4 parallels] : 42.68Gbps
AES256/CTR [8 parallels] : 56.37Gbps
AES256/CBC [4 parallels] : 21.05Gbps
AES256/CBC [8 parallels] : 35.19Gbps
-- [File Integrity Validation Performance] ---------------------------------
XXH3 : 178.96Gbps
-- [Base Performance] ------------------------------------------------------
fwrite : 8.34Gbps (free space 35.33GiB at /root)
fread : 12.08Gbps (file size 4.00GiB)
memcpy : 250.58Gbps
memcpy [4 parallels] : 181.52Gbps
memcpy [8 parallels] : 181.06Gbps
----------------------------------------------------------------------------
$
通信性能は、[Base Performance] – memcpyを参考にしてください。
暗号通信性能は、 [Secure Communication Performance]を参考にしてください。
多重化する場合は、”4 parallels”の様に記載されている並列計測の結果をを参考にしてください。
ディスク書き込み性能は、[Base Performance] – fwrite,fread を参考にしてください。
ディスクの性能はキャッシュの影響を受けて一定量書込み後に性能が低下することがあり、この特性が反映されない結果が表示される場合があります。
ファイル検査性能は、[File Integrity Validation Performance] を参考にしてください。
また、–run-host-benchmarkを2回指定することで、次の条件を拡張して測定が行われます。
・ブロックサイズ
デフォルトの1MB以外での測定を追加
64KB, 2MB, 4MB, 8MB, 16MB
・並列数
16並列での測定を追加
$ hcpd --run-host-benchmark --run-host-benchmark
Benchmarking the following targets ...
AES256/GCM
AES256/CTR
AES256/CTR/VMAC
AES256/CBC
AES256/CBC/HMAC[MD5]
AES256/CBC/HMAC[SHA1]
AES256/CBC/HMAC[SHA256]
AES256/CTR [4 parallels]
AES256/CTR [8 parallels]
AES256/CTR [16 parallels]
AES256/CBC [4 parallels]
AES256/CBC [8 parallels]
AES256/CBC [16 parallels]
AES256/GCM [64KB data size]
AES256/GCM [2MB data size]
AES256/GCM [4MB data size]
AES256/GCM [8MB data size]
AES256/GCM [16MB data size]
AES256/CTR [64KB data size]
AES256/CTR [64KB data size, 4 parallels]
AES256/CTR [64KB data size, 8 parallels]
AES256/CTR [64KB data size, 16 parallels]
AES256/CTR [2MB data size]
AES256/CTR [2MB data size, 4 parallels]
AES256/CTR [2MB data size, 8 parallels]
AES256/CTR [2MB data size, 16 parallels]
AES256/CTR [4MB data size]
AES256/CTR [4MB data size, 4 parallels]
AES256/CTR [4MB data size, 8 parallels]
AES256/CTR [4MB data size, 16 parallels]
AES256/CTR [8MB data size]
AES256/CTR [8MB data size, 4 parallels]
AES256/CTR [8MB data size, 8 parallels]
AES256/CTR [8MB data size, 16 parallels]
AES256/CTR [16MB data size]
AES256/CTR [16MB data size, 4 parallels]
AES256/CTR [16MB data size, 8 parallels]
AES256/CTR [16MB data size, 16 parallels]
AES256/CBC [64KB data size]
AES256/CBC [64KB data size, 4 parallels]
AES256/CBC [64KB data size, 8 parallels]
AES256/CBC [64KB data size, 16 parallels]
AES256/CBC [2MB data size]
AES256/CBC [2MB data size, 4 parallels]
AES256/CBC [2MB data size, 8 parallels]
AES256/CBC [2MB data size, 16 parallels]
AES256/CBC [4MB data size]
AES256/CBC [4MB data size, 4 parallels]
AES256/CBC [4MB data size, 8 parallels]
AES256/CBC [4MB data size, 16 parallels]
AES256/CBC [8MB data size]
AES256/CBC [8MB data size, 4 parallels]
AES256/CBC [8MB data size, 8 parallels]
AES256/CBC [8MB data size, 16 parallels]
AES256/CBC [16MB data size]
AES256/CBC [16MB data size, 4 parallels]
AES256/CBC [16MB data size, 8 parallels]
AES256/CBC [16MB data size, 16 parallels]
XXH3
fwrite (free space more than 16GiB needed at /root)
fread (file more than 128MiB produced by fwrite needed)
memcpy
memcpy [4 parallels]
memcpy [8 parallels]
memcpy [16 parallels]
Running ... (this will take a long time until finished)
AES256/GCM done.
AES256/CTR done.
AES256/CTR/VMAC done.
AES256/CBC done.
AES256/CBC/HMAC[MD5] done.
AES256/CBC/HMAC[SHA1] done.
AES256/CBC/HMAC[SHA256] done.
AES256/CTR [4 parallels] done.
AES256/CTR [8 parallels] done.
AES256/CTR [16 parallels] done.
AES256/CBC [4 parallels] done.
AES256/CBC [8 parallels] done.
AES256/CBC [16 parallels] done.
AES256/GCM [64KB] done.
AES256/GCM [2MB] done.
AES256/GCM [4MB] done.
AES256/GCM [8MB] done.
AES256/GCM [16MB] done.
AES256/CTR [64KB] done.
AES256/CTR [4 parallels, 64KB] done.
AES256/CTR [8 parallels, 64KB] done.
AES256/CTR [16 parallels, 64KB] done.
AES256/CTR [2MB] done.
AES256/CTR [4 parallels, 2MB] done.
AES256/CTR [8 parallels, 2MB] done.
AES256/CTR [16 parallels, 2MB] done.
AES256/CTR [4MB] done.
AES256/CTR [4 parallels, 4MB] done.
AES256/CTR [8 parallels, 4MB] done.
AES256/CTR [16 parallels, 4MB] done.
AES256/CTR [8MB] done.
AES256/CTR [4 parallels, 8MB] done.
AES256/CTR [8 parallels, 8MB] done.
AES256/CTR [16 parallels, 8MB] done.
AES256/CTR [16MB] done.
AES256/CTR [4 parallels, 16MB] done.
AES256/CTR [8 parallels, 16MB] done.
AES256/CTR [16 parallels, 16MB] done.
AES256/CBC [64KB] done.
AES256/CBC [4 parallels, 64KB] done.
AES256/CBC [8 parallels, 64KB] done.
AES256/CBC [16 parallels, 64KB] done.
AES256/CBC [2MB] done.
AES256/CBC [4 parallels, 2MB] done.
AES256/CBC [8 parallels, 2MB] done.
AES256/CBC [16 parallels, 2MB] done.
AES256/CBC [4MB] done.
AES256/CBC [4 parallels, 4MB] done.
AES256/CBC [8 parallels, 4MB] done.
AES256/CBC [16 parallels, 4MB] done.
AES256/CBC [8MB] done.
AES256/CBC [4 parallels, 8MB] done.
AES256/CBC [8 parallels, 8MB] done.
AES256/CBC [16 parallels, 8MB] done.
AES256/CBC [16MB] done.
AES256/CBC [4 parallels, 16MB] done.
AES256/CBC [8 parallels, 16MB] done.
AES256/CBC [16 parallels, 16MB] done.
XXH3 done.
fwrite done.
fread done.
memcpy done.
memcpy [4 parallels] done.
memcpy [8 parallels] done.
memcpy [16 parallels] done.
Finished.
-- [Application] -----------------------------------------------------------
hcp server (hcpd) 1.5.3_22 / Linux (HpFP2 2.0.0.91_21 WSAPI 0.0.1.34 WS 4.2.0-2)
-- [Linked Libraries] ------------------------------------------------------
boost 1_79
cryptopp 870
xxhash 0.8.1
icu 67.1
zlib 1.2.11
OpenSSL 3.0.7 1 Nov 2022
-- [System Information] ----------------------------------------------------
CPU : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz, physical 8 / logical 8
AES : x86_64 AES-NI ON
RAM : 1995032 kB
Kernel : Linux 5.14.0-284.30.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Sep 12 09:28:32 EDT 2023
OS : AlmaLinux 9.2 (Turquoise Kodkod)
Host : localhost.localdomain
Network Interface (filter dmesg by 'eth') :
e1000 0000:02:01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:a9:13:82
e1000 0000:02:01.0 eth0: Intel(R) PRO/1000 Network Connection
e1000 0000:02:05.0 eth1: (PCI:66MHz:32-bit) 00:0c:29:a9:13:8c
e1000 0000:02:05.0 eth1: Intel(R) PRO/1000 Network Connection
e1000 0000:02:01.0 ens33: renamed from eth0
e1000 0000:02:05.0 ens37: renamed from eth1
File System (filter dmesg by 'mounted') :
-- [Performance Configuration] ---------------------------------------------
License limit : 1.00Tbps
SendRate : 100.00Gbps
RecvRate : 100.00Gbps
-- [Secure Communication Performance] --------------------------------------
AES256/GCM : 10.03Gbps
AES256/CTR : 11.96Gbps
AES256/CTR/VMAC : 11.96Gbps (AES256/CTR slower than VMAC[65.20Gbps])
AES256/CBC : 5.54Gbps
AES256/CBC/HMAC[MD5] : 5.54Gbps (AES256/CBC slower than MD5[5.97Gbps])
AES256/CBC/HMAC[SHA1] : 5.51Gbps
AES256/CBC/HMAC[SHA256] : 2.79Gbps
AES256/CTR [4 parallels] : 41.80Gbps
AES256/CTR [8 parallels] : 52.11Gbps
AES256/CTR [16 parallels]: 49.42Gbps
AES256/CBC [4 parallels] : 20.61Gbps
AES256/CBC [8 parallels] : 33.81Gbps
AES256/CBC [16 parallels]: 33.13Gbps
-- [Secure Communication Performance (Extended)] ---------------------------
AES256/GCM [64KB] : 15.62Gbps
AES256/GCM [2MB] : 9.70Gbps
AES256/GCM [4MB] : 9.18Gbps
AES256/GCM [8MB] : 8.67Gbps
AES256/GCM [16MB] : 8.26Gbps
AES256/CTR [64KB] : 20.46Gbps
AES256/CTR [64KB, 4 parallels] : 78.10Gbps
AES256/CTR [64KB, 8 parallels] : 101.87Gbps
AES256/CTR [64KB, 16 parallels]: 96.45Gbps
AES256/CTR [2MB] : 11.47Gbps
AES256/CTR [2MB, 4 parallels] : 37.00Gbps
AES256/CTR [2MB, 8 parallels] : 39.86Gbps
AES256/CTR [2MB, 16 parallels] : 39.73Gbps
AES256/CTR [4MB] : 10.48Gbps
AES256/CTR [4MB, 4 parallels] : 27.72Gbps
AES256/CTR [4MB, 8 parallels] : 35.03Gbps
AES256/CTR [4MB, 16 parallels] : 34.26Gbps
AES256/CTR [8MB] : 9.60Gbps
AES256/CTR [8MB, 4 parallels] : 26.56Gbps
AES256/CTR [8MB, 8 parallels] : 33.85Gbps
AES256/CTR [8MB, 16 parallels] : 33.50Gbps
AES256/CTR [16MB] : 9.10Gbps
AES256/CTR [16MB, 4 parallels] : 27.21Gbps
AES256/CTR [16MB, 8 parallels] : 33.11Gbps
AES256/CTR [16MB, 16 parallels]: 32.05Gbps
AES256/CBC [64KB] : 6.88Gbps
AES256/CBC [64KB, 4 parallels] : 27.03Gbps
AES256/CBC [64KB, 8 parallels] : 48.96Gbps
AES256/CBC [64KB, 16 parallels]: 48.72Gbps
AES256/CBC [2MB] : 5.42Gbps
AES256/CBC [2MB, 4 parallels] : 19.73Gbps
AES256/CBC [2MB, 8 parallels] : 30.97Gbps
AES256/CBC [2MB, 16 parallels] : 30.63Gbps
AES256/CBC [4MB] : 5.26Gbps
AES256/CBC [4MB, 4 parallels] : 17.54Gbps
AES256/CBC [4MB, 8 parallels] : 29.06Gbps
AES256/CBC [4MB, 16 parallels] : 28.25Gbps
AES256/CBC [8MB] : 4.98Gbps
AES256/CBC [8MB, 4 parallels] : 17.32Gbps
AES256/CBC [8MB, 8 parallels] : 26.41Gbps
AES256/CBC [8MB, 16 parallels] : 24.48Gbps
AES256/CBC [16MB] : 4.78Gbps
AES256/CBC [16MB, 4 parallels] : 16.88Gbps
AES256/CBC [16MB, 8 parallels] : 23.11Gbps
AES256/CBC [16MB, 16 parallels]: 18.83Gbps
-- [File Integrity Validation Performance] ---------------------------------
XXH3 : 181.80Gbps
-- [Base Performance] ------------------------------------------------------
fwrite : 6.66Gbps (free space 35.33GiB at /root)
fread : 11.09Gbps (file size 4.00GiB)
memcpy : 255.28Gbps
memcpy [4 parallels] : 181.30Gbps
memcpy [8 parallels] : 169.12Gbps
memcpy [16 parallels] : 170.70Gbps
----------------------------------------------------------------------------
$
⇒【オンラインドキュメント】コマンドリファレンス hcpd (run-host-benchmark)
⇒【オンラインドキュメント】コマンドリファレンス hcp (run-host-benchmark)