Skip to content

Memory balloons when compactingΒ #86

@Stebalien

Description

@Stebalien

While we've gotten most of the memory issues under control (see #17 and #83), we're still using the default value log size of 1GiB. Unfortunately, it looks like badger loads the entire value log into memory when compacting (garbage collecting). This happens whenever we delete more than 20% of the values in any given value log.

We can set the default value log size to be smaller (e.g., 64MiB?) but then we'll end up with more files open. As far as I know, badger never closes files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementA net-new feature or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions