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 
finishes, it does not further grow with new runs.  Actually with new runs 
the memory usage starts afresh.

It could be that the release version of 0.5 fixes this.  Anyway before any 
further evidence, we can disregard this thread now.

On Thursday, September 22, 2016 at 10:11:46 AM UTC+8, Yichao Yu wrote:
>
> 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 Sundials.jl fixed the 
> > issue for me. 
>
> And good to know it's fixed. 
>
> > 
> > K Leo, if you are using any external library, that may be the cause of 
> the 
> > memory leak you are seeing. 
> > 
> > -Luke 
> > 
> > On Wednesday, September 21, 2016 at 5:52:23 PM UTC-7, Yichao Yu wrote: 
> >> 
> >> 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 
> its 
> >> >> not 
> >> >> very clean).  I tried to run the function `make_distribution_file` 
> in a 
> >> >> loop 
> >> >> in julia but it never released the memory between calls. I tried 
> >> >> inserting 
> >> >> `gc()` manually but that didn't do anything either. 
> >> > 
> >> > I don't have time currently but I'll try to reproduce it in a few 
> days. 
> >> > What's your versioninfo() and how did you install julia? 
> >> 
> >> In the mean time, I would also appreciate if you can reduce it a 
> >> little, especially if you can remove some of the external 
> >> dependencies. 
> >> 
> >> > 
> >> >> 
> >> >> -Luke 
> >> >> 
> >> >> 
> >> >> On Monday, September 19, 2016 at 3:08:52 PM UTC-7, K leo wrote: 
> >> >>> 
> >> >>> 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 
> 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 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 takes 5% of RAM 
> >> >> (according 
> >> >> to top).  Then I include "myfile.jl" and run myfunction(). 
>  During 
> >> >> the 
> >> >> execution of myfunction(), memory allocation of Julia reaches 
> 40% 
> >> >> of RAM 
> >> >> (again according to top).  Say running myfunction() involves no 
> >> >> allocation 
> >> >> of global objects - all object used are local.  Then when 
> >> >> myfunction() 
> >> >> finished and I am at the REPL prompt, should top show the memory 
> >> >> usage of 
> >> >> Julia drops down to the previous level (5% of RAM)?  My current 
> >> >> observation 
> >> >> is that it doesn't.  Is this the expected behaviour? 
> >> >> 
> >> >> 
>


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 Sundials.jl fixed the
> issue for me.

And good to know it's fixed.

>
> K Leo, if you are using any external library, that may be the cause of the
> memory leak you are seeing.
>
> -Luke
>
> On Wednesday, September 21, 2016 at 5:52:23 PM UTC-7, Yichao Yu wrote:
>>
>> 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 its
>> >> not
>> >> very clean).  I tried to run the function `make_distribution_file` in a
>> >> loop
>> >> in julia but it never released the memory between calls. I tried
>> >> inserting
>> >> `gc()` manually but that didn't do anything either.
>> >
>> > I don't have time currently but I'll try to reproduce it in a few days.
>> > What's your versioninfo() and how did you install julia?
>>
>> In the mean time, I would also appreciate if you can reduce it a
>> little, especially if you can remove some of the external
>> dependencies.
>>
>> >
>> >>
>> >> -Luke
>> >>
>> >>
>> >> On Monday, September 19, 2016 at 3:08:52 PM UTC-7, K leo wrote:
>> >>>
>> >>> 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 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 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 takes 5% of RAM
>> >> (according
>> >> to top).  Then I include "myfile.jl" and run myfunction().  During
>> >> the
>> >> execution of myfunction(), memory allocation of Julia reaches 40%
>> >> of RAM
>> >> (again according to top).  Say running myfunction() involves no
>> >> allocation
>> >> of global objects - all object used are local.  Then when
>> >> myfunction()
>> >> finished and I am at the REPL prompt, should top show the memory
>> >> usage of
>> >> Julia drops down to the previous level (5% of RAM)?  My current
>> >> observation
>> >> is that it doesn't.  Is this the expected behaviour?
>> >>
>> >>


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 cause of the 
memory leak you are seeing.

-Luke

