eMMC and SD I/O tests
Reading raw devices:
cat /dev/mmcblk2 | pv -brat > /dev/null -> Onboard eMMC: 75.5MiB/s
cat /dev/mmcblk0 | pv -brat > /dev/null -> SanDisk extreme 16GB: 20.7MiB/s
Tests executed with:
- fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=64M --readwrite=randrw --rwmixread=75
Result: best of 3 runs
ext4 FS on eMMC
Result:
- READ: bw=6551KiB/s (6708kB/s), 6551KiB/s-6551KiB/s (6708kB/s-6708kB/s), io=47.0MiB (50.3MB), run=7496-7496msec
- WRITE: bw=2192KiB/s (2245kB/s), 2192KiB/s-2192KiB/s (2245kB/s-2245kB/s), io=16.0MiB (16.8MB), run=7496-7496msec
F2FS FS on eMMC, without encryption nor compression
Result:
- READ: bw=11.1MiB/s (11.6MB/s), 11.1MiB/s-11.1MiB/s (11.6MB/s-11.6MB/s), io=47.0MiB (50.3MB), run=4324-4324msec
- WRITE: bw=3800KiB/s (3891kB/s), 3800KiB/s-3800KiB/s (3891kB/s-3891kB/s), io=16.0MiB (16.8MB), run=4324-4324msec
F2FS FS on eMMC, with encryption and no compression
Result:
- READ: bw=7526KiB/s (7706kB/s), 7526KiB/s-7526KiB/s (7706kB/s-7706kB/s), io=47.0MiB (50.3MB), run=6525-6525msec
- WRITE: bw=2518KiB/s (2579kB/s), 2518KiB/s-2518KiB/s (2579kB/s-2579kB/s), io=16.0MiB (16.8MB), run=6525-6525msec
F2FS FS on eMMC, with compression and without encryption
Test easily compressed data. Result: best out of 3 runs.
mkdir -p compressed mkdir -p noncompressed chattr -R +c -V compressed/ chattr -R -c -V noncompressed/ yes easy-to-compress-string | dd of=compressed/zero bs=4098 count=50000 conv=fsync 204863118 bytes (205 MB, 195 MiB) copied, 4.13678 s, 49.5 MB/s yes easy-to-compress-string | dd of=noncompressed/zero bs=4098 count=50000 conv=fsync 204886284 bytes (205 MB, 195 MiB) copied, 11.7659 s, 17.4 MB/s
Same test with difficult to compress data: compression does not increase performance
cat /dev/urandom | dd of=compressed/zero bs=4098 count=50000 conv=fsync 204800032 bytes (205 MB, 195 MiB) copied, 14.2572 s, 14.4 MB/s cat /dev/urandom | dd of=noncompressed/zero bs=4098 count=50000 conv=fsync 204800032 bytes (205 MB, 195 MiB) copied, 13.313 s, 15.4 MB/s
ext4 on SD card
Result:
- READ: bw=2595KiB/s (2657kB/s), 2595KiB/s-2595KiB/s (2657kB/s-2657kB/s), io=47.0MiB (50.3MB), run=18924-18924msec
- WRITE: bw=868KiB/s (889kB/s), 868KiB/s-868KiB/s (889kB/s-889kB/s), io=16.0MiB (16.8MB), run=18924-18924msec
ext4 on SD card (Sandisk extreme 128G A2 U3)
Result:
- READ: bw=4439KiB/s (4546kB/s), 4439KiB/s-4439KiB/s (4546kB/s-4546kB/s), io=47.0MiB (50.3MB), run=11061-11061msec
- WRITE: bw=1486KiB/s (1521kB/s), 1486KiB/s-1486KiB/s (1521kB/s-1521kB/s), io=16.0MiB (16.8MB), run=11061-11061msec