#17494: Memory leak for letterplace implementation of free algebras
-------------------------------------------------+-------------------------
Reporter: SimonKing | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: memleak | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: Fixed upstream, in a later | Work issues:
stable release. | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Comment (by nbruin):
Replying to [comment:3 rws]:
> Maybe related: http://ask.sagemath.org/question/29444/high-memory-usage-
when-substituting-variables/
I think that points to a more basic and hence more severe memory leak.
{{{
import gc, collections
gc.collect()
old=set( id(a) for a in gc.get_objects())
R.<x,y,z>=ZZ[]
f=12^2*(x^4+y^4)-15^2*(x^2+y^2)*z^2+350*x^2*y^2+9^2*z^4
pt=[1,2,3]
m=get_memory_usage()
for i in xrange(10^5):
temp=f(x=x+pt[0]*z,y=y+pt[1]*z,z=pt[2]*z) #This also uses a lot of
memory.
if (i% 100) == 0:
print get_memory_usage()-m
gc.collect()
new=collections.Counter( str(type(a)) for a in gc.get_objects() if id(a)
not in old)
new
}}}
This code clearly shows leaking and it shows the leak is not in python
reference counted objects. I would find it hard to believe that such a
basic leak in normal polynomial arithmetic would go unnoticed in Singular,
so I would expect the error is somewhere in the sage/singular interface.
--
Ticket URL: <http://trac.sagemath.org/ticket/17494#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.