[sage-support] Re: memory leak in trivial calculation?

2021-05-28 Thread Emmanuel Charpentier
Nice one… Indeed: sage: f.expand()(y=i) -(3735/1394*I + 405/1394)*z^3 - (606/697*I - 942/697)*z^2 - (8681/6970*I + 15973/6970)*z + 1 sage: f.partial_fraction(y)(y=i) -(3735/1394*I + 405/1394)*z^3 - (606/697*I - 942/697)*z^2 - (8681/6970*I + 15973/6970)*z + 1 sage: f.simplify_full()(y=i)

[sage-support] Re: memory leak? infinit loop? infinit recursion?

2019-04-13 Thread Andreas Schuldei
THis got solved really nicely in https://ask.sagemath.org/question/46123/arrow-length-goes-wild-near-poles-in-vector-field-plot/ I posted here because i can not easily post long tracebacks on the forum, and i believed it was important for solving the problem. but it turns out it was me

[sage-support] Re: memory leak when building sage-6.6.rc0

2015-05-04 Thread 94nd3r
I can only agree with the original posting: Sage-6.6 release on gentoo requires more than 1.5GB for compiling, on a 2GB computer about half a GB is needed for running gnome (especially now that polkit has an unfixed memory-leak in gentoo), so during single-threaded builds Swapfile will

[sage-support] Re: memory leak when building sage-6.6.rc0

2015-05-04 Thread Andrey Novoseltsev
Cython was using too much memory, should be fixed in recent beta. On Monday, 4 May 2015 07:14:18 UTC-6, 94n...@gmail.com wrote: I can only agree with the original posting: Sage-6.6 release on gentoo requires more than 1.5GB for compiling, on a 2GB computer about half a GB is needed for

Re: [sage-support] Re: memory leak when building sage-6.6.rc0

2015-03-27 Thread Jeroen Demeyer
On 2015-03-26 20:09, Volker Braun wrote: Thats probably not enough for a parallel build. Try: MAKE='make -j1' make I don't think the original poster was using a parallel build (at least I see no evidence of this). -- You received this message because you are subscribed to the Google Groups

[sage-support] Re: memory leak when building sage-6.6.rc0

2015-03-26 Thread Volker Braun
Thats probably not enough for a parallel build. Try: MAKE='make -j1' make On Thursday, March 26, 2015 at 7:30:58 PM UTC+1, bogda...@gmail.com wrote: My computer runs out of memory when I attempt to build sage from source. I want to build sage-6.6.rc0. Installation log

[sage-support] Re: Memory Leak in mutipolynomial evaluation

2014-05-28 Thread Gabriel Furstenheim Milerud
Hi Simon, You're completely right. Actually I messed up the libraries, the __call__ method used should be the one from Mpolynomial_libsingular. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving

[sage-support] Re: Memory Leak in mutipolynomial evaluation

2014-05-25 Thread Simon King
Hi Gabriel, On 2014-05-25, Gabriel Furstenheim Milerud furstenh...@gmail.com wrote: There is a memory leak in the evaluation of multivariable polynomials: -C.x,y,z=GF(2)[] -f=x^4+x*y^3+z^6 -get_memory_usage() .1014.47265625 - for i in xrange(100): a=f(1,0,0)

[sage-support] Re: Memory Leak in mutipolynomial evaluation

2014-05-25 Thread leif
Simon King wrote: Hi Gabriel, On 2014-05-25, Gabriel Furstenheim Milerud furstenh...@gmail.com wrote: There is a memory leak in the evaluation of multivariable polynomials: -C.x,y,z=GF(2)[] -f=x^4+x*y^3+z^6 -get_memory_usage() .1014.47265625 - for i in xrange(100): a=f(1,0,0)

[sage-support] Re: Memory leak in Cone.dual()

2014-05-04 Thread pete . donnell
Thanks guys. Manual garbage collection helps, but memory usage still creeps up. Looks like I need to build sage 6.2 from source! -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it,

[sage-support] Re: Memory leak in Cone.dual()

2014-04-30 Thread Volker Braun
you can force a garbage collection with import gc gc.collect() But your script doesn't increase memory on Sage-6.2.rc0 even without that. On Wednesday, April 30, 2014 3:19:12 PM UTC+1, pete.d...@port.ac.uk wrote: Hi all, I'm pretty new to Python, so perhaps I'm doing something wrong, but

[sage-support] Re: Memory leak in Cone.dual()

2014-04-30 Thread Nils Bruin
On Wednesday, April 30, 2014 7:19:12 AM UTC-7, pete.d...@port.ac.uk wrote: Hi all, I'm pretty new to Python, so perhaps I'm doing something wrong, but I've encountered what I believe to be a memory leak in Sage's Cone.dual() method. Below is some very simplified proof of concept code

