Re: Python 2.6 still not giving memory back to the OS...

2009-08-25 Thread John Machin
On Aug 25, 2:08 am, Chris Withers ch...@simplistix.co.uk wrote: Martin v. Löwis wrote: Today, there are two cases when malloc returns memory on a typical Unix system (in particular, in Linux malloc): a) if the malloc block block is small (below page size), it is allocated    from the brk

Re: Python 2.6 still not giving memory back to the OS...

2009-08-24 Thread Chris Withers
Martin v. Löwis wrote: Today, there are two cases when malloc returns memory on a typical Unix system (in particular, in Linux malloc): a) if the malloc block block is small (below page size), it is allocated from the brk heap, where it can only be returned if the last page of that heap is

Re: Python 2.6 still not giving memory back to the OS...

2009-08-16 Thread Martin v. Löwis
As far as releasing memory back to the OS is concerned, I have dim memories of *x systems where free() would return space to the OS if the block was large and it was next to the break point ... this effect could be what you are seeing. Today, there are two cases when malloc returns memory on

Re: Python 2.6 still not giving memory back to the OS...

2009-08-16 Thread ryles
On Aug 15, 7:55 am, Chris Withers ch...@simplistix.co.uk wrote: Hi All, I thought this was fixed back in Python 2.5, but I guess not? So, I'm playing in an interactive session:   from xlrd import open_workbook   b = open_workbook('some.xls',pickleable=0,formatting_info=1) At this point,

Python 2.6 still not giving memory back to the OS...

2009-08-15 Thread Chris Withers
Hi All, I thought this was fixed back in Python 2.5, but I guess not? So, I'm playing in an interactive session: from xlrd import open_workbook b = open_workbook('some.xls',pickleable=0,formatting_info=1) At this point, top shows the process usage for python to be about 500Mb. That's okay,

Re: Python 2.6 still not giving memory back to the OS...

2009-08-15 Thread Dave Angel
Chris Withers wrote: div class=moz-text-flowed style=font-family: -moz-fixedHi All, I thought this was fixed back in Python 2.5, but I guess not? So, I'm playing in an interactive session: from xlrd import open_workbook b = open_workbook('some.xls',pickleable=0,formatting_info=1) At this

Re: Python 2.6 still not giving memory back to the OS...

2009-08-15 Thread Mark Dickinson
On Aug 15, 12:55 pm, Chris Withers ch...@simplistix.co.uk wrote: Hi All, I thought this was fixed back in Python 2.5, but I guess not? So, I'm playing in an interactive session:   from xlrd import open_workbook   b = open_workbook('some.xls',pickleable=0,formatting_info=1) At this point,

Re: Python 2.6 still not giving memory back to the OS...

2009-08-15 Thread Christian Heimes
Mark Dickinson wrote: and got the expected memory usage for my Python process, as displayed by top: memory usage went up to nearly 1Gb after each assignment to b, then dropped down to 19 Mb or so after each 'del b'. I get similar results under Python 2.5. I get the same results on Linux:

Re: Python 2.6 still not giving memory back to the OS...

2009-08-15 Thread John Machin
On Aug 16, 2:41 am, Mark Dickinson dicki...@gmail.com wrote: and got the expected memory usage for my Python process, as displayed by top:  memory usage went up to nearly 1Gb after each assignment to b, then dropped down to 19 Mb or so after each 'del b'.  I get similar results under Python