[issue26601] Use new madvise()'s MADV_FREE on the private heap

Julian Taylor report at bugs.python.org
Fri Apr 22 03:52:18 EDT 2016


Julian Taylor added the comment:

glibcs malloc is not obstack, its not a simple linear heap where one object on top means everything below is not freeable. It also uses MADV_DONTNEED give sbrk'd memory back to the system. This is the place where MADV_FREE can now be used now as the latter does not guarantee a page fault.
But that said of course you can construct workloads which lead to increased memory usage also with malloc and maybe python triggers them more often than other applications. Is there an existing issues showing the problem? It would be a good form of documentation in the source.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26601>
_______________________________________


More information about the Python-bugs-list mailing list