-->
Page 1 of 1

spiffs write limit

PostPosted: Wed Oct 21, 2020 4:10 pm
by h16bill
I am using an esp-01 with 1mb flash. I am writing time and temperature data to a file in the spiffs filesystem every two minutes. Each entry is 18 bytes and after the file reaches 16kb I start replacing entries in the file. So can I depend on write leveling to distribute the 10,000 writes over the whole 1mb? Ideally the calculation would be:
(1048576 / 18) * 10,000 = 582542222 writes. so with a write every two minutes that comes out to 2216 years.

Is this realistic? Or is it going to write a whole block every time I write?

Thanks in advance for any insight.