Skip to content

DArray: Memory cannot GC when the variables are reassigned, causing Out of Memory error or halting problem #649

@islent

Description

@islent

MWE:

using DistributedNext
addprocs(8)
@everywhere using Dagger

N = 1024
a = zeros(N,N,N);   # 8GB

b = DArray(a);  #! Repeat this, and the CPU memory keeps growing until the Julia session is killed by system

I have tried the followings but the memory occupation cannot decrease:

b = nothing;

GC.gc()

@everywhere GC.gc()

Is there a way to reuse or manually release the memory of DArray? I cannot find any solution in the documentation or github issues.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions