[Minor issue] getmemoryinfo returns 0 memory used #9896

issue stefment opened this issue on March 1, 2017
  1. stefment commented at 2:41 AM on March 1, 2017: none

    Hi Bitcoin Core. I was going through the relase notes today to try the various new things. I noticed that getmemoryinfo returns 0 which i thought was suspicious. However everything seems to be working fine and the node runs without issue. However its only online between 10-15hours per day.

    Describe the issue

    trying the new getmemoryinfo command, and it returns 0 memory used

    Can you reliably reproduce the issue?

    Yes. I tired restarting and the result was the same.

    If so, please list the steps to reproduce below:

    1. Type getmemoryinfo in debug console
    2. Read the output :)
    3. Profit

    Expected behaviour

    I am expecting it to match the memory used according to windows resource manager..

    Actual behaviour

    It returns 0

    Screenshots.

    image

    (662.968 Kb allocated)

    `

    03:31:31  getmemoryinfo

    03:31:31  { "locked": { "used": 0, "free": 262144, "total": 262144, "locked": 0, "chunks_used": 0, "chunks_free": 1 } } `

    What version of bitcoin-core are you using?

    Bitcoin Core 0.14rc2 win64

    Machine specs:

    • OS: Windows 10 64bit home

    Additonal info

    I am running the node with standard settings and no fancy startup arguments etc.

    I hope this report can be of some use, if not i apologise. Im still trying to wrap my head around this thing. Have a nice day.

  2. fanquake added the label Docs and Output on Mar 1, 2017
  3. fanquake added the label RPC/REST/ZMQ on Mar 1, 2017
  4. stefment renamed this:
    getmemoryinfo returns 0 memory used
    [Minor issue] getmemoryinfo returns 0 memory used
    on Mar 1, 2017
  5. benma commented at 7:50 AM on March 1, 2017: none

    The docs say:

    Information about locked memory manager

    So this is not about the full memory used by bitcoind, but the locked memory.

    I am not quite sure where locked memory is used. After a quick grep session it seems like the wallet and its keys/encryption use that.

    Are you using the wallet?

    Edit: info about locked memory:

    * To avoid sensitive key data from being swapped to disk, the memory in this pool
    * is locked/pinned.
    
  6. laanwj commented at 9:22 AM on March 1, 2017: member

    Yes, there is only locked memory information in there at the moment. This is only used by the wallet.

    It would be nice to have general dynamic heap information in there but that's not implemented.

  7. laanwj commented at 9:33 AM on March 20, 2017: member

    PR #10038 adds a mode to get general heap statistics, though I think that method works on Linux only.

  8. MarcoFalke removed the label Docs on Dec 25, 2017
  9. MarcoFalke commented at 10:23 PM on April 26, 2020: member

    The feature request didn't seem to attract much attention in the past. Also, the issue seems not important enough right now to keep it sitting around idle in the list of open issues.

    Closing due to lack of interest. Pull requests with improvements are always welcome.

  10. MarcoFalke closed this on Apr 26, 2020

  11. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me