Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-21 Thread Yaakov Borstein
:)

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-21 Thread K leo
I ran some more tests with both my original code and some test codes, now with the 0.5 release version. I would conclude that memory is not leaking. The memory usage as reported by top is the actual memory used or having been just used. Although the usage number does not drop after the code

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-21 Thread Yichao Yu
On Wed, Sep 21, 2016 at 10:04 PM, Luke Stagner wrote: > In trying to create a reduced test case I figured out the source of my > memory leak. It wasn't caused by Julia but by an external library I was Good to know. > calling (Sundials.jl). Pulling the dev version of

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-21 Thread Luke Stagner
In trying to create a reduced test case I figured out the source of my memory leak. It wasn't caused by Julia but by an external library I was calling (Sundials.jl). Pulling the dev version of Sundials.jl fixed the issue for me. K Leo, if you are using any external library, that may be the

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-21 Thread Yichao Yu
On Wed, Sep 21, 2016 at 8:50 PM, Yichao Yu wrote: > On Mon, Sep 19, 2016 at 9:14 PM, Luke Stagner wrote: >> I actually ran into this issue too. I have a routine that calculates fast >> ion orbits that uses a lot of memory (90%). Here is the code (sorry

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-21 Thread Yichao Yu
On Mon, Sep 19, 2016 at 9:14 PM, Luke Stagner wrote: > I actually ran into this issue too. I have a routine that calculates fast > ion orbits that uses a lot of memory (90%). Here is the code (sorry its not > very clean). I tried to run the function `make_distribution_file`

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-21 Thread Yaakov Borstein
For what it's worth, I have a production system that was developed on 0.4.6, and started running it today on the 0.5 release. It retrieves data from dozens of API's as JSON, processes and converts them to DataFrames, reconverts to JSON, caches the results in Redis. Sizes range from several

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-20 Thread K leo
@Luke Stagner Since this appears a problem. Perhaps you can file an issue with your demo code. On Tuesday, September 20, 2016 at 9:14:44 AM UTC+8, Luke Stagner wrote: > > I actually ran into this issue too. I have a routine that calculates fast > ion orbits that uses a lot of memory (90%).

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-19 Thread Luke Stagner
I actually ran into this issue too. I have a routine that calculates fast ion orbits that uses a lot of memory (90%). Here is the code (sorry its not very clean). I tried to run the function `make_distribution_file` in a loop

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-19 Thread K leo
The only package used (at the global level) is DataFrames. Does that not release memory? On Tuesday, September 20, 2016 at 6:05:58 AM UTC+8, K leo wrote: > > No. After myfunction() finished and I am at the REPL prompt, top shows > Julia taking 49%. And after I did gc(), it shows Julia taking

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-19 Thread K leo
No. After myfunction() finished and I am at the REPL prompt, top shows Julia taking 49%. And after I did gc(), it shows Julia taking 48%. On Tuesday, September 20, 2016 at 4:05:56 AM UTC+8, Randy Zwitch wrote: > > Does the problem go away if you run gc()? > > > > On Monday, September 19, 2016

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-19 Thread Randy Zwitch
Does the problem go away if you run gc()? On Monday, September 19, 2016 at 3:55:14 PM UTC-4, K leo wrote: > > Thanks for the suggestion about valgrind. > > Can someone please let me first understand the expected behaviour for > memory usage. > > Let's say when I first starts Julia REPL it

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-19 Thread K leo
Thanks for the suggestion about valgrind. Can someone please let me first understand the expected behaviour for memory usage. Let's say when I first starts Julia REPL it takes 5% of RAM (according to top). Then I include "myfile.jl" and run myfunction(). During the execution of

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-19 Thread Yichao Yu
On Mon, Sep 19, 2016 at 3:19 AM, Lyndon White wrote: > > On Sunday, 18 September 2016 21:36:24 UTC+8, K leo wrote: >> >> I am also wondering what information I should look into. > > > Learn to use valgrind -- it is a life skill (like knowing how to do a tax > return :-P) >

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-19 Thread Lyndon White
On Sunday, 18 September 2016 21:36:24 UTC+8, K leo wrote: > > I am also wondering what information I should look into. > Learn to use valgrind -- it is a life skill (like knowing how to do a tax return :-P) http://valgrind.org/ Julia specific instructions are at:

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-18 Thread Yichao Yu
On Sun, Sep 18, 2016 at 9:36 AM, K leo wrote: > I am also wondering what information I should look into. > > On Sunday, September 18, 2016 at 9:30:00 PM UTC+8, Yichao Yu wrote: >> >> >> Impossible to tell without any information provided. At least show what your code looks

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-18 Thread K leo
I am also wondering what information I should look into. On Sunday, September 18, 2016 at 9:30:00 PM UTC+8, Yichao Yu wrote: > > > Impossible to tell without any information provided. >

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-18 Thread Yichao Yu
On Sun, Sep 18, 2016 at 8:53 AM, K leo wrote: > I run Julia through repl. The procedure is simple: include("myfile.jl"), > then run myfunction() (I might do a Ctrl-C to interrupt the function), edit > something in myfile.jl, then repeat. Initially, julia processes normally >