目次
SAMSUNG EVO Plus 128GB microSDXC UHS-I U3
read_sd_attr.py
$ python3 read_sd_attr.py ===== SD and MMC Block Device Attributes Reader Ver 0.02 ===== device: /sys/block/mmcblk0/device ---------------------------------------- cid: 1b534d4544345154304a4957e60133f7\n csd: 400e00325b590003b9ff7f800a4040ab\n scr: 02c5800300000000\n date: 03/2019\n fwrev: 0x0\n hwrev: 0x3\n manfid: 0x00001b\n name: ED4QT\n oemid: 0x534d\n ('SM') prv: None serial: 0x4a4957e6\n erase_size: 512\n preferred_erase_size: 16777216\n raw_rpmb_size_mult: None rel_sectors: None ocr: 0x00200000\n dsr: 0x404\n cmdq_en: None ----------------------------------------
オーバークロック前
sdbench.sh
$ sudo ./sdbench.sh CONFIG: CLOCK : 50.000 MHz CORE : 400 MHz, turbo=0 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 64 MB in 3.08 seconds = 20.81 MB/sec Timing O_DIRECT disk reads: 64 MB in 3.08 seconds = 20.77 MB/sec Timing O_DIRECT disk reads: 64 MB in 3.09 seconds = 20.72 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 66.1486 s, 8.1 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 62.2872 s, 8.6 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 63.4779 s, 8.5 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 23.2363 s, 23.1 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 23.2462 s, 23.1 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 23.2139 s, 23.1 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 400 0 50.000 MHz 8.01 MB/s 22.04 MB/s 20.76 MB/s
microsd-benchmarks.sh
$ sudo ./microsd-benchmarks.sh
Raspberry Pi Dramble microSD benchmarks
microSD clock: 50.000 MHz
Running hdparm test...
/dev/mmcblk0:
Timing buffered disk reads: 68 MB in 3.06 seconds = 22.19 MB/sec
Running dd test...
51200+0 レコード入力
51200+0 レコード出力
419430400 bytes (419 MB, 400 MiB) copied, 48.921 s, 8.6 MB/s
Running iozone test...
Iozone: Performance Test of File I/O
Version $Revision: 3.492 $
Compiled for 32 bit mode.
Build: linux-arm
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhine, Mike Wisner, Ken Goss
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
Vangel Bojaxhi, Ben England, Vikentsi Lapa,
Alexey Skidanov, Sudhir Kumar.
Run began: Thu Mar 10 12:10:45 2022
Include fsync in write timing
O_DIRECT feature enabled
Auto Mode
File size set to 102400 kB
Record Size 4 kB
Command line used: ./iozone -e -I -a -s 100M -r 4k -i 0 -i 1 -i 2
Output is in kBytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 kBytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
random random bkwd record stride
kB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
102400 4 1637 1960 5036 5023 4085 1932
iozone test complete.
microSD card benchmark complete!
オーバークロック後
設定値割り出し
core_freq (MHz) | dtparam=sd_overclock (MHz) | actual clock | judge |
---|---|---|---|
515 | 103 (=515/5) | 85.833 | NG |
480 | 96 (=480/5) | 83.333 | NG |
475 | 95 (=475/5) | 83.333 | NG |
470 | 94 (=470/5) | 94.000 | OK |
466 | 93 (=466/5) | 93.000 | OK |
450 | 90 (=450/5) | 90.000 | OK |
config.txt の設定 (core_freq=470, sd_overclock=94)
- /boot/config.txt
$ sudo nano /boot/config.txt #----- Zero OC ----- ##fake_vsync_isr=1 ##framebuffer_swap=0 ##gpu_mem=48 ##init_emmc_clock=100000000 force_turbo=1 ##arm_freq=1150 ##arm_freq=1095 for my other unit with heatsink ##arm_freq=1085 arm_freq=1050 ##gpu_freq=550 for the unit with a heatsink ##gpu_freq=530 gpu_freq=520 ##gpu_freq=300 core_freq=470 #core_freq=515 over_voltage=2 sdram_freq=533 over_voltage_sdram=1 ##over_voltage_sdram_c=7 ##over_voltage_sdram_i=7 ##over_voltage_sdram_p=8 dtparam=sd_overclock=94
sdbench.sh
$ sudo ./sdbench.sh CONFIG: core_freq=470, dtparam=sd_overclock=94 CLOCK : SD Bus: 94.000 MHz, CPU: 1050.110 MHz, CPU Temp: 48.692 ℃, SDRAM: 533 MHz VOLTS : core: 1.4000V, sdram(controller, I/O, physical): 1.2250V, 1.2250V, 1.2250V CORE : 470 MHz(470 MHz), turbo=1 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 120 MB in 3.04 seconds = 39.50 MB/sec Timing O_DIRECT disk reads: 120 MB in 3.05 seconds = 39.40 MB/sec Timing O_DIRECT disk reads: 116 MB in 3.04 seconds = 38.17 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 41.2769 s, 13.0 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 51.7984 s, 10.4 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 45.155 s, 11.9 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 12.7111 s, 42.2 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.7076 s, 42.2 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.7066 s, 42.3 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 470 1 94.000 MHz 11.21 MB/s 40.29 MB/s 38.99 MB/s microSD card benchmark complete! CPU Temp: 48.692 ℃
microsd-benchmarks.sh
$ sudo ./microsd-benchmarks.sh
Raspberry Pi Dramble microSD benchmarks
microSD clock: 94.000 MHz
Running hdparm test...
/dev/mmcblk0:
Timing buffered disk reads: 124 MB in 3.01 seconds = 41.14 MB/sec
Running dd test...
51200+0 レコード入力
51200+0 レコード出力
419430400 bytes (419 MB, 400 MiB) copied, 38.3377 s, 10.9 MB/s
Running iozone test...
Iozone: Performance Test of File I/O
Version $Revision: 3.492 $
Compiled for 32 bit mode.
Build: linux-arm
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhine, Mike Wisner, Ken Goss
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
Vangel Bojaxhi, Ben England, Vikentsi Lapa,
Alexey Skidanov, Sudhir Kumar.
Run began: Tue Mar 15 09:32:08 2022
Include fsync in write timing
O_DIRECT feature enabled
Auto Mode
File size set to 102400 kB
Record Size 4 kB
Command line used: ./iozone -e -I -a -s 100M -r 4k -i 0 -i 1 -i 2
Output is in kBytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 kBytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
random random bkwd record stride
kB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
102400 4 1818 2554 6025 6015 5066 2441
iozone test complete.
microSD card benchmark complete!
config.txt の設定 (core_freq=466, sd_overclock=93)
- /boot/config.txt
$ sudo nano /boot/config.txt #fake_vsync_isr=1 #framebuffer_swap=0 #gpu_mem=48 #init_emmc_clock=100000000 #arm_freq=1150 #arm_freq=1085 arm_freq=1050 #arm_freq=1095 for my other unit with heatsink over_voltage=2 #gpu_freq=530 gpu_freq=520 #gpu_freq=300 #gpu_freq=550 for the unit with a heatsink core_freq=466 sdram_freq=533 over_voltage_sdram=1 #over_voltage_sdram_c=7 #over_voltage_sdram_i=7 #over_voltage_sdram_p=8 dtparam=sd_overclock=93 force_turbo=1
sdbench.sh
$ sudo ./sdbench.sh CONFIG: core_freq=466, dtparam=sd_overclock=93 CLOCK : SD Bus: 93.200 MHz, CPU: 1050.000 MHz, CPU Temp: 43.312 ℃, SDRAM: 533 MHz VOLTS : core: 1.4000V, sdram(controller, I/O, physical): 1.2250V, 1.2250V, 1.2250V CORE : 466 MHz(466 MHz), turbo=1 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 118 MB in 3.02 seconds = 39.10 MB/sec Timing O_DIRECT disk reads: 118 MB in 3.05 seconds = 38.68 MB/sec Timing O_DIRECT disk reads: 118 MB in 3.04 seconds = 38.87 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 46.5652 s, 11.5 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 46.1383 s, 11.6 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 49.0241 s, 11.0 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 12.7997 s, 41.9 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.8071 s, 41.9 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.8156 s, 41.9 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 466 1 93.200 MHz 10.85 MB/s 39.98 MB/s 38.86 MB/s microSD card benchmark complete! CPU Temp: 47.616 ℃
microsd-benchmarks.sh
$ sudo ./microsd-benchmarks.sh
Raspberry Pi Dramble microSD benchmarks
microSD clock: 93.200 MHz
Running hdparm test...
/dev/mmcblk0:
Timing buffered disk reads: 122 MB in 3.01 seconds = 40.60 MB/sec
Running dd test...
51200+0 レコード入力
51200+0 レコード出力
419430400 bytes (419 MB, 400 MiB) copied, 35.7838 s, 11.7 MB/s
Running iozone test...
Iozone: Performance Test of File I/O
Version $Revision: 3.492 $
Compiled for 32 bit mode.
Build: linux-arm
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhine, Mike Wisner, Ken Goss
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
Vangel Bojaxhi, Ben England, Vikentsi Lapa,
Alexey Skidanov, Sudhir Kumar.
Run began: Tue Mar 15 09:02:50 2022
Include fsync in write timing
O_DIRECT feature enabled
Auto Mode
File size set to 102400 kB
Record Size 4 kB
Command line used: ./iozone -e -I -a -s 100M -r 4k -i 0 -i 1 -i 2
Output is in kBytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 kBytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
random random bkwd record stride
kB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
102400 4 1756 2436 5973 5968 5029 2228
iozone test complete.
microSD card benchmark complete!
config.txt の設定 (force_turbo=1, sd_overclock=100)
- /boot/config.txt
$ sudo nano /boot/config.txt #fake_vsync_isr=1 #framebuffer_swap=0 #gpu_mem=48 #init_emmc_clock=100000000 #arm_freq=1150 #arm_freq=1085 #arm_freq=1050 #arm_freq=1095 for my other unit with heatsink #over_voltage=2 #gpu_freq=530 #gpu_freq=520 #gpu_freq=300 #gpu_freq=550 for the unit with a heatsink #core_freq=515 #sdram_freq=533 #over_voltage_sdram=1 #over_voltage_sdram_c=7 #over_voltage_sdram_i=7 #over_voltage_sdram_p=8 dtparam=sd_overclock=100 force_turbo=1
sdbench.sh
$ sudo ./sdbench.sh CONFIG: dtparam=sd_overclock=100 CLOCK : 83.333 MHz CORE : 400 MHz, turbo=1 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 98 MB in 3.02 seconds = 32.44 MB/sec Timing O_DIRECT disk reads: 98 MB in 3.02 seconds = 32.44 MB/sec Timing O_DIRECT disk reads: 98 MB in 3.03 seconds = 32.39 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 57.383 s, 9.4 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 51.8252 s, 10.4 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 48.9337 s, 11.0 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 14.8008 s, 36.3 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 14.7975 s, 36.3 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 14.7977 s, 36.3 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 400 1 83.333 MHz 9.75 MB/s 34.60 MB/s 32.41 MB/s
microsd-benchmarks.sh
$ sudo ./microsd-benchmarks.sh
Raspberry Pi Dramble microSD benchmarks
microSD clock: 83.333 MHz
Running hdparm test...
/dev/mmcblk0:
Timing buffered disk reads: 106 MB in 3.03 seconds = 34.97 MB/sec
Running dd test...
51200+0 レコード入力
51200+0 レコード出力
419430400 bytes (419 MB, 400 MiB) copied, 39.2872 s, 10.7 MB/s
Running iozone test...
Iozone: Performance Test of File I/O
Version $Revision: 3.492 $
Compiled for 32 bit mode.
Build: linux-arm
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhine, Mike Wisner, Ken Goss
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
Vangel Bojaxhi, Ben England, Vikentsi Lapa,
Alexey Skidanov, Sudhir Kumar.
Run began: Fri Mar 11 07:23:21 2022
Include fsync in write timing
O_DIRECT feature enabled
Auto Mode
File size set to 102400 kB
Record Size 4 kB
Command line used: ./iozone -e -I -a -s 100M -r 4k -i 0 -i 1 -i 2
Output is in kBytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 kBytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
random random bkwd record stride
kB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
102400 4 1730 2259 5503 5491 4419 1967
iozone test complete.
microSD card benchmark complete!
config.txt の設定 (core_freq=515, sd_overclock=100)
- /boot/config.txt
$ sudo nano /boot/config.txt #fake_vsync_isr=1 #framebuffer_swap=0 #gpu_mem=48 #init_emmc_clock=100000000 #arm_freq=1150 #arm_freq=1085 arm_freq=1050 #arm_freq=1095 for my other unit with heatsink over_voltage=2 #gpu_freq=530 gpu_freq=520 #gpu_freq=300 #gpu_freq=550 for the unit with a heatsink core_freq=515 sdram_freq=533 over_voltage_sdram=1 #over_voltage_sdram_c=7 #over_voltage_sdram_i=7 #over_voltage_sdram_p=8 dtparam=sd_overclock=100 force_turbo=1
sdbench.sh
$ sudo ./sdbench.sh CONFIG: dtparam=sd_overclock=100 CLOCK : 85.833 MHz CORE : 515 MHz, turbo=1 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 104 MB in 3.00 seconds = 34.66 MB/sec Timing O_DIRECT disk reads: 104 MB in 3.00 seconds = 34.63 MB/sec Timing O_DIRECT disk reads: 104 MB in 3.01 seconds = 34.59 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 67.4483 s, 8.0 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 53.7587 s, 10.0 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 51.4308 s, 10.4 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 13.7502 s, 39.0 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 13.7579 s, 39.0 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 13.7725 s, 39.0 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 515 1 85.833 MHz 9.02 MB/s 37.21 MB/s 34.63 MB/s
microsd-benchmarks.sh
$ sudo ./microsd-benchmarks.sh
Raspberry Pi Dramble microSD benchmarks
microSD clock: 85.833 MHz
Running hdparm test...
/dev/mmcblk0:
Timing buffered disk reads: 8 MB in 4.28 seconds = 1.87 MB/sec
Running dd test...
51200+0 レコード入力
51200+0 レコード出力
419430400 bytes (419 MB, 400 MiB) copied, 46.1464 s, 9.1 MB/s
Running iozone test...
Iozone: Performance Test of File I/O
Version $Revision: 3.492 $
Compiled for 32 bit mode.
Build: linux-arm
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhine, Mike Wisner, Ken Goss
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
Vangel Bojaxhi, Ben England, Vikentsi Lapa,
Alexey Skidanov, Sudhir Kumar.
Run began: Fri Mar 11 10:50:48 2022
Include fsync in write timing
O_DIRECT feature enabled
Auto Mode
File size set to 102400 kB
Record Size 4 kB
Command line used: ./iozone -e -I -a -s 100M -r 4k -i 0 -i 1 -i 2
Output is in kBytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 kBytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
random random bkwd record stride
kB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
102400 4 1797 2682 5382 5407 4638 880