Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory leak when performing the calculation CDF(I)^2 #4683

Closed
sagetrac-ggrafendorfer mannequin opened this issue Dec 3, 2008 · 5 comments
Closed

memory leak when performing the calculation CDF(I)^2 #4683

sagetrac-ggrafendorfer mannequin opened this issue Dec 3, 2008 · 5 comments

Comments

@sagetrac-ggrafendorfer
Copy link
Mannequin

sagetrac-ggrafendorfer mannequin commented Dec 3, 2008

Using sage 3.2 (compiled from sources) on a 32-bit Core Duo machine running Debian Etch,
when performing

georg@HILBERT:~/Daten/Sync/Phd/Code/sde$ sage
----------------------------------------------------------------------
| Sage Version 3.2, Release Date: 2008-11-20                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage: v = [CDF(i)^2 for n in range(50000)]
sage: v = [CDF(i)^2 for n in range(50000)]
sage: v = [CDF(i)^2 for n in range(50000)]

memory consumption increases about 70Mb which each command (at least on my machine),
this does not happen if one writes

sage: v = [CDF(i^2.) for n in range(50000)]

, however, results are the same,

Georg

Component: basic arithmetic

Issue created by migration from https://trac.sagemath.org/ticket/4683

@sagetrac-ggrafendorfer sagetrac-ggrafendorfer mannequin added this to the sage-3.4 milestone Dec 3, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 3, 2008

comment:1

Hi Georg,

this looks like a dupe of #4639.

Cheers,

Michael

@sagetrac-ggrafendorfer
Copy link
Mannequin Author

sagetrac-ggrafendorfer mannequin commented Dec 3, 2008

comment:2

A yes, probably, I'm sorry, did not look ...
Georg

@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.4, sage-3.2.2 Dec 15, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 17, 2008

comment:4

#4639 fixes the vast majority of the problem here, but:

sage: v = [CDF(i)^2 for n in range(50000)]
sage: get_memory_usage()
421.88671875
sage: v = [CDF(i)^2 for n in range(50000)]
sage: get_memory_usage()
422.140625
sage: v = [CDF(i)^2 for n in range(50000)]
sage: get_memory_usage()
422.15234375
sage: v = [CDF(i)^2 for n in range(50000)]
sage: get_memory_usage()
422.40625

So still some small leak to go. I will poke around post 3.2.2.

Cheers,

Michael

@aghitza
Copy link

aghitza commented Jun 3, 2009

comment:5

Hmmm:

----------------------------------------------------------------------
| Sage Version 4.0.1.alpha0, Release Date: 2009-05-31                |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: v = [CDF(i)^2 for n in range(50000)]
sage: get_memory_usage()
134.1328125
sage: v = [CDF(i)^2 for n in range(50000)]
sage: get_memory_usage()
136.578125
sage: v = [CDF(i)^2 for n in range(50000)]
sage: get_memory_usage()
136.7734375
sage: v = [CDF(i)^2 for n in range(50000)]
sage: get_memory_usage()
136.7734375
sage: get_memory_usage()
136.7734375
sage: v = [CDF(i)^2 for n in range(50000)]
sage: get_memory_usage()
136.7734375

@wjp
Copy link
Mannequin

wjp mannequin commented Jan 17, 2010

comment:6

I don't see any growth in memory usage anymore either. I guess we can safely close it.

@wjp wjp mannequin closed this as completed Jan 17, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant