Raspberry Pi IO Benchmarking
Quelle: https://jamesachambers.com/raspberry-pi-4-usb-boot-config-guide-for-ssd-flash-drives/
Quelle: https://storage.jamesachambers.com/
James hat sich in seinem Blog ausführlich mit dem Thema IO Benchmarking auseinander gesetzt. Herausgekommen sind hierbei diverse Übersichten und Infos zu funktionierender/ nicht funktionierender Hardware als auch ein fertiges Benchmarking Script, welches automatisiert IO Tests durchführt und einen Score berechnet. Die gesamte Benchmarking Liste der von usern getesteten Hardware findet sich unter https://storage.jamesachambers.com/ , dort finden sich auch die Scores.
Benchmarking Script:
sudo curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash
Beispiel:
Hardware: Pi Model 3 B+ und einem SanDisk Cruzer 16GB USB-Stick USB2
Score (s.u.): 471 (* laut User Liste schnellster Test bisher ca. 11.000 mit einer USB3 SSD)
pi@raspberrypi:~ $ sudo curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash
Board information: Manufacturer: Raspberry Pi Foundation - Model: Raspberry Pi 3 Model B Plus Rev 1.3 - Architecture: armv7l - OS: Raspbian GNU/Linux 10 (buster)
Fetching required components ...
[..]
Clock speeds: CPU: 1400 - Core: 400 - RAM: 450
System rootfs drive (/) has been detected as /dev/sda2 (sda2)
System: Host: raspberrypi Kernel: 4.19.97-v7+ armv7l bits: 32 compiler: gcc v: 4.9.3
Console: tty 0 Distro: Raspbian GNU/Linux 10 (buster)
Machine: Type: ARM Device System: Raspberry Pi 3 Model B Plus Rev 1.3 details: BCM2835
rev: a020d3 serial: <filter>
CPU: Topology: Quad Core model: ARMv7 v7l variant: cortex-a53 bits: 32 type: MCP arch: v7l
rev: 4
features: Use -f option to see features bogomips: 358
Speed: 1400 MHz min/max: 600/1400 MHz Core speeds (MHz): 1: 1400 2: 1400 3: 1400
4: 1400
Graphics: Device-1: bcm2708-fb driver: bcm2708_fb v: kernel bus ID: N/A
Device-2: bcm2835-hdmi driver: N/A bus ID: N/A
Display: server: No display server data found. Headless machine? tty: N/A
Message: Unable to show advanced data. Required tool glxinfo missing.
Network: Device-1: Standard Microsystems type: USB driver: lan78xx bus ID: 1-1.1.1:5
IF: eth0 state: down mac: <filter>
IF-ID-1: wlan0 state: up mac: <filter>
Drives: Local Storage: total: 29.82 GiB used: 1.33 GiB (4.5%)
ID-1: /dev/sda type: USB vendor: SanDisk model: Cruzer Slice size: 29.82 GiB
Message: No Optical or Floppy data was found.
Partition: ID-1: / size: 29.08 GiB used: 1.28 GiB (4.4%) fs: ext4 dev: /dev/sda2
ID-2: /boot size: 252.0 MiB used: 52.2 MiB (20.7%) fs: vfat dev: /dev/sda1
Info: Processes: 123 Uptime: 5m Memory: 1002.1 MiB used: 167.4 MiB (16.7%) gpu: 76.0 MiB
Init: systemd runlevel: 5 Compilers: gcc: 8.3.0 Client: Sudo v: 1.8.27 inxi: 3.0.37
Running HDParm tests ...
/dev/sda2:
Timing O_DIRECT cached reads: 34 MB in 2.00 seconds = 16.99 MB/sec
Timing O_DIRECT disk reads: 64 MB in 3.04 seconds = 21.02 MB/sec
HDParm: 21.02 MB/s - HDParmCached: 16.99 MB/s
Running dd tests ...
81920+0 records in
81920+0 records out
335544320 bytes (336 MB, 320 MiB) copied, 77.7041 s, 4.3 MB/s
DD Write Speed: 4.3 MB/s
Running fio write test ...
Running fio read test ...
FIO results - 4k RandWrite: 132 IOPS (528 KB/s) - 4k RandRead: 1330 IOPS (5320 KB/s)
Running iozone test ...
Iozone: Performance Test of File I/O
Version $Revision: 3.429 $
Compiled for 32 bit mode.
Build: linux
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.
Run began: Sat Feb 29 11:30:21 2020
Auto Mode
Include fsync in write timing
O_DIRECT feature enabled
File size set to 81920 kB
Record Size 4 kB
Command line used: iozone -a -e -I -i 0 -i 1 -i 2 -s 80M -r 4k
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
81920 4 1844 1772 6296 6379 4916 831
iozone test complete.
RandRead: 4916 - RandWrite: 831 - Read: 6296 - Write: 1844
Category Test Result
HDParm Disk Read 21.02 MB/s
HDParm Cached Disk Read 16.99 MB/s
DD Disk Write 4.3 MB/s
FIO 4k random read 1330 IOPS (5320 KB/s)
FIO 4k random write 132 IOPS (528 KB/s)
IOZone 4k read 6296 KB/s
IOZone 4k write 1844 KB/s
IOZone 4k random read 4916 KB/s
IOZone 4k random write 831 KB/s
Score: 471
Compare with previous benchmark results at:
https://storage.jamesachambers.com/