ワンボードのSDカードベンチ備忘録

参考サイト
https://qiita.com/mt08/items/fe0d1aaaa5a7952d87a7

ラズパイ以外はエラー表記が出るが、問題なく計測できている

> sudo apt install hdparm
> curl http://www.nmacleod.com/public/sdbench.sh | sudo bash
  • ラズパイ3 Model-A + Samsung EVO Plus 32GB
# /boot/config.txt
arm_freq=1450
gpu_freq=500
core_freq=500
sdram_freq=500
CONFIG:
CLOCK : 50.000 MHz
CORE  : 250 MHz, turbo=0
DATA  : 512 MB, /root/test.dat

HDPARM:
======
 Timing O_DIRECT disk reads:  66 MB in  3.00 seconds =  21.97 MB/sec
 Timing O_DIRECT disk reads:  66 MB in  3.01 seconds =  21.89 MB/sec
 Timing O_DIRECT disk reads:  66 MB in  3.01 seconds =  21.90 MB/sec

WRITE:
=====
536870912 bytes (537 MB, 512 MiB) copied, 32.2312 s, 16.7 MB/s
536870912 bytes (537 MB, 512 MiB) copied, 29.1798 s, 18.4 MB/s
536870912 bytes (537 MB, 512 MiB) copied, 29.0209 s, 18.5 MB/s

READ:
====
536870912 bytes (537 MB, 512 MiB) copied, 22.781 s, 23.6 MB/s
536870912 bytes (537 MB, 512 MiB) copied, 22.82 s, 23.5 MB/s
536870912 bytes (537 MB, 512 MiB) copied, 22.8925 s, 23.5 MB/s

RESULT (AVG):
============
Overlay config                      core_freq   turbo   overclock_50    WRITE        READ        HDPARM
                                       250        0      50.000 MHz     inf MB/s     inf MB/s   21.95 MB/s
  • ラズパイ3 Model-B + Samsung EVO Plus 32GB

config.txtはデフォルト状態

CONFIG:
CLOCK : 50.000 MHz
CORE  : 400 MHz, turbo=0
DATA  : 512 MB, /root/test.dat

HDPARM:
======
 Timing O_DIRECT disk reads:  66 MB in  3.01 seconds =  21.96 MB/sec
 Timing O_DIRECT disk reads:  66 MB in  3.02 seconds =  21.89 MB/sec
 Timing O_DIRECT disk reads:  66 MB in  3.01 seconds =  21.96 MB/sec

WRITE:
=====
512+0 レコード入力
512+0 レコード出力
536870912 bytes (537 MB, 512 MiB) copied, 55.1051 s, 9.7 MB/s
512+0 レコード入力
512+0 レコード出力
536870912 bytes (537 MB, 512 MiB) copied, 51.3169 s, 10.5 MB/s
512+0 レコード入力
512+0 レコード出力
536870912 bytes (537 MB, 512 MiB) copied, 44.4227 s, 12.1 MB/s

READ:
====
512+0 レコード入力
512+0 レコード出力
536870912 bytes (537 MB, 512 MiB) copied, 22.9845 s, 23.4 MB/s
512+0 レコード入力
512+0 レコード出力
536870912 bytes (537 MB, 512 MiB) copied, 23.0401 s, 23.3 MB/s
512+0 レコード入力
512+0 レコード出力
536870912 bytes (537 MB, 512 MiB) copied, 23.0461 s, 23.3 MB/s

RESULT (AVG):
============
Overlay config                      core_freq   turbo   overclock_50    WRITE        READ        HDPARM
                                       400        0      50.000 MHz     inf MB/s     inf MB/s   21.90 MB/s
  • Jetson Nano + Transcend 64GB UHS-I U3 V30 A2 TS64GUSD330S

SDカードの差はあると思うが、クロックスピードの違いが顕著に出ていると思われる

CONFIG:
CLOCK : 204.000 MHz
CORE  :  MHz, turbo=
DATA  : 512 MB, /home/neutral3d/test.dat

HDPARM:
======
 Timing O_DIRECT disk reads: 186 MB in  3.01 seconds =  61.76 MB/sec
 Timing O_DIRECT disk reads: 184 MB in  3.04 seconds =  60.50 MB/sec
 Timing O_DIRECT disk reads: 184 MB in  3.01 seconds =  61.21 MB/sec

WRITE:
=====
536870912 bytes (537 MB, 512 MiB) copied, 15.4286 s, 34.8 MB/s
536870912 bytes (537 MB, 512 MiB) copied, 15.1075 s, 35.5 MB/s
536870912 bytes (537 MB, 512 MiB) copied, 14.7815 s, 36.3 MB/s

READ:
====
536870912 bytes (537 MB, 512 MiB) copied, 5.89929 s, 91.0 MB/s
536870912 bytes (537 MB, 512 MiB) copied, 5.90728 s, 90.9 MB/s
536870912 bytes (537 MB, 512 MiB) copied, 5.86116 s, 91.6 MB/s

RESULT (AVG):
============
Overlay config                      core_freq   turbo   overclock_50    WRITE        READ        HDPARM
                                       0        0     204.000 MHz     inf MB/s     inf MB/s   61.15 MB/s

下手なロースペックPC買うよりもJetsonのほうがコストパフォーマンス良さそう。

-->