[sage-support] Re: memory leak in mixed integer programming?

2011-10-12 Thread Nathann Cohen
Hello again !!! This happens no matter if I use solver=GLPK or solver=coin (cbc is installed), so it does not seem to be a problem of the underlying milp- solver. This was a mistake ! I actually forgot to free some memory in both of these backends ! ;-) The bug is fixed, though. It is

[sage-support] Re: memory leak in mixed integer programming?

2011-10-11 Thread Nathann Cohen
This happens no matter if I use solver=GLPK or solver=coin (cbc is installed), so it does not seem to be a problem of the underlying milp- solver. Pompompom That's probably my fault :-D I will try to deal with it today. I'll keep this thread updated :-) Nathann -- To post to

[sage-support] Re: memory leak?

2009-05-03 Thread simon . king
Hi! On 3 Mai, 05:42, Alex Ghitza aghi...@gmail.com wrote: ... I can see good reasons why we want the current behaviour of uniqueness of parents, and what we just saw here is a good reason why we might *not* want it.  How can we reconcile this?  Can we make it easy to turn off uniqueness of

[sage-support] Re: memory leak?

2009-05-03 Thread Robert Bradshaw
On May 2, 2009, at 11:48 PM, simon.k...@uni-jena.de wrote: Hi! On 3 Mai, 05:42, Alex Ghitza aghi...@gmail.com wrote: ... I can see good reasons why we want the current behaviour of uniqueness of parents, and what we just saw here is a good reason why we might *not* want it. How can we

[sage-support] Re: memory leak?

2009-05-03 Thread simon . king
Hi! On 3 Mai, 08:48, simon.k...@uni-jena.de wrote: ,,, I think in this way one would have unique parents *and* would fix the memory leak, but I am afraid I don't know enough about weak references to implement it. Thanks to google, I found how it works: Replace the line _cache = {} in

[sage-support] Re: memory leak?

2009-05-03 Thread simon . king
PS: One can then do   sage: for p in primes(2,100):   :     R.x,y,z = GF(p)[]   sage: get_memory_usage()   778.35546875 And: sage: len(sage.rings.polynomial.polynomial_ring_constructor._cache) 34 Hence, indeed, some rings were garbage collected. Cheers, Simon

[sage-support] Re: memory leak?

2009-05-03 Thread mabshoff
On May 3, 12:28 am, simon.k...@uni-jena.de wrote: Hi, Is there any reason you opened a new ticket and did not use #5949 as mentioned above? PS: One can then do   sage: for p in primes(2,100):   :     R.x,y,z = GF(p)[]   sage: get_memory_usage()   778.35546875 And:

[sage-support] Re: memory leak?

2009-05-03 Thread Robert Bradshaw
On May 3, 2009, at 1:04 AM, mabshoff wrote: On May 3, 12:28 am, simon.k...@uni-jena.de wrote: Hi, Is there any reason you opened a new ticket and did not use #5949 as mentioned above? PS: One can then do sage: for p in primes(2,100): : R.x,y,z = GF(p)[] sage:

[sage-support] Re: memory leak?

2009-05-03 Thread mabshoff
On May 3, 1:20 am, Robert Bradshaw rober...@math.washington.edu wrote: On May 3, 2009, at 1:04 AM, mabshoff wrote: SNIP As is this patch breaks badly: Yep, see http://trac.sagemath.org/sage_trac/ticket/3706 - Robert Do you mean we need an analog fix? I have always been mistrustful

[sage-support] Re: memory leak?

