Ticket #4683 (closed defect: fixed)

Opened 21 months ago

Last modified 8 months ago

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

Reported by: ggrafendorfer Owned by: somebody
Priority: major Milestone: sage-4.3.1
Component: basic arithmetic Keywords:
Cc: Author(s):
Report Upstream: N/A Reviewer(s):
Merged in: Work issues:

Description

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

Change History

Changed 21 months ago by mabshoff

Hi Georg,

this looks like a dupe of #4639.

Cheers,

Michael

Changed 21 months ago by ggrafendorfer

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

Changed 21 months ago by mabshoff

  • milestone changed from sage-3.4 to sage-3.2.2

Changed 21 months ago by mabshoff

#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

Changed 15 months ago by AlexGhitza

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

Changed 8 months ago by wjp

  • status changed from new to closed
  • resolution set to fixed
  • upstream set to N/A

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

Note: See TracTickets for help on using tickets.