Hi experts!
I have a core i3 3GB RAM Toshiba laptop. Im a newby Ubuntu 13.04, python and sage user. I note that RAM memory becomes full while running script (starts in 50% of RAM ocupation and becomes to 100% (full)). This generate that operating system become slower... In the code few numpy arrays are gereated (each one with ~700 elements or more).
The script looks like this:
  OUTPUT=[]
  number of elements
=[n1,n2,.....]
  numbers of executions
= N
 
for j in number of elements:
        lalala
=[]
       
for i in srange(N):
             
Algorithm is executed 'N' times an append one value in array 'lalala' each time. In each execution three numpy matrix of 300 x 300 (=90000) elements (each one) participate. This matrix are called 'M', 'M_v' and 'M_h' and are re-generated for each 'i' index in the for-cycle.
       
Doing math on all 'N' elements in 'lalala' a 'pipipi' element is generated an then append into OUTPUT array.
When execution ends the OUTPUT array have the same lenght that 'number of elements' array.
In each 'for' cycle, other arrayrs participate.
What can I do for throubleshooting that? IS possible that the algorithm and old arrays are saving in RAM memory? If tahts possible, how can I di for deleting that?
Waiting for your answers.
Thanks a lot!