On Dec 30, 2013, at 1:37 PM, "Protas, Meredith" <[email protected]> wrote:

> Hi,
> 
> I'm very new to python so I'm sorry about such a basic question.
> 
> I am using a python script generated by another person.  I have used this 
> script multiple times before and it takes around 24 hours to run.  Recently, 
> I have tried to run the script again (the same exact command lines) and it is 
> much much slower.  I have tried on two different computers with the same 
> result.  I used top to see if there were any suspicious functions that were 
> happening but there seems to not be.  I also ran another python script I used 
> before and that went at the same speed as before so the problem seems unique 
> to the first python script.
> 
> Does anyone have any idea why it is so much slower now than it used to be 
> (just around a month ago).
> 
> Thanks for your help!
> 
> Meredith

Meredith,  This is just a slight expansion on the note you received from Alan.  
Is there any chance that the script now is paging itself to death?  That is, if 
you are reading a huge amount of data into a structure in memory, and if it no 
longer fits in available physical memory (either because the amount of data to 
be read has grown or the number of other processes that are occupying memory 
have grown), then that data structure may have gone virtual and the OS may be 
swapping it out to disk.  That would dramatically increase the amount of 
elapsed wall time the program takes to run.

If you can tell us more about what the program actually is doing or 
calculating, we might be able to offer more help.

-Bill
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to