Re: Python memory handling



On May 31, 11:00 am, Thorsten Kampe <thors...@xxxxxxxxxxxxxxxx> wrote:

If it's swapped to disk than this is a big concern. If your Python app
allocates 600 MB of RAM and does not use 550 MB after one minute and
this unused memory gets into the page file then the Operating System
has to allocate and write 550 MB onto your hard disk. Big deal.

You have a long-running python process that allocates 550Mb of _small_
objects and then never again uses more than a tenth of that space?

This is an abstract corner case, and points more to a multi-process
design rather than a flaw in python.

The unbounded size of python's int/float freelists are slightly more
annoying problems, but nearly as trivial.

-Mike

.



Relevant Pages

  • Re: CFileDialog multi selection buffer!!!????
    ... It allocates a lot of unused memory, i was looking for somethings that let me ... CFileDialog store the path of folder browsed and only the file name of ... >> In any cases i've allocated a buffer large enought to store so many files ...
    (microsoft.public.vc.mfc)
  • Re: how many threads? network programming design .NET
    ... to an underlying operating system thread, and allocates 1M of virtual ... address space from the operating system, so you are probably bumping into ... > I am programming a multi-threaded asyncronous server with .NET ...
    (microsoft.public.dotnet.general)
  • Re: how many threads? network programming design .NET
    ... to an underlying operating system thread, and allocates 1M of virtual ... address space from the operating system, so you are probably bumping into ... > I am programming a multi-threaded asyncronous server with .NET ...
    (microsoft.public.dotnet.framework)