SPIFFS minimum file size
Posted: Sat Sep 24, 2016 6:56 am
Hi All,
I'm using es8266 arduino with spiffs (FS.h) (1M Flash with 256K SPIFFS) and I noticed that every file allocates 502 bytes memory even if the file is 8 bytes long.
I have 8 bytes long files but every single file covers 502 bytes.
How to reduce that offset or configure for the best?
The "usedBytes" comes from;
The other parameters of FSInfo with 10 files in FS is like below:
I'm using es8266 arduino with spiffs (FS.h) (1M Flash with 256K SPIFFS) and I noticed that every file allocates 502 bytes memory even if the file is 8 bytes long.
I have 8 bytes long files but every single file covers 502 bytes.
How to reduce that offset or configure for the best?
2 files -> "usedBytes":"1004"
4 files -> "usedBytes":"2008"
6 files -> "usedBytes":"3012"
8 files -> "usedBytes":"4016"
10 files->"usedBytes":"5020"
The "usedBytes" comes from;
Code: Select all
FSInfo fs_info;
SPIFFS.info(fs_info);
The other parameters of FSInfo with 10 files in FS is like below:
Code: Select all
{"totalBytes":"233681","usedBytes":"5020","blockSize":"4096","pageSize":"256","maxOpenFiles":"5","maxPathLength":"32","FreeSketchSpace":"458752"}