Skip to content

Log state rebuild timings on startup - #5179

Merged
marta-lokhova merged 1 commit into
stellar:masterfrom
marta-lokhova:inMemoryLogging
Mar 13, 2026
Merged

marta-lokhova merged 1 commit into
stellar:masterfrom
marta-lokhova:inMemoryLogging

Conversation

@marta-lokhova

@marta-lokhova marta-lokhova commented Mar 12, 2026 •

Copy link
Copy Markdown
Contributor

Add some helpful logging, as there's been some confusion lately regarding what's taking so long during startup.

2026-03-12T16:32:55.493 GCHRX [default INFO] Compiled 1695 contracts (52706541 bytes of Wasm) in 179ms real time, 887ms CPU time
2026-03-12T16:32:55.495 GCHRX [Perf INFO] Populating in-memory Soroban state from LCL for ledger [seq=1471103, hash=c91328]
2026-03-12T16:32:57.164 GCHRX [Perf INFO] Populated in-memory Soroban state in 1.670 sec
2026-03-12T16:32:57.164 GCHRX [Perf INFO] Startup state load took 4.497 sec (full=true)

Copilot AI review requested due to automatic review settings March 12, 2026 23:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds lightweight startup performance logging to help quantify how long it takes Stellar Core to rebuild/assume in-memory ledger and Soroban state during LedgerManagerImpl::loadLastKnownLedgerInternal.

Changes:

  • Log the time spent running AssumeStateWork when assuming bucket state for LCL.
  • Log the time spent populating the in-memory Soroban state.
  • Log the total wall-clock time spent in loadLastKnownLedgerInternal (reported as “in-memory state rebuild”).

@marta-lokhova
marta-lokhova force-pushed the inMemoryLogging branch 3 times, most recently from 285eb96 to 42bdc6b Compare March 12, 2026 23:19
@marta-lokhova
marta-lokhova enabled auto-merge March 12, 2026 23:19

@graydon graydon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@marta-lokhova
marta-lokhova added this pull request to the merge queue Mar 13, 2026
Merged via the queue into stellar:master with commit 4a759ec Mar 13, 2026
48 of 51 checks passed
@marta-lokhova
marta-lokhova deleted the inMemoryLogging branch March 13, 2026 00:41
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.

4 participants