Page 1 of 1

SPIFFS: default example gives wrong info about partition sizes

Posted: Wed Sep 18, 2019 3:28 pm
by newsettler_AI
Hi,

I'm using next example:

https://github.com/espressif/esp-idf/tr ... age/spiffs

My default output:

Code: Select all

example: Initializing SPIFFS
example: Partition size: total: 896321, used: 502
Size of partition havent strictly defined, but why couple files with size ~15 bytes cunsumes 502 bytes?
I know that filesystem reqires some extra space for internal needes, but isn't that too much, more then x10 of files size itself?


And second question.

I have strictly define size of spiffs partition:

Code: Select all

# Name,   Type, SubType, Offset,  Size,     Flags
nvs,      data, nvs,     0x9000,   0x6000,
phy_init, data, phy,     0xf000,   0x1000,
factory,  app,  factory, 0x10000,  0x170000,
storage,  data, spiffs,  0x180000, 0x270000,
0x270000 = ‭2555904‬ bytes.

but here is output:

Code: Select all

example: Initializing SPIFFS
example: Partition size: total: 2342081, used: 502
2342081 = 0x‭23BCC1‬

Where from comes this number and what does it actually show?

Re: SPIFFS: default example gives wrong info about partition sizes

Posted: Wed Sep 18, 2019 6:46 pm
by WiFive
https://github.com/pellepl/spiffs/blob/ ... /TECH_SPEC

92% of your partition usable for data