On Dec 14, 2010, at 1:50 PM, Benjamin Root wrote:

On Tue, Dec 14, 2010 at 3:18 PM, Russell E. Owen <ro...@uw.edu> wrote:
I tried the test script on linux using matplotlib svn trunk rev8840
(which appears to include your patch) and found a leak that starts out
small but gets systematically larger. This is with Python 2.6.5 and
Tkinter built against Tcl/Tk 8.4.13.

Is anyone else seeing this?

time   rss memory    mem/sec
(sec)     (kb)      (kb/sec)
  0.0    36816       nan
  5.0    36860       nan
 10.0    36860       0.0
 15.1    36860       0.0
 20.1    36860       0.0
 25.1    36896       1.8
...
 326.5    36896       0.1
 331.6    36972       0.3
...
 401.9    36972       0.3
 406.9    36980       0.3
  ...
 602.8    37684       1.4
 607.8    37700       1.4

This is different behavior than on Mac OS X, but still alarming.

-- Russell


Russell,

I am curious, I recently ran into problems with mixing builds of numpy and matplotlib at various levels of revisions. I eventually had to do a complete clean rebuild. Note, what I mean by a complete clean rebuild is that I removed the numpy and matplotlib source directories and re-checkout the codes from source and then rebuild. I would be curious if the problem persists after that.

An interesting question. I can say that this was a clean build of matplotlib since I ran it "in place" (in build/lib.linux-x86_64-2.6/) after building it rather than installing it in site-packages to avoid messing up other users (on the linux system this was a shared python). I modified the script to print matplotlib.__file__ to make sure I was running the right version. I doubt it was a clean build of numpy. But considering no numerics are occurring in this example (it is literally just creating an Axes on a Canvas and calling canvas.draw() repeatedly) do you think numpy could possibly come into this?

Might you run the script on your system with the clean build?

-- Russell

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to