2009-05-03 Thread mabshoff
FYI: Simon's patch doesn't make any difference for the amount of memory used for sage: while p2^20: : p=next_prime(p) : g=FindGroupOrder(p,11) : In both cases about 2046MB more were used after the loop :(. Simon: Run init_mem=get_memory_usage() before you do anything,

[sage-support] Re: memory leak?

2009-05-03 Thread Alex Ghitza
On Sun, May 3, 2009 at 6:33 PM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: FYI: Simon's patch doesn't make any difference for the amount of memory used for sage: while p2^20: :     p=next_prime(p) :     g=FindGroupOrder(p,11) : In both cases about 2046MB

[sage-support] Re: memory leak?

2009-05-03 Thread simon . king
Hi Michael, On 3 Mai, 10:04, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: Is there any reason you opened a new ticket and did not use #5949 as mentioned above? Yes. I did the patch before breakfast :) If it is true that there is a problem with weak references in Cython (what

[sage-support] Re: memory leak?

2009-05-03 Thread mabshoff
On May 3, 1:54 am, Alex Ghitza aghi...@gmail.com wrote: On Sun, May 3, 2009 at 6:33 PM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: FYI: Simon's patch doesn't make any difference for the amount of memory used for sage: while p2^20: :     p=next_prime(p) :  

[sage-support] Re: memory leak?

2009-05-03 Thread mabshoff
On May 3, 2:00 am, simon.k...@uni-jena.de wrote: Hi Michael, On 3 Mai, 10:04, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: Is there any reason you opened a new ticket and did not use #5949 as mentioned above? Yes. I did the patch before breakfast :) :) Overall it

[sage-support] Re: memory leak?

2009-05-02 Thread John Cremona
When an elliptic curve is created the code in the __init__ function in ell_generic.py (lines 164-5) do cause a multivariate polynomial ring to be created. In this case it's a new ring each time as the base field is always a new field. The reason this is done is that the elliptic curve class

[sage-support] Re: memory leak?

2009-05-02 Thread simon . king
Dear John, On 2 Mai, 18:39, John Cremona john.crem...@gmail.com wrote: When an elliptic curve is created the code in the __init__ function in ell_generic.py (lines 164-5) do cause a multivariate polynomial ring to be created.  In this case it's a new ring each time as the base field is

[sage-support] Re: memory leak?

2009-05-02 Thread John Cremona
On May 2, 5:55 pm, simon.k...@uni-jena.de wrote: Dear John, On 2 Mai, 18:39, John Cremona john.crem...@gmail.com wrote: When an elliptic curve is created the code in the __init__ function in ell_generic.py (lines 164-5) do cause a multivariate polynomial ring to be created.  In this

[sage-support] Re: memory leak?

2009-05-02 Thread Alex Ghitza
When an elliptic curve is created the code in the __init__ function in ell_generic.py (lines 164-5) do cause a multivariate polynomial ring to be created.  In this case it's a new ring each time as the base field is always a new field. How is the multivariate polynomial ring

[sage-support] Re: memory leak?

2009-05-02 Thread Robert Bradshaw
On May 2, 2009, at 8:42 PM, Alex Ghitza wrote: When an elliptic curve is created the code in the __init__ function in ell_generic.py (lines 164-5) do cause a multivariate polynomial ring to be created. In this case it's a new ring each time as the base field is always a new field.

[sage-support] Re: memory leak?

2009-05-01 Thread John Cremona
The actual cardinality is computed using the pari library (since the field is a prime field and p10**18). I the leak is in libsingular it must come from constructing the curve, not from computing the cardinality. So it would be worth testing the loop with a new function which constructs the

[sage-support] Re: memory leak?

2009-05-01 Thread mabshoff
On May 1, 2:02 am, John Cremona john.crem...@gmail.com wrote: Hi John, The actual cardinality is computed using the pari library (since the field is a prime field and p10**18).  I the leak is in libsingular it must come from constructing the curve, not from computing the cardinality.  So

[sage-support] Re: memory leak?

2009-05-01 Thread Robert Bradshaw
On May 1, 2009, at 2:34 AM, mabshoff wrote: On May 1, 2:02 am, John Cremona john.crem...@gmail.com wrote: Hi John, The actual cardinality is computed using the pari library (since the field is a prime field and p10**18). I the leak is in libsingular it must come from constructing the

[sage-support] Re: memory leak?

2009-05-01 Thread mabshoff
On May 1, 12:12 pm, Robert Bradshaw rober...@math.washington.edu wrote: SNIP No that I have a clue how to debug this, so I will poke RobertWB - I am sure he has nothing better to do that to dive into this problem and will be happy to debug this ;) Yep, I bet coercion is leaking rings.

[sage-support] Re: memory leak?

2009-04-30 Thread opti
Michael, Thanks for your reply. I did the exact same thing under magma, and it consumes 14 meg. Have you found anything new? Regards, Iram On Apr 29, 9:07 pm, mabshoff michael.absh...@mathematik.uni- dortmund.de wrote: On Apr 29, 11:11 am, opti iram.che...@gmail.com wrote: Hello, Hi,

[sage-support] Re: memory leak?

2009-04-30 Thread mabshoff
On Apr 30, 9:15 am, opti iram.che...@gmail.com wrote: Michael, Hi Iram, Thanks for your reply. I did the exact same thing under magma, and it consumes 14 meg. Hehe, you know how to get us going :) Have you found anything new? I did find the cause, but I have not found a fix yet. What

[sage-support] Re: memory leak?

2009-04-29 Thread mabshoff
On Apr 29, 11:11 am, opti iram.che...@gmail.com wrote: Hello, Hi, I am using sage 3.4 I have written a simple sage script to evalute the cardinal of Brent- Suyama elliptic curves s=11 for primes 2^27. Memory usage increases till program (or machine) crashes. The script is the