[Numpy-discussion] Memory leak when looking .flags
Cyrille Rosset
rosset at lal.in2p3.fr
Sun May 20 22:39:05 EDT 2007
Hi,
I'm not sure this is the right mailing list for this, but it seems
there's a memory leak when looking at flags :
>>> from numpy import *
>>> x=ones(50000000) #==> python use 25% of memory (ok)
>>> del x
#==> memory usage fall back to almost zero (as seen in top)
Thqt's good.
but if I look at flags before the del :
>>> x=ones(50000000)
>>> x.flags
C_CONTIGUOUS : True
F_CONTIGUOUS : True
OWNDATA : True
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : False
>>> del x
>>> who()
Upper bound on total bytes = 0
That looks nice, but the memory usage by python (in top) is still 25%...
Isn't it a bug ?
Cheers
Cyrille Rosset.
More information about the NumPy-Discussion
mailing list