Skip to content

Return memory to OS after old space GC collection #24938

@mkustermann

Description

@mkustermann

We use the DartVM for running the fletchc compiler. It uses isolates for compilation. Running this on a memory constrained ARM chromebook with 4 cores sometimes causes us to run out of memory (1 main isolate and 4 worker isolates).

After doing a GC via observatory using the allocation profile UI, it seems that the DartVM still uses 1050MB from the OS even though the used memory (accumulated over all isolates) is just 245MB. That means it seems to be reserving 4 times as much memory from the OS as it actually uses.

cc: @iposva-google @peter-ahe-google @madsager

picture
picture2

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions