Skip to content

op-reth/bench-proofs-persistence.1

@jelias2 jelias2 tagged this 10 Nov 23:32
Add two flags for tuning the proofs-history engine's persistence, both
defaulting to current behavior:

- `--proofs-history.persistence-threshold` (default 5, 1 to 10000):
  blocks buffered before each persistence batch. Backpressure stays at
  twice the value.
- `--proofs-history.prune-slack` (default 0): blocks the window may grow
  past `--proofs-history.window` before pruning runs.

Add metrics that split persistence cost by phase and table:

- `optimism_trie.storage.phase_duration_seconds{operation,phase,table}`:
  prune changeset deletes vs history bitmap edits, and the batch write's
  history flush.
- `optimism_trie.storage.write_state_duration_seconds`: the batch
  write's current-state and changeset writes.
- `optimism_trie.storage.history_unique_keys{operation,table}`: unique
  keys per batch, the unit of history bitmap cost.
- `optimism_trie.engine.backpressure_duration_seconds`: one sample per
  backpressure episode.
- `optimism_trie.engine.persistence.blocks_per_batch`.

Per-batch "Prune phase breakdown" and "Write phase breakdown" logs are
at debug on target `trie::db`.
Assets 2
Loading