Skip to content

LittleFS is terribly slow at saving settings (partial file rewrite) #7271

Closed
@TD-er

Description

@TD-er

As also mentioned before in #5932
I have now changed the code in ESPEasy to be able to switch between SPIFFS and LittleFS using a single define (or simply changing the PIO env label). See: letscontrolit/ESPEasy#3052
So I will now be testing LittleFS a lot on my test environments.

The read speed of Little FS is a lot (!!) faster than SPIFFS, but the write speed of our settings is awfully slow.
Saving settings:

  • 67 msec on SPIFFS
  • 2285 msec on LittleFS.

During write the node is completely blocked, so this is unacceptable slow.
The settings file we have is way too large to keep in memory.
I only update a part in the file (always start at multiple of 1k block in the file).

I would like to know what would be the best approach for fixing this as SPIFFS was unusable slow for larger file systems (> 1 MB), but this is really unusable slow for writes. (updates in a file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions