FatFS performance

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: FatFS performance

Post 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
skute
Posts: 64
Joined: Wed Aug 29, 2012 10:17 pm

Re: FatFS performance

Post 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.
Post Reply