I’m trying to figure out the memory size of a DistributedArray. Consider the following example:
addprocs(2)
@everywhere using DistributedArrays
m = [rand(10,10) for i in 1:10]
d = distribute(m)
whos()
indicates 168 bytes, but I suspect this is not the total memory consumption because whos()
indicates m is 8080 bytes, which can also be obtained from sizeof(m) + sum(sizeof.(m))
. I’m not sure if this would be correct for the DistributedArray, d. What is the best way to get the memory consumption of d without using whos()
?