Filesystem Max Writes - Does MicroPython manage dynamic wearing?
Posted: Mon Jun 21, 2021 3:34 am
I'm doing some data logging to the filesystem on a ESP32 running MicroPython and I have some concerns about destroying the flash storage.
I've read that the ESP32 can support 100,000 writes before it starts to degrade blocks of flash storage. I looked at the different filesystems that MicroPython supports on the ESP32: FAT and littlefs v2
https://docs.micropython.org/en/latest/ ... ystem.html
From the Readme of littlefs v2 it looks like it doesn't overwrite the same blocks over and over again to move evenly wear the storage on the chip, they call it Dynamic Wear Leveling.
https://github.com/littlefs-project/littlefs
What filesystem does Micropython use by default on the ESP32?
Does FAT provide any Dynamic Wear Leveling? What if I keep creating new log files and then delete the oldest logs after space fills up? Will it wear evenly then?
Thanks!
-Ben
I've read that the ESP32 can support 100,000 writes before it starts to degrade blocks of flash storage. I looked at the different filesystems that MicroPython supports on the ESP32: FAT and littlefs v2
https://docs.micropython.org/en/latest/ ... ystem.html
From the Readme of littlefs v2 it looks like it doesn't overwrite the same blocks over and over again to move evenly wear the storage on the chip, they call it Dynamic Wear Leveling.
https://github.com/littlefs-project/littlefs
What filesystem does Micropython use by default on the ESP32?
Does FAT provide any Dynamic Wear Leveling? What if I keep creating new log files and then delete the oldest logs after space fills up? Will it wear evenly then?
Thanks!
-Ben