Memory Leak in Python 2.5.1?

2007-06-05 Thread Suresh Kumar
Hi, I am currently investigating what seems to be a memory leak in python. (version 2.5.1). I have made python work with a custom memory sub-allocator (pool). The idea is to preallocate a pool of memory during initialization of my application and ensure that Python doesn't make any s

Re: Memory leak in Python

2006-05-12 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Serge Orlov <[EMAIL PROTECTED]> writes >The next step is to find out what type of objects contributes to the >growth most of all, Shame you aren't on Windows, as Python Memory Validator does all of this. >after that print several object of that type that >didn't

Re: Memory leak in Python

2006-05-11 Thread darshan . purandare
Either of it would do, I am creating a discrete time simulator. -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory leak in Python

2006-05-11 Thread Serge Orlov
[EMAIL PROTECTED] wrote: > I ran simulation for 128 nodes and used the following > > oo = gc.get_objects() > print len(oo) > > on every time step the number of objects are increasing. For 128 nodes > I had 1058177 objects. > > I think I need to revisit the code and remove the referencesbut how

Re: Memory leak in Python

2006-05-11 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Sure, are there any available simulators...since i am modifying some > stuff i thought of creating one of my own. But if you know some > exisiting simlators , those can be of great help to me. http://simpy.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/pyth

Re: Memory leak in Python

2006-05-11 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > Sure, are there any available simulators...since i am modifying some > stuff i thought of creating one of my own. But if you know some > exisiting simlators , those can be of great help to me. Don't know any by name, but I'm sure you can find some on Google

Re: Memory leak in Python

2006-05-10 Thread diffuser78
I ran simulation for 128 nodes and used the following oo = gc.get_objects() print len(oo) on every time step the number of objects are increasing. For 128 nodes I had 1058177 objects. I think I need to revisit the code and remove the referencesbut how to do that. I am still a newbie coder an

Re: Memory leak in Python

2006-05-10 Thread diffuser78
With 1024 nodes it runs fine...but takes around4 hours to run on AMD 3100. -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory leak in Python

2006-05-10 Thread diffuser78
Sure, are there any available simulators...since i am modifying some stuff i thought of creating one of my own. But if you know some exisiting simlators , those can be of great help to me. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory leak in Python

2006-05-10 Thread bruno at modulix
[EMAIL PROTECTED] wrote: (top-post corrected) > > bruno at modulix wrote: > >>[EMAIL PROTECTED] wrote: >> >>>I have a python code which is running on a huge data set. After >>>starting the program the computer becomes unstable and gets very >>>diffucult to even open konsole to kill that process.

Re: Memory leak in Python

2006-05-10 Thread Serge Orlov
[EMAIL PROTECTED] wrote: > I am using Ubuntu Linux. > > My program is a simulation program with four classes and it mimics bit > torrent file sharing systems on 2000 nodes. Now, each node has lot of > attributes and my program kinds of tries to keep tab of everything. As > I mentioned its a simulat

Re: Memory leak in Python

2006-05-10 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > My program is a simulation program with four classes and it mimics > bittorrent file sharing systems on 2000 nodes. Wouldn't it be better to use an existing simulator? That way, you won't have to do the stuff you don't want to think about, and focus on the

Re: Memory leak in Python

2006-05-09 Thread Karthik Gurusamy
[EMAIL PROTECTED] wrote: > The amount of data I read in is actually small. > > If you see my algorithm above it deals with 2000 nodes and each node > has ot of attributes. > > When I close the program my computer becomes stable and performs as > usual. I check the performance in Performance monito

Re: Memory leak in Python

2006-05-09 Thread diffuser78
The amount of data I read in is actually small. If you see my algorithm above it deals with 2000 nodes and each node has ot of attributes. When I close the program my computer becomes stable and performs as usual. I check the performance in Performance monitor and using "top" and the total memory

Re: Memory leak in Python

2006-05-09 Thread diffuser78
I am using Ubuntu Linux. My program is a simulation program with four classes and it mimics bit torrent file sharing systems on 2000 nodes. Now, each node has lot of attributes and my program kinds of tries to keep tab of everything. As I mentioned its a simulation program, it starts at time T=0 a

Re: Memory leak in Python

2006-05-09 Thread bruno at modulix
[EMAIL PROTECTED] wrote: > I have a python code which is running on a huge data set. After > starting the program the computer becomes unstable and gets very > diffucult to even open konsole to kill that process. What I am assuming > is that I am running out of memory. > > What should I do to make

Re: Memory leak in Python

2006-05-09 Thread Peter Tillotson
1) Review your design - You say you are processing a large data set, just make sure you are not trying to store 3 versions. If you are missing a design, create a flow chart or something that is true to the code you have produced. You could probably even post the design if you are brave enough. 2)

Re: Memory leak in Python

2006-05-09 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > I have a python code which is running on a huge data set. After > starting the program the computer becomes unstable and gets very > diffucult to even open konsole to kill that process. What I am > assuming is that I am running out of memory. Before acting

Re: Memory leak in Python

2006-05-08 Thread diffuser78
Its kinda 65o lines of code...not the best idea to paste the code. [EMAIL PROTECTED] wrote: > Can you paste an example of the code you're using? -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory leak in Python

2006-05-08 Thread vbgunz
how big is the set? 100MB, more? what are you doing with the set? do you have a small example that can prove the set is causing the freeze? I am not the sharpest tool in the shed but it sounds like you might be multiplying your set in/directly either permanently or temporarily on purpose or acciden

Re: Memory leak in Python

2006-05-08 Thread compromise
Can you paste an example of the code you're using? -- http://mail.python.org/mailman/listinfo/python-list

Memory leak in Python

2006-05-08 Thread diffuser78
I have a python code which is running on a huge data set. After starting the program the computer becomes unstable and gets very diffucult to even open konsole to kill that process. What I am assuming is that I am running out of memory. What should I do to make sure that my code runs fine without

Fwd: Memory leak in python

2005-04-20 Thread Abhishek S
Hi Nick, Thanks for reply... Please include me in reply. Currently i am not in the list (i will subscribe soon) I upgarded to 2.4.1 - still the same issue. Nick> Thats not a lot of leak - have you done that over a longer time period? Abhi> I have tried for 4 days. It has reached 150MB. Nick> A

Re: Memory leak in python

2005-04-19 Thread Nick Craig-Wood
Abhishek S <[EMAIL PROTECTED]> wrote: > I am seeing that the python application is very slowly > eating up the memory. i need help to indentify it. > > It start with 11MB and keeps growing by 1 MB around > every 30mins. > > #top | grep python > 10351 root 15 0 26584 25M 3896 S

Re: Memory leak in python

2005-04-19 Thread Fredrik Lundh
"Abhishek S" <[EMAIL PROTECTED]> wrote: > I am seeing that the python application is very slowly > eating up the memory. i need help to indentify it. what Python application? > It start with 11MB and keeps growing by 1 MB around > every 30mins. have you checked for growing lists (etc)? --

Memory leak in python

2005-04-19 Thread Abhishek S
Hi, using python2.2.2 I am seeing that the python application is very slowly eating up the memory. i need help to indentify it. It start with 11MB and keeps growing by 1 MB around every 30mins. #top | grep python 10351 root 15 0 26584 25M 3896 S 0.5 0.8 46:05 1 python2 10351 ro