====== SanDisk 128GB microSDXC Class10 UHS-I U1 A1 (read 120MB/s) ====== {{:hardware:sdcard_bench_sandisk_128gb_microsdxc_class10_uhs-i_u1_a1_001.jpg?100|SanDisk 128GB microSDXC Class10 UHS-I U1 A1}}\\ ===== 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: 035344534431323885d7c3db51015ba9\n csd: 400e00325b590003b8ab7f800a404079\n scr: 0245804300000000\n date: 11/2021\n fwrev: 0x5\n hwrev: 0x8\n manfid: 0x000003\n name: SD128\n oemid: 0x5344\n ('SD') prv: None serial: 0xd7c3db51\n erase_size: 512\n preferred_erase_size: 4194304\n raw_rpmb_size_mult: None rel_sectors: None ocr: 0x00200000\n dsr: 0x404\n cmdq_en: None ---------------------------------------- ===== オーバークロック前 ===== ==== sdbench.sh ==== $ sudo ./sdbench.sh CONFIG: default CLOCK : SD Bus: 50.000 MHz, CPU: 1000.000 MHz, CPU Temp: 42.236 ℃, SDRAM: 450 MHz VOLTS : core: 1.3500V, sdram(controller, I/O, physical): 1.2000V, 1.2000V, 1.2250V CORE : 400 MHz(400 MHz), turbo=0 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 66 MB in 3.01 seconds = 21.90 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.02 seconds = 21.85 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 32.2294 s, 16.7 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 31.9951 s, 16.8 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 31.5782 s, 17.0 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 23.1221 s, 23.2 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 23.3045 s, 23.0 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 23.1063 s, 23.2 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 400 0 50.000 MHz 16.03 MB/s 22.09 MB/s 21.88 MB/s microSD card benchmark complete! CPU Temp: 43.850 ℃ ==== 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.24 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 23.8758 s, 17.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: Wed Mar 16 02:19:06 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 2330 2725 5039 5035 4933 2111 iozone test complete. microSD card benchmark complete! ===== オーバークロック後 ===== ==== 設定値割り出し ==== ^ core_freq (MHz) ^ dtparam=sd_overclock (MHz) ^ actual clock (MHz) ^ judge ^ benchmark ^ | 550 | 110 (=550/5.000) | boot NG | NG | NG | | 525 | 105 (=525/5.000) | 105.000 (=525/5.000) | **OK** | NG\\ checksum error | | 520 | 104 (=520/5.000) | 104.000 (=520/5.000) | **OK** | **OK** | | 532 | 100 (=500/5.000) | 88.667 (=532/5.999) | NG | NG | | 515 | 100 (=500/5.000) | 85.833 (=515/6.000) | NG | NG | | 510 | 100 (=500/5.000) | 85.000 (=510/6.000) | NG | NG | | 500 | 125 (=500/4.000) | boot NG | NG | NG | | 500 | 120 (=500/5.000) | 100.000 (=500/5.000) | NG | NG | | 500 | 115 (=500/5.000) | 100.000 (=500/5.000) | NG | NG | | 500 | 110 (=500/5.000) | 100.000 (=500/5.000) | NG | NG | | 500 | 105 (=500/5.000) | 100.000 (=500/5.000) | NG | NG | | 500 | 100 (=500/5.000) | 100.000 (=500/5.000) | **OK** | **OK** | ==== config.txt の設定 (force_turbo=1,sd_overclock=100) ==== $ sudo nano /boot/config.txt force_turbo=1 dtparam=sd_overclock=100 $ sudo reboot ==== sdbench.sh ==== $ sudo ./sdbench.sh CONFIG: dtparam=sd_overclock=100 CLOCK : SD Bus: 100.000 MHz, CPU: 1000.000 MHz, CPU Temp: 41.160 ℃, SDRAM: 450 MHz VOLTS : core: 1.3500V, sdram(controller, I/O, physical): 1.2000V, 1.2000V, 1.2250V CORE : 400 MHz(400 MHz), turbo=1 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 126 MB in 3.02 seconds = 41.70 MB/sec Timing O_DIRECT disk reads: 122 MB in 3.01 seconds = 40.52 MB/sec Timing O_DIRECT disk reads: 122 MB in 3.04 seconds = 40.13 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 32.7833 s, 16.4 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 28.2781 s, 19.0 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 29.6275 s, 18.1 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 12.25 s, 43.8 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.1017 s, 44.4 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.3091 s, 43.6 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 400 1 100.000 MHz 17.00 MB/s 41.90 MB/s 40.79 MB/s microSD card benchmark complete! CPU Temp: 48.154 ℃ ==== microsd-benchmarks.sh ==== $ sudo ./microsd-benchmarks.sh Raspberry Pi Dramble microSD benchmarks microSD clock: 100.000 MHz Running hdparm test... /dev/mmcblk0: Timing buffered disk reads: 124 MB in 3.00 seconds = 41.31 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 22.5824 s, 18.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: Wed Mar 16 02:31:16 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 2199 2838 5745 5749 5625 2163 iozone test complete. microSD card benchmark complete! ==== config.txt の設定 (force_turbo=1,core_freq=520,sd_overclock=104) ==== $ 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=1100 ##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=560 #core_freq=555 ##core_freq=532 core_freq=520 ##core_freq=440 over_voltage=3 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=104 #dtparam=sd_overclock=125 ==== sdbench.sh ==== $ sudo ./sdbench.sh CONFIG: core_freq=520,dtparam=sd_overclock=104 CLOCK : SD Bus: 104.000 MHz, CPU: 1050.110 MHz, CPU Temp: 43.850 ℃, SDRAM: 533 MHz VOLTS : core: 1.4000V, sdram(controller, I/O, physical): 1.2250V, 1.2250V, 1.2250V CORE : 520 MHz(520 MHz), turbo=1 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 132 MB in 3.04 seconds = 43.43 MB/sec Timing O_DIRECT disk reads: 130 MB in 3.01 seconds = 43.17 MB/sec Timing O_DIRECT disk reads: 132 MB in 3.03 seconds = 43.60 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 28.1164 s, 19.1 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 25.1531 s, 21.3 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 25.7061 s, 20.9 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 11.7015 s, 45.9 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 11.4114 s, 47.0 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 11.4134 s, 47.0 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 520 1 104.000 MHz 19.50 MB/s 44.50 MB/s 43.39 MB/s microSD card benchmark complete! CPU Temp: 49.230 ℃ ==== microsd-benchmarks.sh ==== $ sudo ./microsd-benchmarks.sh Raspberry Pi Dramble microSD benchmarks microSD clock: 104.000 MHz Running hdparm test... /dev/mmcblk0: Timing buffered disk reads: 138 MB in 3.04 seconds = 45.38 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 17.3536 s, 24.2 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: Mon Mar 28 11:58:39 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 2502 3183 6179 6185 6043 2372 iozone test complete. microSD card benchmark complete! ==== config.txt の設定 (force_turbo=1,core_freq=500,sd_overclock=100) ==== $ 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=1100 ##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=560 #core_freq=555 ##core_freq=532 core_freq=500 ##core_freq=440 over_voltage=3 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 #dtparam=sd_overclock=125 ==== sdbench.sh ==== $ sudo ./sdbench.sh CONFIG: core_freq=500,dtparam=sd_overclock=100 CLOCK : SD Bus: 100.000 MHz, CPU: 1050.110 MHz, CPU Temp: 40.622 ℃, SDRAM: 533 MHz VOLTS : core: 1.4000V, sdram(controller, I/O, physical): 1.2250V, 1.2250V, 1.2250V CORE : 500 MHz(500 MHz), turbo=1 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 126 MB in 3.02 seconds = 41.67 MB/sec Timing O_DIRECT disk reads: 124 MB in 3.03 seconds = 40.97 MB/sec Timing O_DIRECT disk reads: 124 MB in 3.03 seconds = 40.91 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 24.986 s, 21.5 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 24.3514 s, 22.0 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 25.5795 s, 21.0 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 12.0372 s, 44.6 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.0061 s, 44.7 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.3255 s, 43.6 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 500 1 100.000 MHz 20.51 MB/s 42.24 MB/s 41.19 MB/s microSD card benchmark complete! CPU Temp: 49.768 ℃ ==== microsd-benchmarks.sh ==== $ sudo ./microsd-benchmarks.sh Raspberry Pi Dramble microSD benchmarks microSD clock: 100.000 MHz Running hdparm test... /dev/mmcblk0: Timing buffered disk reads: 130 MB in 3.03 seconds = 42.94 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 17.4052 s, 24.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: Wed Mar 16 02:57:53 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 2498 3171 6132 6071 6010 2314 iozone test complete. microSD card benchmark complete!