On Wednesday, September 21, 2016 at 5:52:23 PM UTC-7, Yichao Yu wrote:
>
> 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 its 
> not 
> >> very clean).  I tried to run the function `make_distribution_file` in a 
> loop 
> >> in julia but it never released the memory between calls. I tried 
> inserting 
> >> `gc()` manually but that didn't do anything either. 
> > 
> > I don't have time currently but I'll try to reproduce it in a few days. 
> > What's your versioninfo() and how did you install julia? 
>
> In the mean time, I would also appreciate if you can reduce it a 
> little, especially if you can remove some of the external 
> dependencies. 
>
> > 
> >> 
> >> -Luke 
> >> 
> >> 
> >> On Monday, September 19, 2016 at 3:08:52 PM UTC-7, K leo wrote: 
> >>> 
> >>> 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 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 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 takes 5% of RAM 
> (according 
> >> to top).  Then I include "myfile.jl" and run myfunction().  During 
> the 
> >> execution of myfunction(), memory allocation of Julia reaches 40% 
> of RAM 
> >> (again according to top).  Say running myfunction() involves no 
> allocation 
> >> of global objects - all object used are local.  Then when 
> myfunction() 
> >> finished and I am at the REPL prompt, should top show the memory 
> usage of 
> >> Julia drops down to the previous level (5% of RAM)?  My current 
> observation 
> >> is that it doesn't.  Is this the expected behaviour? 
> >> 
> >> 
>


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 its not
>> very clean).  I tried to run the function `make_distribution_file` in a loop
>> in julia but it never released the memory between calls. I tried inserting
>> `gc()` manually but that didn't do anything either.
>
> I don't have time currently but I'll try to reproduce it in a few days.
> What's your versioninfo() and how did you install julia?

In the mean time, I would also appreciate if you can reduce it a
little, especially if you can remove some of the external
dependencies.

>
>>
>> -Luke
>>
>>
>> On Monday, September 19, 2016 at 3:08:52 PM UTC-7, K leo wrote:
>>>
>>> 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 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 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 takes 5% of RAM (according
>> to top).  Then I include "myfile.jl" and run myfunction().  During the
>> execution of myfunction(), memory allocation of Julia reaches 40% of RAM
>> (again according to top).  Say running myfunction() involves no 
>> allocation
>> of global objects - all object used are local.  Then when myfunction()
>> finished and I am at the REPL prompt, should top show the memory usage of
>> Julia drops down to the previous level (5% of RAM)?  My current 
>> observation
>> is that it doesn't.  Is this the expected behaviour?
>>
>>


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` in a loop
> in julia but it never released the memory between calls. I tried inserting
> `gc()` manually but that didn't do anything either.

I don't have time currently but I'll try to reproduce it in a few days.
What's your versioninfo() and how did you install julia?

>
> -Luke
>
>
> On Monday, September 19, 2016 at 3:08:52 PM UTC-7, K leo wrote:
>>
>> 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 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 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 takes 5% of RAM (according
> to top).  Then I include "myfile.jl" and run myfunction().  During the
> execution of myfunction(), memory allocation of Julia reaches 40% of RAM
> (again according to top).  Say running myfunction() involves no allocation
> of global objects - all object used are local.  Then when myfunction()
> finished and I am at the REPL prompt, should top show the memory usage of
> Julia drops down to the previous level (5% of RAM)?  My current 
> observation
> is that it doesn't.  Is this the expected behaviour?
>
>


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 
mb's to 500 mb's.  The routines have been running for several hours, 
allocating and deallocating large chunks of memory for the DataFrames with 
millions of rows and large JSON blobs.  No leaks whatsoever have been 
detected, humming away smoothly with slightly less maximum memory consumed 
and what appears to be faster release (gc()). So my guess is that there is 
likely something else going on with the poster's code example


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%). Here is the code 
>  (sorry 
> its not very clean).  I tried to run the function `make_distribution_file` 
> in a loop in julia but it never released the memory between calls. I tried 
> inserting `gc()` manually but that didn't do anything either.
>
> -Luke 
>
> On Monday, September 19, 2016 at 3:08:52 PM UTC-7, K leo wrote:
>>
>> 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 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 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 takes 5% of RAM (according 
> to top).  Then I include "myfile.jl" and run myfunction().  During the 
> execution of myfunction(), memory allocation of Julia reaches 40% of RAM 
> (again according to top).  Say running myfunction() involves no 
> allocation 
> of global objects - all object used are local.  Then when myfunction() 
> finished and I am at the REPL prompt, should top show the memory usage of 
> Julia drops down to the previous level (5% of RAM)?  My current 
> observation 
> is that it doesn't.  Is this the expected behaviour?
>
>

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 in julia but it never released the memory between calls. I tried 
inserting `gc()` manually but that didn't do anything either.

-Luke 

On Monday, September 19, 2016 at 3:08:52 PM UTC-7, K leo wrote:
>
> 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 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 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 takes 5% of RAM (according 
 to top).  Then I include "myfile.jl" and run myfunction().  During the 
 execution of myfunction(), memory allocation of Julia reaches 40% of RAM 
 (again according to top).  Say running myfunction() involves no allocation 
 of global objects - all object used are local.  Then when myfunction() 
 finished and I am at the REPL prompt, should top show the memory usage of 
 Julia drops down to the previous level (5% of RAM)?  My current 
 observation 
 is that it doesn't.  Is this the expected behaviour?



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 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 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 takes 5% of RAM (according 
>>> to top).  Then I include "myfile.jl" and run myfunction().  During the 
>>> execution of myfunction(), memory allocation of Julia reaches 40% of RAM 
>>> (again according to top).  Say running myfunction() involves no allocation 
>>> of global objects - all object used are local.  Then when myfunction() 
>>> finished and I am at the REPL prompt, should top show the memory usage of 
>>> Julia drops down to the previous level (5% of RAM)?  My current observation 
>>> is that it doesn't.  Is this the expected behaviour?
>>>
>>>

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 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 takes 5% of RAM (according to 
>> top).  Then I include "myfile.jl" and run myfunction().  During the 
>> execution of myfunction(), memory allocation of Julia reaches 40% of RAM 
>> (again according to top).  Say running myfunction() involves no allocation 
>> of global objects - all object used are local.  Then when myfunction() 
>> finished and I am at the REPL prompt, should top show the memory usage of 
>> Julia drops down to the previous level (5% of RAM)?  My current observation 
>> is that it doesn't.  Is this the expected behaviour?
>>
>>

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 takes 5% of RAM (according to 
> top).  Then I include "myfile.jl" and run myfunction().  During the 
> execution of myfunction(), memory allocation of Julia reaches 40% of RAM 
> (again according to top).  Say running myfunction() involves no allocation 
> of global objects - all object used are local.  Then when myfunction() 
> finished and I am at the REPL prompt, should top show the memory usage of 
> Julia drops down to the previous level (5% of RAM)?  My current observation 
> is that it doesn't.  Is this the expected behaviour?
>
>

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 myfunction(), memory allocation of Julia reaches 40% of RAM 
(again according to top).  Say running myfunction() involves no allocation 
of global objects - all object used are local.  Then when myfunction() 
finished and I am at the REPL prompt, should top show the memory usage of 
Julia drops down to the previous level (5% of RAM)?  My current observation 
is that it doesn't.  Is this the expected behaviour?



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)
> http://valgrind.org/
>
> Julia specific instructions are at:
> http://docs.julialang.org/en/release-0.5/devdocs/valgrind/
>
> Valgrind's whole purpose is to tell you if a program is leaking memory.

Valgrind is pretty useless for managed heap.

>
>


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:
http://docs.julialang.org/en/release-0.5/devdocs/valgrind/

Valgrind's whole purpose is to tell you if a program is leaking memory.




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 like.


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
> take less than 10% RAM, then after some time, one main Julia process takes
> over 70% of the 4GB RAM.  Even myfunction finishes running with real idling,
> it still takes that much RAM.  My code uses nearly no global objects, and
> myfunction ends with nothing as the last statement.
>
> myfunction isn't new though I keep modifying it from time to time.  Julia
> 0.4.6 does not appear to have this issue.
>
> Any thoughts on what might be the culprit?
>
>   | | |_| | | | (_| |  |  Version 0.5.0-rc4+0 (2016-09-09 01:43 UTC)
>  _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
> |__/   |  x86_64-pc-linux-gnu
>

Impossible to tell without any information provided.