Peer-observer: A tool and infrastructure for monitoring the Bitcoin P2P network for attacks and anomalies

May 4 - May 4, 2026

  • The ongoing experiments with continuous profiling on hosting nodes provide significant insights, particularly in troubleshooting and analyzing performance issues such as those arising during DoS attacks.

This method pinpoints the functions where most time is spent, enabling targeted investigation of problematic code paths. Data from these profiles is retained for several days, thus offering a retrospective analysis capability over a chosen time frame.

One of the tools currently employed is Parca, which is favored due to its seamless integration with Grafana, enhancing visualization capabilities. An alternative tool under consideration is wprof, which, despite not integrating with Grafana, supports data storage in Perfetto files that can be analyzed later. Another possibility being explored involves developing a custom callstack extractor specifically for Bitcoin Core. This solution would avoid system-wide profiling, focusing exclusively on Bitcoin Core, potentially providing more tailored insights as outlined in the discussion on peer observer GitHub issue #391.

The use of Grafana-based tools like Parca has resulted in detailed visual representations such as flamegraphs, which map out the time allocation across different functions within Bitcoin Core, offering a clear visual understanding of performance bottlenecks. This approach not only aids in quick diagnostics during incidents but also helps in continuous performance optimization.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback