B1645 Roon 2.65 : RAM usage feedback

This is my RAM usage over the last 48 hours, which includes the update to B1647

Update was yesterday morning - pre update RAM usage was approx. 7GB
This dropped to approx 3GB post update - but without an scheduled task being undertaken
There was a small increase with some playback in the evening.
Then during the ‘Scheduled Activity’ period (2am - 6am) memory usage peaked over 10GB and then stablised at 10GB.
This previously was 15GB pre B1647

When I asked for a split between Managed and Unmanaged memory

When asked about GC activities

The analysis is that

  1. GC activity increases after memory growth begins
  • GC % stays very low during the stable period (~04/09)

  • It rises noticeably only when memory starts climbing hard (04/10)

:backhand_index_pointing_right: Interpretation:
GC is reacting to pressure, not causing it.


2. No correlation between GC and unmanaged growth

  • The huge rise in unmanaged memory:

    • happens independently of GC %

    • continues even when GC % stabilizes

:backhand_index_pointing_right: Key point:
GC does nothing for unmanaged memory, so this fits perfectly.


3. GC pause spikes lag behind memory spikes

  • In the second chart:

    • Large GC pauses (hundreds of ms) appear after memory ramps up
  • Especially during the volatile period early 04/10

:backhand_index_pointing_right: Interpretation:

  • Managed heap is getting stressed because of overall memory pressure

  • Likely due to:

    • fragmentation

    • allocation pressure from native interop


4. Managed memory vs GC

  • Managed memory rises moderately before GC activity increases

  • Then:

    • GC % increases

    • Managed memory stabilizes

:backhand_index_pointing_right: This is exactly what you’d expect from a **healthy GC responding to load
**