Skip to content

Mention use-cases and caveats in the README #351

Open
@rumpeltux

Description

@rumpeltux

Thanks for the interesting project!
I came here looking for a filesystem that I could use in my MCU.
This project seemed to be what I was looking for. Note that I use a SDHC card for datastorage.

Only after integrating littlefs in my code and experimenting I learned that the project is not a good fit because:

  • littlefs is probably not design for large files (per some bug reports, e.g. File append is not working after n cycles or 2000 bytes of data in NAND flash #188 though DESIGN.md suggests otherwise?)
  • the updatable metadata blocks seem to assume that overwriting flash doesn't impose wear as long as only 1s are changed to zeros and no delete occurs. I don’t think this is true for sdcards though (after delete a sector is filled with 0), they probably do internal wear leveling? So if a block is overwritten each time anyways, keeping unchanged data seems a waste of space.

So it would be good to indicate in the README.md file what good usage patterns are and which usage patterns don't work or have performance issues.

While here, the example given in README.md also uses a very small blocksize (32 bytes) and so I’m wondering what the RAM requirement effects are when changing this (e.g. to 512bytes for standard sd cards).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions