Michael Droettboom wrote:
Eric Firing wrote:

I just committed a change to the output formatting of memleak_gui so that if you redirect it to a file, that file can be loaded with pylab.load() in case you want to plot the columns. (At least this is true if you don't use the -c option.)

Great.  Sorry for stomping on that ;)
Yesterday, before your commits, I compared memleak_gui with stock Python 2.4 versus stock 2.5 (both from ubuntu feisty) and found very little difference in the OS memory numbers.
Are they still increasing linearly? I'm still seeing some mystery leaks with Gtk, Qt4 and (much smaller) on Tk. Qt and Wx seem fine here.

Attached are runs with gtk, wx, qtagg, and tkagg. Quite a variety of results: tkagg is best, with only slow memory growth and a constant number of python objects; qtagg grows by 2.2k per loop, with no increase in python object count; wx (which is built on gtk) consumes 3.5k per loop, with an increasing object count; gtk consumes 1.8k per loop with an increasing object count.

All runs are on stock ubuntu feisty python 2.5.

Eric

Unfortunately Qt4 crashes valgrind, so it's not of much use.
I'm curious whether your results match that. I'm not terribly surprised that 2.4 isn't different from 2.5, since the case in which entire memory pools are freed in 2.5 is probably hard to trigger.

Cheers,
Mike

# columns are: iteration, OS memory (k), number of python objects
#
   0    27423    55194
  10    27444    55204
  20    27444    55214
  30    27444    55224
  40    27489    55234
  50    27566    55244
  60    27566    55254
  70    27566    55264
  80    27566    55274
  90    27566    55284
 100    27566    55294
 110    27566    55304
 120    27822    55314
 130    27822    55324
 140    27822    55334
 150    27822    55344
 160    27822    55354
 170    27822    55364
 180    27897    55374
 190    27897    55384
 200    27897    55394
 210    27897    55404
 220    27897    55414
 230    27897    55424
 240    27897    55434
 250    27897    55444
 260    27897    55454
 270    27972    55464
 280    27972    55474
 290    27972    55484
 300    27972    55494
 310    27972    55504
 320    27972    55514
 330    27972    55524
 340    27972    55534
 350    27972    55544
 360    27952    55554
 370    28009    55564
 380    28009    55574
 390    28009    55584
 400    28087    55594
 410    28087    55604
 420    28087    55614
 430    28343    55624
 440    28343    55634
 450    28343    55644
 460    28343    55654
 470    28343    55664
 480    28424    55674
 490    28424    55684
 500    28424    55694
 510    28424    55704
 520    28424    55714
 530    28424    55724
 540    28505    55734
 550    28505    55744
 560    28505    55754
 570    28505    55764
 580    28505    55774
 590    28505    55784
 600    28505    55794
 610    28505    55804
 620    28505    55814
 630    28505    55824
 640    28505    55834
 650    28505    55844
 660    28580    55854
 670    28580    55864
 680    28580    55874
 690    28580    55884
 700    28580    55894
 710    28580    55904
 720    28580    55914
 730    28580    55924
 740    28580    55934
 750    28836    55944
 760    28836    55954
 770    28836    55964
 780    28900    55974
 790    28900    55984
 800    28900    55994
 810    28900    56004
 820    28900    56014
 830    28900    56024
 840    28900    56034
 850    28900    56044
 860    28970    56054
 870    28970    56064
 880    28970    56074
 890    28970    56084
 900    28970    56094
 910    28970    56104
 920    28970    56114
 930    28970    56124
 940    29052    56134
 950    29052    56144
 960    29052    56154
 970    29052    56164
 980    29052    56174
 990    29052    56184
1000    29052    56194
1010    29052    56204
1020    29308    56214
1030    29308    56224
1040    29308    56234
1050    29286    56244
1060    29340    56254
1070    29340    56264
1080    29340    56274
1090    29340    56284
1100    29340    56294
1110    29340    56304
1120    29340    56314
1130    29340    56324
1140    29340    56334
1150    29373    56344
1160    29441    56354
1170    29441    56364
1180    29441    56374
1190    29441    56384
1200    29441    56394
1210    29441    56404
1220    29520    56414
1230    29520    56424
1240    29520    56434
1250    29520    56444
1260    29520    56454
1270    29520    56464
1280    29520    56474
1290    29520    56484
1300    29520    56494
1310    29503    56504
1320    29553    56514
1330    29532    56524
1340    29582    56534
1350    29838    56544
1360    29918    56554
1370    29918    56564
1380    29918    56574
1390    29918    56584
1400    29918    56594
1410    29918    56604
1420    29918    56614
1430    29918    56624
1440    29918    56634
1450    29918    56644
1460    29918    56654
1470    29918    56664
1480    29918    56674
1490    29988    56684
1500    29988    56694
1510    29988    56704
1520    29988    56714
1530    29966    56724
1540    29966    56734
1550    29966    56744
1560    29966    56754
1570    29966    56764
1580    29966    56774
1590    29966    56784
1600    29966    56794
1610    30261    56804
1620    30331    56814
1630    30331    56824
1640    30331    56834
1650    30331    56844
1660    30331    56854
1670    30311    56864
1680    30311    56874
1690    30311    56884
1700    30356    56894
1710    30337    56904
1720    30386    56914
1730    30368    56924
1740    30422    56934
1750    30422    56944
1760    30494    56954
1770    30494    56964
1780    30494    56974
1790    30494    56984
1800    30494    56994
1810    30494    57004
1820    30494    57014
1830    30494    57024
1840    30494    57034
1850    30494    57044
1860    30494    57054
1870    30494    57064
1880    30494    57074
1890    30494    57084
1900    30750    57094
1910    30750    57104
1920    30750    57114
1930    30750    57124
1940    30799    57134
1950    30779    57144
1960    30830    57154
1970    30809    57164
1980    30863    57174
1990    30836    57184
2000    30888    57194
# columns above are: iteration, OS memory (k), number of python objects
#
# uncollectable list: []
#
# Backend GTK, toolbar toolbar2
# Averaging over loops 1000 to 2000
# Memory went from 29052k to 30888k
# Average memory consumed per loop: 1.8360k bytes

# columns are: iteration, OS memory (k), number of python objects
#
   0    18814    75790
  10    18814    75830
  20    18814    75870
  30    18814    75910
  40    18905    75950
  50    18905    75990
  60    18905    76030
  70    19008    76070
  80    19008    76110
  90    19008    76150
 100    19118    76190
 110    19118    76230
 120    19118    76270
 130    19223    76310
 140    19223    76350
 150    19306    76390
 160    19306    76430
 170    19412    76470
 180    19412    76510
 190    19412    76550
 200    19516    76590
 210    19516    76630
 220    19516    76670
 230    19516    76710
 240    19610    76750
 250    19610    76790
 260    19610    76830
 270    19689    76870
 280    19689    76910
 290    19781    76950
 300    19781    76990
 310    19781    77030
 320    19866    77070
 330    19866    77110
 340    19972    77150
 350    19972    77190
 360    19972    77230
 370    20076    77270
 380    20076    77310
 390    20075    77350
 400    20076    77390
 410    20171    77430
 420    20171    77470
 430    20171    77510
 440    20250    77550
 450    20250    77590
 460    20352    77630
 470    20352    77670
 480    20352    77710
 490    20448    77750
 500    20448    77790
 510    20448    77830
 520    20547    77870
 530    20547    77910
 540    20547    77950
 550    20646    77990
 560    20646    78030
 570    20646    78070
 580    20737    78110
 590    20737    78150
 600    20770    78190
 610    20828    78230
 620    20914    78270
 630    20914    78310
 640    21011    78350
 650    21011    78390
 660    21011    78430
 670    21107    78470
 680    21107    78510
 690    21107    78550
 700    21205    78590
 710    21205    78630
 720    21205    78670
 730    21301    78710
 740    21301    78750
 750    21301    78790
 760    21400    78830
 770    21400    78870
 780    21400    78910
 790    21499    78950
 800    21499    78990
 810    21499    79030
 820    21597    79070
 830    21597    79110
 840    21597    79150
 850    21696    79190
 860    21696    79230
 870    21696    79270
 880    21794    79310
 890    21794    79350
 900    21794    79390
 910    21893    79430
 920    21893    79470
 930    21893    79510
 940    21983    79550
 950    21983    79590
 960    21983    79630
 970    22075    79670
 980    22075    79710
 990    22179    79750
