[julia-users] Re: cleaning up objects in parallel processes?

2015-09-09 Thread Seth
Not sure if this is significant, but rmprocs(2) returns immediately with :ok and frees up the memory (again, according to Activity Monitor). On Wednesday, September 9, 2015 at 2:06:24 PM UTC-7, Seth wrote: > > julia> remotecall_fetch(2, whos, ) > From worker 2:ArrayViews13

[julia-users] Re: cleaning up objects in parallel processes?

2015-09-09 Thread Seth
julia> remotecall_fetch(2, whos, ) >From worker 2:ArrayViews137 KB Module : ArrayViews >From worker 2:AutoHashEquals 5345 bytes Module : AutoHashEquals >From worker 2: Base 20321 KB Module : Base >From worker 2:

[julia-users] Re: cleaning up objects in parallel processes?

2015-09-09 Thread Nils Gudat
I think whos() should help you, it'll give a list of all objects defined, as well as their size in memory. If you run it as remotecall_fetch(2, whos, ), where 2 is the number of the worker process (of course you could pick any number returned by procs()), you should be able to figure out what's

[julia-users] Re: cleaning up objects in parallel processes?

2015-09-08 Thread Seth
Following up - how do I even begin to determine what's eating up memory on remote processes? Is there something out there I can use to get a report? On Saturday, September 5, 2015 at 5:53:54 PM UTC-7, Seth wrote: > > I've finally made some progress in parallelizing my code. However, at the > end

[julia-users] Re: cleaning up objects in parallel processes?

2015-09-08 Thread Seth
Yes, but it's small - it's a type with a couple of vectors that won't exceed the number of vertices in the graph. On Monday, September 7, 2015 at 2:04:58 AM UTC-7, Nils Gudat wrote: > > Aren't you locally creating state on each of the worker processes? >

[julia-users] Re: cleaning up objects in parallel processes?

2015-09-07 Thread Nils Gudat
Aren't you locally creating state on each of the worker processes?

[julia-users] Re: cleaning up objects in parallel processes?

2015-09-06 Thread Seth
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 ho

[julia-users] Re: cleaning up objects in parallel processes?

2015-09-06 Thread Nils Gudat
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 : "For ex