Skip to content

Large random read db.Get request simultaneously cause OOM #3039

@jimmyyan

Description

@jimmyyan

We use pebble as a backend storage of our service, but when large random read comes(invokded by db.Get()), the pebble will alloc large amount of memory cause the process OOM. we would wonder know if there have some options to control the memory usage.

we traced the heap memory using by pebble, large memory alloced from the cache.newValue() in readBlock function.

BTW,we have set the max size of cache to 3GB, and block size be set to 16KB.

Jira issue: PEBBLE-87

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions