Simple questions about SPIFFS wear levelling

jsam589
Posts: 74
Joined: Sat Aug 17, 2019 9:31 pm

Simple questions about SPIFFS wear levelling

Postby jsam589 » Wed Oct 30, 2019 9:50 pm

1. I have defined two SPIFFS partitions on main SPI flash. One is sized at 1 MByte. The other is sized at 5 MByte. When I call esp_spiffs_info() after creating them, they report sizes about ~10% smaller than their total partition size. Is this the amount used for managing the file system and tracking wear levelling?

2. Is wear levelling enabled automatically for SPIFFS? Documentation suggests that it is, but if not, what is needed to activate it for SPIFFS?

Thanks!

anh7codon
Posts: 2
Joined: Wed Mar 25, 2020 7:45 am

Re: Simple questions about SPIFFS wear levelling

Postby anh7codon » Fri Mar 27, 2020 3:56 am

same question

FoxTerrier
Posts: 3
Joined: Tue Sep 22, 2020 12:43 pm

Re: Simple questions about SPIFFS wear levelling

Postby FoxTerrier » Sat Oct 10, 2020 7:12 pm

same question here.
i remark than after many (100+) delete/write files on spiffs, system become very slow and sometime corrupt files.
nowhere i found info about garbage collection (how it work), consistency check, or other.
only solution to recover good spiffs work/speed is to format spiffs partition...
who can help/answer/advice ???

doglike
Posts: 63
Joined: Fri Aug 18, 2017 4:21 pm

Re: Simple questions about SPIFFS wear levelling

Postby doglike » Thu Oct 22, 2020 9:56 am

SPIFFS becomes corrupt very fast, if something unexpected happens (eg. power-off during access).
It also becomes very slow at a filling level @ ~50%.

I also spend days after days with this issues and testing around with SPIFFS and FATFS. For me the best solution was to migrate to LITTLEFS.

https://www.esp32.com/viewtopic.php?f=13&t=10267

Who is online

Users browsing this forum: No registered users and 94 guests