raspberrypi-ui / agnostics

24 stars 15 forks source link

sd_bench.fio: update to exercise A2 cards more effectively #18

Closed P33M closed 3 months ago

P33M commented 3 months ago

On Pi 5, Apps Class A2 cards are supported which have deep IO queues. Increase the depth that FIO uses accordingly, and extend the test file size to 256M to match the specification's benchmark conditions.

On older platforms or non-A2 cards, blk_mq will simply buffer the additional I/O without much overhead.

Also for some reason the file was DOS format.

@spl237 - as far as I know there's no plan to change the default recommendation for A1 for everything but Pi 5, but some hackery might be required to extract "am I using an A2 card on Pi 5" and use A2 minimums instead.