docs(grpc-data): re-measure per-condition memory with GC memory info (#929)

The X0 node-only harness used a GC.GetTotalMemory(true) delta, which on .NET 10
counts committed-but-free GC regions. Switched it to the L2 Measure() method
(full blocking GC, HeapSizeBytes - FragmentedBytes, settled working set):
79,085 B heap / ~90 KB WS per OffNormal condition (GetTotalMemory still reads
158,169 B, reproducing the old 160,997). Plan 5.5, X0/A3/A4-docs evidence and the
BytesPerCondition comment corrected; the default (160,000 B from the L2
in-server worst case) is unchanged.
This commit is contained in:
Joseph Doherty
2026-11-28 09:13:48 -05:00
parent 05f431f5d8
commit cb672ea060
6 changed files with 58 additions and 23 deletions
@@ -93,7 +93,7 @@ public sealed record ProjectedConditionOptions(TimeSpan Linger, int MaxImportedC
/// <summary>
/// Retained managed bytes per imported condition, measured by the A3 L2 harness (1,000 conditions in one mapping on a
/// running SDK 2.0.1 server: node + children + ids + registry/indexes + EventId registry + verdict cache; X0's
/// node-only harness measured 160,997). A3b review S5: the WORST case — two placements, every EventId slot, three
/// node-only harness retains 79,085 B on the same method, #929 — its original 160,997 was a <c>GC.GetTotalMemory</c> delta). A3b review S5: the WORST case — two placements, every EventId slot, three
/// event items, the runner's Live + Buffer records. A3 review round 2: measured with the retained heap
/// (<c>GCMemoryInfo</c>, not <c>GC.GetTotalMemory</c>, which counted ~125 MiB of committed-but-free regions) and the
/// settled working set, 8 EventId slots (§5.6): max of three runs = 158,629 B (working set; heap 111,715 B), rounded up.