spiffs
spiffs copied to clipboard
scaling as filesystem fills
Hi. I'm (apparently, according to this doc) using SPIFFS 0.3.7 with my nodemcu and Arduino.
I have the 4MB flash on my nodemcu configured for a 3MB SPIFFS.
I had some scaling problems (writes taking quite long) with writing files in the 2MB range so I refactored my sketch to break that file up into smaller files of 100KB -- that is, as a file reaches 100KB, close it and open another1 hoping the problem was just with larger files.
I'm finding that even this is running into scaling problems. As the number of files grows (so really, just the used capacity of the filesystem grows) I continue to run into issues where each write takes a few thousand milliseconds. This doesn't happen when the filesystem is empty.
I was hoping this scaling problem was just with larger files not with larger filesystem usage but alas, that doesn't seem to be the case sadly.
Is this to be expected with SPIFFS, even at such relatively small scales (i.e. I am nowhere near the ~128MB discussed in the Features section of the README.md
1: So, yeah, that means when trying to read or delete, etc. I have to stitch the file back together in my sketch. :-( ↩