1000    22179    79790
1010    22179    79830
1020    22179    79870
1030    22263    79910
1040    22263    79950
1050    22370    79990
1060    22370    80030
1070    22456    80070
1080    22456    80110
1090    22555    80150
1100    22555    80190
1110    22555    80230
1120    22665    80270
1130    22665    80310
1140    22665    80350
1150    22665    80390
1160    22745    80430
1170    22745    80470
1180    22836    80510
1190    22836    80550
1200    22836    80590
1210    22929    80630
1220    22929    80670
1230    23034    80710
1240    23034    80750
1250    23034    80790
1260    23034    80830
1270    23129    80870
1280    23129    80910
1290    23129    80950
1300    23214    80990
1310    23214    81030
1320    23311    81070
1330    23311    81110
1340    23311    81150
1350    23407    81190
1360    23407    81230
1370    23407    81270
1380    23505    81310
1390    23505    81350
1400    23505    81390
1410    23606    81430
1420    23606    81470
1430    23606    81510
1440    23702    81550
1450    23702    81590
1460    23702    81630
1470    23801    81670
1480    23801    81710
1490    23801    81750
1500    23900    81790
1510    23900    81830
1520    23933    81870
1530    24002    81910
1540    24112    81950
1550    24112    81990
1560    24112    82030
1570    24093    82070
1580    24132    82110
1590    24201    82150
1600    24298    82190
1610    24298    82230
1620    24298    82270
1630    24408    82310
1640    24408    82350
1650    24408    82390
1660    24511    82430
1670    24511    82470
1680    24511    82510
1690    24492    82550
1700    24562    82590
1710    24670    82630
1720    24670    82670
1730    24670    82710
1740    24776    82750
1750    24776    82790
1760    24776    82830
1770    24753    82870
1780    24817    82910
1790    24917    82950
1800    24917    82990
1810    24917    83030
1820    25016    83070
1830    25016    83110
1840    25016    83150
1850    25105    83190
1860    25105    83230
1870    25086    83270
1880    25151    83310
1890    25246    83350
1900    25246    83390
1910    25246    83430
1920    25347    83470
1930    25347    83510
1940    25347    83550
1950    25443    83590
1960    25443    83630
1970    25443    83670
1980    25542    83710
1990    25643    83750
2000    25643    83790
# columns above are: iteration, OS memory (k), number of python objects
#
# uncollectable list: []
#
# Backend WX, toolbar toolbar2
# Averaging over loops 1000 to 2000
# Memory went from 22179k to 25643k
# Average memory consumed per loop: 3.4640k bytes

# columns are: iteration, OS memory (k), number of python objects
#
   0    13671    48331
  10    13728    48331
  20    13728    48331
  30    13728    48331
  40    13728    48331
  50    13728    48331
  60    13728    48331
  70    13728    48331
  80    13807    48331
  90    13807    48331
 100    13807    48331
 110    13807    48331
 120    13807    48331
 130    13807    48331
 140    13807    48331
 150    13807    48331
 160    13807    48331
 170    13807    48331
 180    13807    48331
 190    13807    48331
 200    13807    48331
 210    13807    48331
 220    13807    48331
 230    13807    48331
 240    13886    48331
 250    13886    48331
 260    13886    48331
 270    13886    48331
 280    13886    48331
 290    13886    48331
 300    13886    48331
 310    13886    48331
 320    13886    48331
 330    13886    48331
 340    13886    48331
 350    13886    48331
 360    14414    48331
 370    14481    48331
 380    14481    48331
 390    14481    48331
 400    14481    48331
 410    14481    48331
 420    14481    48331
 430    14481    48331
 440    14481    48331
 450    14481    48331
 460    14481    48331
 470    14481    48331
 480    14481    48331
 490    14561    48331
 500    14561    48331
 510    14561    48331
 520    14561    48331
 530    14561    48331
 540    14561    48331
 550    14561    48331
 560    14561    48331
 570    14561    48331
 580    14561    48331
 590    14561    48331
 600    14561    48331
 610    14561    48331
 620    14561    48331
 630    14561    48331
 640    14561    48331
 650    14640    48331
 660    14640    48331
 670    14640    48331
 680    14640    48331
 690    14640    48331
 700    14640    48331
 710    15139    48331
 720    15215    48331
 730    15215    48331
 740    15215    48331
 750    15215    48331
 760    15215    48331
 770    15215    48331
 780    15215    48331
 790    15215    48331
 800    15215    48331
 810    15215    48331
 820    15215    48331
 830    15215    48331
 840    15215    48331
 850    15215    48331
 860    15296    48331
 870    15296    48331
 880    15296    48331
 890    15296    48331
 900    15296    48331
 910    15296    48331
 920    15296    48331
 930    15296    48331
 940    15296    48331
 950    15296    48331
 960    15296    48331
 970    15296    48331
 980    15296    48331
 990    15296    48331
