Discrepancy betwteen `htop` and `sum(map(x->sizeof(x),names(Main)))`

1. Check the total size of stuff julia knows about: sizeof

I get a negligible value when I check the size of the environment:

GC.gc()
julia> sum(map(x->sizeof(x),names(Main)))/1e6 # total size in megabytes
0.000598

2. Check the size of stuff linux knows about: htop

This is in contrast to what htop shows, where RES shows a whole bunch of julia/sys.so (what is that?) alone take up nearly 50GB:

1 Like