Page 2 of 2

Re: FatFS performance

Posted: Wed Nov 14, 2012 9:43 pm
by Tectu
Just for my personal list of good-working-SD-cards: What for an SD card do you have? Manufacturer, class, size etc. (maybe a attach a picture).


~ Tectu

Re: FatFS performance

Posted: Fri Nov 16, 2012 10:57 pm
by skute
I don't have exact benchmarks on hand, but the fatfs is capable of fast r/w (see http://elm-chan.org/fsw/ff/img/rwtest2.png)

Also, to increase write speed, you need to minimize disk reads/cluster allocation. To do this you should pre-allocate the fat clusters with f_lseek.
See http://elm-chan.org/fsw/ff/en/lseek.html

Also, to achieve maximum throughput on the sd card, you should be writing multiple blocks at a time.
Ideally, you want to write an erase block size at a time.