Page 1 of 1

Simple questions about SPIFFS wear levelling

Posted: Wed Oct 30, 2019 9:50 pm
by jsam589
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!

Re: Simple questions about SPIFFS wear levelling

Posted: Fri Mar 27, 2020 3:56 am
by anh7codon
same question

Re: Simple questions about SPIFFS wear levelling

Posted: Sat Oct 10, 2020 7:12 pm
by FoxTerrier
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 ???

Re: Simple questions about SPIFFS wear levelling

Posted: Thu Oct 22, 2020 9:56 am
by doglike
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