SPIFFS vs FATFS write speed

davdav
Posts: 208
Joined: Thu Nov 17, 2016 2:33 pm

SPIFFS vs FATFS write speed

Postby davdav » Thu Jul 12, 2018 8:37 am

Hi everybody,

I need to write a lot (around 1000) of small files (100 bytes each). I'm currently using FATfs components and wear-leaveling.
It takes a long time to write them (more than 10minutes).

I wonder if SPIFFS could be more quick respect to FATFS or is there a low level method to write in flash directly but we the possibility to use a filesystem to open and read the files after the transfer has been completed.

Is it possible or is there any documentation/examples to check?

Thanks

jerome
Posts: 37
Joined: Wed Jan 23, 2019 2:28 pm

Re: SPIFFS vs FATFS write speed

Postby jerome » Mon Mar 11, 2019 10:00 am

Hi
I'm wondering if you found an answer to this ?
I've the same question :-)
Thanks
Jerome

phatpaul
Posts: 110
Joined: Fri Aug 24, 2018 1:14 pm

Re: SPIFFS vs FATFS write speed

Postby phatpaul » Mon Apr 01, 2019 4:52 pm

I've found in my experience FatFs (plus wearleveling) to be faster than SPIFFS.

But I really wan't to try LittleFS.

Here's an interesting benchmark.
https://github.com/RIOT-OS/RIOT/pull/8316
Opening/writing 4000B/closing a file is about 8 times faster with littlefs than with spiffs
Opening/reading 4000B/closing a file is about 5 times faster with littlefs than with spiffs
Formatting is about 500 times faster with littlefs than with spiffs
Mounting is about 60 times faster with littlefs than with spiffs

Who is online

Users browsing this forum: Corand, Google [Bot] and 157 guests