Garbage Collector memory leak
-
Hi, why does running gc.mem_free() consume RAM?
>>> import gc >>> gc.mem_free() 64384 >>> gc.mem_free() 64288 >>> gc.mem_free() 64224 >>> gc.mem_free() 64160(sysname='LoPy', nodename='LoPy', release='1.6.13.b1', version='v1.8.6-607-g9c8a0e9e on 2017-05-01', machine='LoPy with ESP32', lorawan='1.0.0') -
@Andrea-Filippini
if you run this by telnet
than telnet allocate list of previously runned commands and this consume RAM.
Run the same throught COM port and see if there is a difference -
@livius I was running over USB. I think that what you say is a big memory waste, I really hope you're in mistake
-
@Andrea-Filippini
If this is in COM then it is interested
What firmware version - i rememer that i tested this before and all was okos.uname()I think that what you say is a big memory waste, I really hope you're in mistake
Why? It is telnet - you can press up/down arrows and rerun the comands
-
@livius We are in an embedded environment with low RAM resources, I'm not happy to share precious memory for telnet functions =)
-
@Andrea-Filippini
If you are using telnet than it operate
if not nothing is consumed
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login