"High water" Memory fragmentation still a thing?
croepha at gmail.com
Fri Oct 3 20:36:20 CEST 2014
Does python in general terms (apart from extensions or gc manipulation),
exhibit a "high water" type leak of allocated memory in recent python
>From the post:
Long running Python jobs that consume a lot of memory while running may not
return that memory to the operating system until the process actually
terminates, even if everything is garbage collected properly. That was news
to me, but it's true. What this means is that processes that do need to use
a lot of memory will exhibit a "high water" behavior, where they remain
forever at the level of memory usage that they required at their peak.
Note: this behavior may be Linux specific; there are anecdotal reports that
Python on Windows does not have this problem.
This problem arises from the fact that the Python VM does its own internal
memory management. It's commonly know as memory fragmentation.
Unfortunately, there doesn't seem to be any fool-proof method of avoiding
However this paper seems to indicate that that is not a modern problem:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list