[Numpy-discussion] memory usage

Vincent Schut schut at sarvision.nl
Wed Oct 15 03:24:02 EDT 2008


Huang-Wen Chen wrote:
> Robert Kern wrote:
>>> from numpy import *
>>> for i in range(1000):
>>>   a = random.randn(512**2)
>>>   b = a.argsort(kind='quick')
>> Can you try upgrading to numpy 1.2.0? On my machine with numpy 1.2.0
>> on OS X, the memory usage is stable.
>>   
> I tried the code fragment on two platforms and the memory usage is also 
> normal.
> 
> 1. numpy 1.1.1, python 2.5.1 on Vista 32bit
> 2. numpy 1.2.0, python 2.6 on RedHat 64bit

If I recall correctly, there were some major improvements in python's 
memory management/garbage collection from version 2.4 to 2.5. If you 
could try to upgrade your python to 2.5 (and possibly also your numpy to 
1.2.0), you'd probably see some better behaviour.

Regards,
Vincent.




More information about the NumPy-Discussion mailing list