Skip to content

Investigate memory usageΒ #103

@Frando

Description

@Frando

We have some reports that iroh-gossip consumes increasing amount of memory over time.

I pushed a branch for investigation https://github.com/n0-computer/iroh-gossip/tree/Frando/mem-usage
It has a memory-peak example
Build with cargo build --example memory-peak --release
And then run heaptrack ./target/release/examples/memory-peak to profile the memory usage.
Results so far are inconclusive: Heaptrack indicates increasing use over time, with only the caches being hot on allocations (as expected), however the debug logs in that branch above show that the size of these cache hashmaps settles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions