Skip to content

smp-server: memory usage analysis#1739

Open
shumvgolove wants to merge 8 commits intorcv-servicesfrom
sh/memory
Open

smp-server: memory usage analysis#1739
shumvgolove wants to merge 8 commits intorcv-servicesfrom
sh/memory

Conversation

@shumvgolove
Copy link
Collaborator

No description provided.

@shumvgolove shumvgolove force-pushed the sh/memory branch 2 times, most recently from ceed3b5 to 3a98bc9 Compare March 19, 2026 07:28
@shumvgolove shumvgolove changed the base branch from master to rcv-services March 19, 2026 07:29
Log sizes of all in-memory data structures every 5 minutes
to help identify memory growth root cause on busy servers.
Add clientSubs, clientSndQ, clientMsgQ, clientThreads counts
and GHC RTS large objects, compact, fragmentation metrics
to identify memory growth not explained by server-level maps.
Layered benchmark that isolates per-component memory cost:
- Phase 1: baseline (no clients)
- Phase 2: TLS connections only
- Phase 3: queue creation (NEW + KEY)
- Phase 4: subscriptions (SUB)
- Phase 5: message send
- Phase 6: message receive + ACK
- Phase 7: sustained load with time-series

Includes Docker Compose (PostgreSQL 17), run.sh with
--compare-rts mode for testing different GC configurations.
Build benchmark binary inside container via multi-stage
Dockerfile. All-in-one: docker compose run bench.
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