Skip to content

Warn when dirty prune cache is too low #10142

@asdacap

Description

@asdacap

Is your feature request related to a problem? Please describe.

  • When dirty prune cache is too low, the pruning cannot reduce the node cache.
  • This will cause it to keep re-pruning the next block with very little progress.
  • This is a problem on larger network and probably mainnet as gas limit increase.

Describe the solution you'd like

  • Warn when the pruning cache is too low.
  • Specifically if the size of the dirty prune cache after pruning is more than 80% of its size before, log a warn.

Describe alternatives you've considered

  • Have a minimum number of block between pruning. This is still kinda a patch especially for network with very short slot time.

Additional context

  • Base network runs into this problem.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions