Beginning to be disapointed

Christian Tismer tismer at tismer.com
Thu Apr 6 15:18:41 EDT 2000


Johann Hibschman wrote:
> 
> Hugues Demers writes:
> 
> > Can somebody help me on this? I'm using python to read big arrays
> > (100x2000) of float. I manipulate those arrays, I do small
> > operations on them. That is ok. I do others smalls calculations not
> > involving the big arrays and then the interpreter hang ! The cpu
> > percentage used by python goes up and there is nothing else to be
> > done except to kill the interpreter. I have no idea what's going
> > on. Do I need to free memory in some way ? Am I doing something
> > wrong ? There is nothing special about the calculations involving
> > the big arrays. The only thing special is that they are big.
> 
> Are you using the Numeric package?  I've never seen behaviour like that.
> 
> 1. are you using Numeric or array?
> 2. how are you reading them in?
> 3. how are you calculating them?  Numeric math ops or explicit loops over
>    raw arrays?
> 4. could something be keeping a reference to the arrays?
> 5. what OS are you on?
> 6. version of python?

7. How much memory does your machine have?

It sounds like memory becomes very fragmented, and Python is
swapping all the time to get some space between scattered
objects.

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer at appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com




More information about the Python-list mailing list