Skip to content

Penciller Memory and slicing binaries #285

Description

@martinsumner

The metadata for a riak object is directly extracted from the binary version of the riak object.

However, this is may mean that when the metadata is being held in the Penciller, it might have a reference to a shadow of the old object.

If, for example 10K 2MB objects are added (with 1KB metadata per object). When those 10K objects are in the penciller's memory, the penciller will have 10MB of binary data referenced - however, the reference is to part of a bigger binary, and although the rest of the bigger binary is not referenced, the whole of the bigger binary cannot be GC'd. Therefore, in effect the penciller has references to 20GB of binary heap memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions