-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Every write triggers block erase #581
Comments
@davidk88 Did you solved your problem ? |
No, I did not use littleFS then. |
Hi @davidk88, yes each append requires a full rewrite of the block when you sync the file. Two mechanisms that avoid this:
There was some discussion previously about expanding the inline mechanism to also store small appends to files, in order to avoid this rewrite cost in some cases, but it would add quite a bit of complexity to the internal file logic. I'd like to explore it but it's relatively medium priority[1] at the moment. [1] there are enough high priority tasks that medium priority should not be expected any time soon, unfortunately, unless someone contributes an implementation. |
Hi,
I'm using release littleFS 2.4.1
is it normal that every (append) write triggers new block erase and all data from previous block is copied to a new block. This happens if file is opened-written-closed or open all the time and only written and synced after write. Every write is just around few 10 bytes. And only when file is outlined.
Operations starting to get very long after file reaches a few kilobytes.
I'm using 16MB flash with 64K erase block.
Thank you
The text was updated successfully, but these errors were encountered: