The thing is, there's no large array allocated anywhere. Everything's 
shared memory.

On Sunday, September 6, 2015 at 5:10:48 AM UTC-7, Nils Gudat wrote:
>
> Not entirely sure about this, but wouldn't you have to first re-allocate 
> those large arrays before gc() can free up the memory? That's how I tend to 
> do it, based on what it says in the manual here 
> <http://julia.readthedocs.org/en/latest/manual/faq/#how-do-i-delete-an-object-in-memory>
> :
>
> "For example, if A is a gigabyte-sized array that you no longer need, you 
> can free the memory with A = 0. 
> The memory will be released the next time the garbage collector runs; you 
> can force this to happen with gc() 
> <http://julia.readthedocs.org/en/latest/stdlib/base/#Base.gc>."
>
> So would
>
> @everywhere begin
>   large_array = 0
>   gc()
> end
>
> do the trick? 
>

Reply via email to