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.