Skip to content

Incorrect collection_pages calculation in mem balancer #918

@qinsoon

Description

@qinsoon

The mem balancer paper uses a metric called 'bytes collected during GC'. I interpreted as 'bytes reclaimed'. But it turned out to be incorrect. It should actually be 'bytes traversed during GC'.

Basically our calculation for the following field is wrong. We should fix this.

collection_pages: f64,

As we use pages for our calculation (such as live pages, and allocation pages), the question for us is that how we can get the number of pages traversed by the GC. Earlier we added a way to count traversed bytes (#768), but it counts bytes not pages. We probably can calculate traversed pages from live pages and promoted pages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-heapArea: Heap (including Mmapper, VMMap)C-bugCategory: BugP-normalPriority: Normal.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions