Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement/track producedblock allocations #337

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

grooviegermanikus
Copy link
Collaborator

@grooviegermanikus grooviegermanikus commented Feb 22, 2024

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