#15498: Memory leak in ideal arithmetic
-------------------------------+------------------------
Reporter: ppurka | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.4
Component: algebra | Resolution:
Keywords: memory leak | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-------------------------------+------------------------
Comment (by SimonKing):
The leak is still there:
{{{
sage: R.<x,y> = QQ[]
sage: count = 0
sage: while R.ideal([x]).groebner_basis() == [x]:
....: count += 1
....: if (count%1000 == 0):
....: print get_memory_usage()
....:
1040.85546875
1054.1875
1067.51171875
1080.83203125
1094.15625
1107.48046875
1120.8046875
...
}}}
and even
{{{
sage: while 1:
....: bla = R.ideal([1]).groebner_basis()
....: count += 1
....: if (count%1000 == 0):
....: print get_memory_usage()
....:
1272.20703125
1285.53125
1298.859375
1312.1796875
1325.50390625
1338.828125
...
}}}
Hard to believe that this should be a leak in Singular. But apparently it
is even in our more basic libsingular wrapper:
{{{
sage: from sage.libs.singular.function import singular_function
sage: groebner = singular_function('groebner')
sage: I = R.ideal(1)
sage: while 1:
bla = groebner(I)
count += 1
if (count%1000 == 0):
print get_memory_usage()
....:
1352.421875
1365.74609375
1379.06640625
1394.38671875
1407.70703125
1421.02734375
...
}}}
Later today I'll try pure singular.
--
Ticket URL: <http://trac.sagemath.org/ticket/15498#comment:14>
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.