#10548: ModularSymbols_clear_cache() not clearing everything?
-----------------------------+----------------------------------------------
Reporter: mderickx | Owner: craigcitro
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.2
Component: modular forms | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
When I was doing some computations on modular forms, I noticed the
following strange memory usage behaviour which. After the first two
iterations it seems like there is a memory leak. But strangely enough it
stops leaking at the third iteration.
{{{
sage: import gc
sage: gc.collect()
54
sage: get_memory_usage()
819.7578125
sage: for i in xrange(10):
....: ModularSymbols(Gamma1(97),sign=1)
....: ModularSymbols_clear_cache()
....: gc.collect()
....: get_memory_usage()
....:
Modular Symbols space of dimension 440 for Gamma_1(97) of weight 2 with
sign 1 and over Rational Field
0
842.58984375
Modular Symbols space of dimension 440 for Gamma_1(97) of weight 2 with
sign 1 and over Rational Field
0
860.08203125
Modular Symbols space of dimension 440 for Gamma_1(97) of weight 2 with
sign 1 and over Rational Field
37640
876.63671875
Modular Symbols space of dimension 440 for Gamma_1(97) of weight 2 with
sign 1 and over Rational Field
37640
878.2421875
Modular Symbols space of dimension 440 for Gamma_1(97) of weight 2 with
sign 1 and over Rational Field
37640
878.76953125
Modular Symbols space of dimension 440 for Gamma_1(97) of weight 2 with
sign 1 and over Rational Field
37640
880.2421875
Modular Symbols space of dimension 440 for Gamma_1(97) of weight 2 with
sign 1 and over Rational Field
37640
880.2421875
Modular Symbols space of dimension 440 for Gamma_1(97) of weight 2 with
sign 1 and over Rational Field
37640
880.2421875
Modular Symbols space of dimension 440 for Gamma_1(97) of weight 2 with
sign 1 and over Rational Field
37640
880.2421875
Modular Symbols space of dimension 440 for Gamma_1(97) of weight 2 with
sign 1 and over Rational Field
37640
880.2421875
}}}
It would be nice to be able to create modular symbols without needing to
restart sage to get all your memory back.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10548>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.