e42.uk Circle Device

 

Quick Reference

Benchmarking SSD and SD Card with fio

Benchmarking SSD and SD Card with fio

Benchmarking a Samsung 128GiB Endurance SD Card with fio:

mkfs.ext4 -O ^has_journal /dev/mmcblk0p1
mount /dev/mmcblk0p1 /mnt/mmcblk0p1
fio -loops=5 --size=4096m --filename=/mnt/mmcblk0p1/fiotest.tmp --stonewall \
    --ioengine=libaio --direct=1 \
    --name=Seqread --bs=1m --rw=read \
    --name=Seqwrite --bs=1m --rw=write \
    --name=512Kread --bs=512k --rw=randread \
    --name=512Kwrite --bs=512k --rw=randwrite \
    --name=4kQD32read --bs=4k --iodepth=32 --rw=randread \
    --name=4kQD32write --bs=4k --iodepth=32 --rw=randwrite

Results

After quite a long time...

READ: bw=74.8MiB/s (78.5MB/s), 74.8MiB/s-74.8MiB/s (78.5MB/s-78.5MB/s), io=20.0GiB (21.5GB), run=273655-273655msec
WRITE: bw=45.2MiB/s (47.4MB/s), 45.2MiB/s-45.2MiB/s (47.4MB/s-47.4MB/s), io=20.0GiB (21.5GB), run=453177-453177msec

Above is just the Seqread and Seqwrite but from these results the card is close to the speeds quoted on the pack:

front of samsung endurance packet

back of Samsung Endurance Packet

(for those of us who cannot recognise Chinese (or Kanji) characters, that is 100MB/s and 30MB/s.

References

Quick Links: Techie Stuff | General | Personal | Quick Reference