Skip to content

Question: expected resource usage for lnd #910

@brndnmtthws

Description

@brndnmtthws

I've noticed the resource usage (CPU and mem) seem rather high for lnd. Far higher than bitcoind or parity, for example. Given that the number of transactions passing through my lnd node is ~0 on average, this doesn't make much sense to me. I'd be worried about the scalability implications if this is how much compute is required for an idle node.

Is this expected? Have I encountered a bug?

brenden@instance-5:~$ sudo docker exec -it lnd /bin/bash
root@instance-5:/lnd# lncli getinfo
{
    "identity_pubkey": "0327049d8d63f0c40193cdf3afc61817c8647808a4e482de0716fcef74e6d92ebf",
    "alias": "FederalReserve",
    "num_pending_channels": 0,
    "num_active_channels": 6,
    "num_peers": 14,
    "block_height": 514535,
    "block_hash": "0000000000000000000d5c6d4c9561d8a58c4052a58b9ea36400323ae5db6f55",
    "synced_to_chain": true,
    "testnet": false,
    "chains": [
        "bitcoin"
    ],
    "uris": [
        "0327049d8d63f0c40193cdf3afc61817c8647808a4e482de0716fcef74e6d92ebf@35.184.46.254:9735"
    ],
    "best_header_timestamp": "1521640825"
}
root@instance-5:/lnd#

Here's a portion of my lnd log: https://gist.github.com/brndnmtthws/303b320e0ea98578f3af5a89d5b6df61

screen shot 2018-03-21 at 09 57 40

The sample period for the screenshot above is 5s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    resource usageSoftware resource usage improvements/issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions