Skip to content

Improvement/track producedblock allocations#337

Open
grooviegermanikus wants to merge 13 commits into
mainfrom
improvement/track-producedblock-allocations
Open

Improvement/track producedblock allocations#337
grooviegermanikus wants to merge 13 commits into
mainfrom
improvement/track-producedblock-allocations

Conversation

@grooviegermanikus

@grooviegermanikus grooviegermanikus commented Feb 22, 2024

Copy link
Copy Markdown
Collaborator

How it works

When creating the struct ProducedBlock a WeakRef to the Arc is stored in a global vector.

Vector will be cleaned up from freed entries after exceeding 100 freed entries.

Configure Logging

configure RUST_LOG:

solana_lite_rpc_core::debug_allocations=debug

Log output

2024-02-22T17:35:07.916505Z DEBUG produced_block_inspect_refs: solana_lite_rpc_core::debug_allocations: refs helt on ProducedBlock: live: 42, freed: 14, p50=8391.6ms, p95=16786.1ms, max=24099.4ms

@grooviegermanikus grooviegermanikus marked this pull request as ready for review February 22, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant