Writing to internal flash with LittleFS (v2) is extremely slow. #17631
Replies: 2 comments 11 replies
-
On a Pyboard 1.1 the first test runs in 193ms, the last 462ms. I tested using |
Beta Was this translation helpful? Give feedback.
-
@saraverbeecke is this test running on a freshly formatted filesystem, or have you been using the board for a while already? LFS2 can get fragmented which can slow it down significantly. Also if the filesystem starts to fill up lfs gets really slow, I generally try to ensure my lfs filesystems have more than 20% free otherwise they get incredibly slow. Oh I see your other comment now saying you did just format it. I'm not sure what the flash page size is in that micro but it might be quite large, meaning lots needs to be cached into ram to be able to make small changes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When using Micropython 1.25 on a stm32h743 nucleo board with LittleFS (v2). Writing a file to the internal flash seems to be very slow... it takes minimum around 2.5s to write a few hundred bytes.
Any ideas to speed up the writing process?
Thanks!
256
raw write: 2704 ms
512
raw write: 2707 ms
1024
raw write: 2727 ms
4096
raw write: 2710 ms
16384
raw write: 2678 ms
65536
raw write: 2534 ms
Beta Was this translation helpful? Give feedback.
All reactions