目次
文書の過去の版を表示しています。
KIOXIA EXCERIA 128GB microSDXC Class10 UHS-I U1 (read 100MB/s)
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: 02544d5341313238722aaa858e01551f\n csd: 400e00325b590003a2df7f800a400001\n scr: 0205808301000000\n date: 05/2021\n fwrev: 0x2\n hwrev: 0x7\n manfid: 0x000002\n name: SA128\n oemid: 0x544d\n ('TM') prv: None serial: 0x2aaa858e\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.104 MHz, CPU Temp: 44.388 ℃, 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.01 seconds = 21.89 MB/sec Timing O_DIRECT disk reads: 66 MB in 3.07 seconds = 21.51 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 42.0641 s, 12.8 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 45.2603 s, 11.9 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 40.4184 s, 13.3 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 23.1773 s, 23.2 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 23.1925 s, 23.1 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 23.183 s, 23.2 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 400 0 50.000 MHz 12.05 MB/s 22.09 MB/s 21.79 MB/s microSD card benchmark complete! CPU Temp: 44.926 ℃
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.23 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 31.2954 s, 13.4 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 30 12:03:11 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 2730 3664 5736 5741 5010 3531 iozone test complete. microSD card benchmark complete!
オーバークロック後
設定値割り出し
core_freq (MHz) | dtparam=sd_overclock (MHz) | actual clock (MHz) | judge | benchmark |
---|---|---|---|---|
570 | 125 (=570/4.560) | 71.250 (=570/8.000) | NG | - |
565 | 125 (=565/4.520) | 125.000 (=565/4.520) | OK | OK |
560 | 125 (=560/4.480) | 125.000 (=560/4.480) | OK | OK |
560 | 110 (=560/5.090) | 93.333 (=560/6.000) | NG | OK |
555 | 125 (=555/4.440) | 125.000 (=555/4.440) | OK | OK |
550 | 110 (=550/5.000) | 110.000 (=550/5.000) | OK | OK |
500 | 100 (=500/5.000) | 100.000 (=500/5.000) | OK | OK |
config.txt の設定 (force_turbo=1,sd_overclock=100)
- /boot/config.txt
$ 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: 44.388 ℃, 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: 124 MB in 3.01 seconds = 41.20 MB/sec Timing O_DIRECT disk reads: 124 MB in 3.01 seconds = 41.18 MB/sec Timing O_DIRECT disk reads: 124 MB in 3.02 seconds = 41.10 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 37.2488 s, 14.4 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 36.7761 s, 14.6 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 39.1785 s, 13.7 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 12.3571 s, 43.4 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.5768 s, 42.7 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.0358 s, 44.6 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 400 1 100.000 MHz 13.58 MB/s 41.56 MB/s 41.15 MB/s microSD card benchmark complete! CPU Temp: 47.078 ℃
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.02 seconds = 43.01 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 27.1918 s, 15.4 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 30 13:33:28 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 2798 3745 6359 6362 5483 3793 iozone test complete. microSD card benchmark complete!
config.txt の設定 (その2)
- /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=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=100
sdbench.sh
$ sudo ./sdbench.sh
microsd-benchmarks.sh
$ sudo ./microsd-benchmarks.sh