mem.info()s max free sz meaning? #14070
Unanswered
kjm1102
asked this question in
Using MicroPython
Replies: 1 comment 4 replies
-
It's the number of blocks in the largest contiguous run of free blocks. See more details here https://github.com/orgs/micropython/discussions/11997 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting memory allocation errors when I try to put ~20kb files into ram. So I'm trying to decipher mem.info() to figure out where the problem is.
This says 187056k free in 181 lines (the dots) that look contiguous each line presumably 187056/181=~1k, Next I try to reserve 20k of ram
Yep, that makes sense, 20k less memory than before. But I can't figure out what max free sz means? It's hardly changed? To me the max free sz should be the largest number of contiguous lines multiplied by the ~1k bytes/line? Can someone enlighten me?
Beta Was this translation helpful? Give feedback.
All reactions