← index

Per-peer memory usage

An archive of delvingbitcoin.org · view original topic →

amiti · #1 ·

This is a thread to discuss the memory usage of peers.

Interesting things:

Memory monitoring:

this graph shows memory usage broken down by max & current, for connections with relay enabled or not. y axis: number of bytes, x axis: different nodes.

Warnet:

Warnet can help us observe different network conditions. Here are some questions I’m curious about, where I think warnet can create/isolate behaviors we sometimes see:

Do you have more ideas? :slight_smile:

0xB10C · #2 ·

Thanks for sharing this! I think the labels for max_no_relay and cur_no_relay are mixed up (max is lower than current memory usage). If I’m reading this correctly it’s just below 1 MB per full-relay peer?

Curious about this too! I’m seeing more than a 100 connections per minute to a few of my nodes. I’m wondering when the memory allocations are made. When the peer connects or during connection lifetime. I think observing memory usage over time would be interesting here too!

Anthony Towns · #3 · · in reply to #2

The maximums in that graph counts just the Peer memory usage; the current counts both Peer and CNode

mzumsande · #4 ·

Looks great! Even though the analysis isn’t complete yet (some field not yet accounted for as you mention), I’m just trying to come up with a few high-level takeaways so far.

Does this make sense? Any important takeaways so far that I am missing?