Skip to content

Experiment: Retain more blocks in memory #20613

@mediocregopher

Description

@mediocregopher

Describe the feature

We should experiment with retaining more blocks in memory prior to flushing them to disk.

Currently we have --engine.persistence-threshold default to 2 blocks, and --engine.memory-block-buffer-target is ignored. This means every 2 blocks we flush all blocks to disk.

Some things worth trying:

  • Increasing the persistence threshold to a higher limit, like 6 or 10.

  • Re-introducing the memory block buffer target at some intermediate value, like 2. This would mean we always have at least 2 blocks in memory. With this in place we would have to pull reverts from disk significantly less often.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-dbRelated to the databaseC-enhancementNew feature or requestC-perfA change motivated by improving speed, memory usage or disk footprint

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions