Python memory handling

Klaas mike.klaas at gmail.com
Thu May 31 14:18:13 EDT 2007


On May 31, 11:00 am, Thorsten Kampe <thors... at thorstenkampe.de> 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




More information about the Python-list mailing list