目次
文書の過去の版を表示しています。
KLEVV 128GB microSDXC Class10 UHS-I U3 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: 00000053442020201014a0001a0143dd\n csd: 400e0032db790003a3d77f800a400067\n scr: 0245848700000000\n date: 03/2020\n fwrev: 0x0\n hwrev: 0x1\n manfid: 0x000000\n name: SD \n oemid: 0x0000\n ('') prv: None serial: 0x14a0001a\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: 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.89 MB/sec Timing O_DIRECT disk reads: 66 MB in 3.02 seconds = 21.87 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, 37.3221 s, 14.4 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 33.8646 s, 15.9 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 34.9792 s, 15.3 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 23.5584 s, 22.8 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 23.8614 s, 22.5 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 23.2457 s, 23.1 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 400 0 50.000 MHz 14.49 MB/s 21.74 MB/s 21.88 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.21 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 26.495 s, 15.8 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: Sun Mar 13 10:33:55 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 1385 1648 5437 5437 4621 1615 iozone test complete. microSD card benchmark complete!
オーバークロック後
config.txt の設定 (その1)
- /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 : 100.000 MHz CORE : 400 MHz, turbo=1 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 124 MB in 3.04 seconds = 40.75 MB/sec Timing O_DIRECT disk reads: 124 MB in 3.04 seconds = 40.75 MB/sec Timing O_DIRECT disk reads: 122 MB in 3.01 seconds = 40.60 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 27.7687 s, 19.3 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 26.8186 s, 20.0 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 28.2073 s, 19.0 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 12.3104 s, 43.6 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.2908 s, 43.7 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.2976 s, 43.7 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 400 1 100.000 MHz 18.56 MB/s 41.63 MB/s 40.70 MB/s
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: 128 MB in 3.01 seconds = 42.53 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 21.1011 s, 19.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: Sun Mar 13 14:33: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 1513 1748 6260 6258 5228 1733 iozone test complete. microSD card benchmark complete!
config.txt の設定 (その2 core_freq=515)
- /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 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: 110 MB in 3.03 seconds = 36.25 MB/sec Timing O_DIRECT disk reads: 110 MB in 3.04 seconds = 36.18 MB/sec Timing O_DIRECT disk reads: 110 MB in 3.05 seconds = 36.12 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 29.2167 s, 18.4 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 26.6671 s, 20.1 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 26.8017 s, 20.0 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 14.4077 s, 37.3 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 14.0616 s, 38.2 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 13.9808 s, 38.4 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 515 1 85.833 MHz 18.61 MB/s 36.19 MB/s 36.18 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: 114 MB in 3.05 seconds = 37.36 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 19.2661 s, 21.8 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: Sun Mar 13 15:50:17 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 1570 1844 6661 6666 5529 1801 iozone test complete. microSD card benchmark complete!
config.txt の設定 (その3 core_freq=500, sd_overclock=100)
- /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=500 #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 CONFIG: dtparam=sd_overclock=100 CLOCK : 100.000 MHz CORE : 500 MHz, turbo=1 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 124 MB in 3.00 seconds = 41.30 MB/sec Timing O_DIRECT disk reads: 124 MB in 3.01 seconds = 41.16 MB/sec Timing O_DIRECT disk reads: 124 MB in 3.02 seconds = 41.04 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 26.4776 s, 20.3 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 23.8108 s, 22.5 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 26.8195 s, 20.0 MB/s READ: ==== 536870912 bytes (537 MB, 512 MiB) copied, 12.7251 s, 42.2 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.6819 s, 42.3 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 12.7368 s, 42.2 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 500 1 100.000 MHz 19.98 MB/s 40.27 MB/s 41.20 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: 110 MB in 3.05 seconds = 36.02 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 18.9134 s, 22.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 14 12:11:57 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 1584 1805 6534 6536 5473 1790 iozone test complete. microSD card benchmark complete!
config.txt の設定 (その3 core_freq=460, sd_overclock=115)
- /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=500 #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 CONFIG: dtparam=sd_overclock=115 CLOCK : 115.000 MHz CORE : 460 MHz, turbo=1 DATA : 512 MB, /root/test.dat HDPARM: ====== Timing O_DIRECT disk reads: 138 MB in 3.01 seconds = 45.84 MB/sec Timing O_DIRECT disk reads: 138 MB in 3.00 seconds = 45.93 MB/sec Timing O_DIRECT disk reads: 138 MB in 3.00 seconds = 45.99 MB/sec WRITE: ===== 536870912 bytes (537 MB, 512 MiB) copied, 28.8835 s, 18.6 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 25.83 s, 20.8 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 25.7494 s, 20.8 MB/s READ: ==== 512+0 records in 512+0 records out 536870912 bytes (537 MB, 512 MiB) copied, 11.0588 s, 48.5 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 11.0572 s, 48.6 MB/s 536870912 bytes (537 MB, 512 MiB) copied, 11.0776 s, 48.5 MB/s RESULT (AVG): ============ core_freq turbo sd clock WRITE READ HDPARM 460 1 115.000 MHz 19.14 MB/s inf MB/s 45.95 MB/s
microsd-benchmarks.sh
$ sudo ./microsd-benchmarks.sh Raspberry Pi Dramble microSD benchmarks microSD clock: 115.000 MHz Running hdparm test... /dev/mmcblk0: Timing buffered disk reads: 146 MB in 3.01 seconds = 48.48 MB/sec Running dd test... 51200+0 レコード入力 51200+0 レコード出力 419430400 bytes (419 MB, 400 MiB) copied, 19.1859 s, 21.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: Mon Mar 14 03:31: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 1549 1797 6771 6613 5443 1803 iozone test complete. microSD card benchmark complete!