1000    15296    48331
1010    15296    48331
1020    15375    48331
1030    15375    48331
1040    15375    48331
1050    15375    48331
1060    15837    48331
1070    15882    48331
1080    15882    48331
1090    15960    48331
1100    15960    48331
1110    15960    48331
1120    15960    48331
1130    15960    48331
1140    15960    48331
1150    15960    48331
1160    15960    48331
1170    15960    48331
1180    15960    48331
1190    15960    48331
1200    15960    48331
1210    15960    48331
1220    15960    48331
1230    15960    48331
1240    15960    48331
1250    16040    48331
1260    16040    48331
1270    16040    48331
1280    16040    48331
1290    16040    48331
1300    16040    48331
1310    16040    48331
1320    16040    48331
1330    16040    48331
1340    16040    48331
1350    16040    48331
1360    16040    48331
1370    16040    48331
1380    16040    48331
1390    16040    48331
1400    16040    48331
1410    16582    48331
1420    16647    48331
1430    16647    48331
1440    16647    48331
1450    16647    48331
1460    16647    48331
1470    16647    48331
1480    16647    48331
1490    16647    48331
1500    16647    48331
1510    16647    48331
1520    16725    48331
1530    16725    48331
1540    16725    48331
1550    16725    48331
1560    16725    48331
1570    16725    48331
1580    16725    48331
1590    16725    48331
1600    16725    48331
1610    16725    48331
1620    16725    48331
1630    16725    48331
1640    16725    48331
1650    16725    48331
1660    16725    48331
1670    16725    48331
1680    16804    48331
1690    16804    48331
1700    16804    48331
1710    16804    48331
1720    16804    48331
1730    16804    48331
1740    16804    48331
1750    16804    48331
1760    17299    48331
1770    17354    48331
1780    17354    48331
1790    17354    48331
1800    17354    48331
1810    17354    48331
1820    17354    48331
1830    17431    48331
1840    17431    48331
1850    17431    48331
1860    17431    48331
1870    17431    48331
1880    17431    48331
1890    17431    48331
1900    17431    48331
1910    17431    48331
1920    17431    48331
1930    17431    48331
1940    17431    48331
1950    17431    48331
1960    17431    48331
1970    17431    48331
1980    17431    48331
1990    17510    48331
2000    17510    48331
# columns above are: iteration, OS memory (k), number of python objects
#
# uncollectable list: []
#
# Backend QtAgg, toolbar toolbar2
# Averaging over loops 1000 to 2000
# Memory went from 15296k to 17510k
# Average memory consumed per loop: 2.2140k bytes

