Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Garbage Collector memory leak

    Scheduled Pinned Locked Moved LoPy
    lopygarbagecollectomemory leakram
    6 Posts 2 Posters 1.8k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Andrea Filippini
      last edited by Andrea Filippini

      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')

      L 1 Reply Last reply Reply Quote 1
      • L Offline
        livius @Andrea Filippini
        last edited by

        @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

        think about people first, then computers

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          Andrea Filippini @livius
          last edited by

          @livius I was running over USB. I think that what you say is a big memory waste, I really hope you're in mistake

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            livius @Andrea Filippini
            last edited by

            @Andrea-Filippini
            If this is in COM then it is interested
            What firmware version - i rememer that i tested this before and all was ok

            os.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

            think about people first, then computers

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              Andrea Filippini @livius
              last edited by Andrea Filippini

              @livius We are in an embedded environment with low RAM resources, I'm not happy to share precious memory for telnet functions =)

              L 1 Reply Last reply Reply Quote 0
              • L Offline
                livius @Andrea Filippini
                last edited by

                @Andrea-Filippini
                If you are using telnet than it operate
                if not nothing is consumed

                think about people first, then computers

                1 Reply Last reply Reply Quote 0

                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
                • 1 / 1
                • First post
                  Last post

                Pycom on Twitter

                Pycom