# columns are: iteration, OS memory (k), number of python objects
#
   0    11396    48258
  10    11566    48258
  20    11632    48258
  30    11632    48258
  40    11632    48258
  50    11632    48258
  60    11632    48258
  70    11632    48258
  80    11632    48258
  90    11632    48258
 100    11632    48258
 110    11632    48258
 120    11632    48258
 130    11632    48258
 140    11632    48258
 150    11632    48258
 160    11632    48258
 170    11632    48258
 180    11632    48258
 190    11632    48258
 200    11632    48258
 210    11632    48258
 220    11632    48258
 230    11632    48258
 240    11632    48258
 250    11631    48258
 260    11632    48258
 270    11632    48258
 280    11632    48258
 290    11632    48258
 300    11632    48258
 310    11632    48258
 320    11632    48258
 330    11632    48258
 340    11632    48258
 350    11632    48258
 360    11632    48258
 370    11632    48258
 380    11632    48258
 390    11632    48258
 400    11632    48258
 410    11632    48258
 420    11632    48258
 430    11632    48258
 440    11632    48258
 450    11632    48258
 460    11632    48258
 470    11632    48258
 480    11711    48258
 490    11711    48258
 500    11711    48258
 510    11711    48258
 520    11711    48258
 530    11711    48258
 540    11711    48258
 550    11711    48258
 560    11711    48258
 570    11711    48258
 580    11711    48258
 590    11711    48258
 600    11711    48258
 610    11711    48258
 620    11711    48258
 630    11711    48258
 640    11711    48258
 650    11711    48258
 660    11711    48258
 670    11711    48258
 680    11711    48258
 690    11711    48258
 700    11711    48258
 710    11711    48258
 720    11711    48258
 730    11711    48258
 740    11711    48258
 750    11711    48258
 760    11711    48258
 770    11711    48258
 780    11711    48258
 790    11711    48258
 800    11711    48258
 810    11711    48258
 820    11711    48258
 830    11711    48258
 840    11711    48258
 850    11711    48258
 860    11711    48258
 870    11711    48258
 880    11711    48258
 890    11711    48258
 900    11711    48258
 910    11711    48258
 920    11711    48258
 930    11711    48258
 940    11711    48258
 950    11711    48258
 960    11710    48258
 970    11711    48258
 980    11711    48258
 990    11711    48258
1000    11711    48258
1010    11711    48258
1020    11711    48258
1030    11711    48258
1040    11711    48258
1050    11711    48258
1060    11711    48258
1070    11711    48258
1080    11711    48258
1090    11711    48258
1100    11711    48258
1110    11711    48258
1120    11711    48258
1130    11711    48258
1140    11711    48258
1150    11711    48258
1160    11711    48258
1170    11711    48258
1180    11711    48258
1190    11711    48258
1200    11711    48258
1210    11711    48258
1220    11711    48258
1230    11711    48258
1240    11711    48258
1250    11711    48258
1260    11711    48258
1270    11711    48258
1280    11711    48258
1290    11711    48258
1300    11711    48258
1310    11711    48258
1320    11711    48258
1330    11792    48258
1340    11792    48258
1350    11792    48258
1360    11792    48258
1370    11792    48258
1380    11792    48258
1390    11792    48258
1400    11792    48258
1410    11792    48258
1420    11792    48258
1430    11792    48258
1440    11792    48258
1450    11791    48258
1460    11792    48258
1470    11792    48258
1480    11792    48258
1490    11792    48258
1500    11792    48258
1510    11792    48258
1520    11792    48258
1530    11792    48258
1540    11792    48258
1550    11792    48258
1560    11792    48258
1570    11792    48258
1580    11792    48258
1590    11792    48258
1600    11792    48258
1610    11792    48258
1620    11792    48258
1630    11792    48258
1640    11792    48258
1650    11792    48258
1660    11792    48258
1670    11792    48258
1680    11792    48258
1690    11792    48258
1700    11792    48258
1710    11792    48258
1720    11792    48258
1730    11792    48258
1740    11792    48258
1750    11792    48258
1760    11792    48258
1770    11792    48258
1780    11792    48258
1790    11792    48258
1800    11792    48258
1810    11792    48258
1820    11792    48258
1830    11792    48258
1840    11792    48258
1850    11792    48258
1860    11792    48258
1870    11792    48258
1880    11792    48258
1890    11792    48258
1900    11792    48258
1910    11792    48258
1920    11792    48258
1930    11792    48258
1940    11792    48258
1950    11792    48258
1960    11792    48258
1970    11792    48258
1980    11792    48258
1990    11792    48258
2000    11792    48258
# columns above are: iteration, OS memory (k), number of python objects
#
# uncollectable list: []
#
# Backend TkAgg, toolbar toolbar2
# Averaging over loops 1000 to 2000
# Memory went from 11711k to 11792k
# Average memory consumed per loop: 0.0810k bytes

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to