Antoine Pitrou <pit...@free.fr> added the comment:
Ok, this is because the multiprocessing Heap object never releases any unused
arena objects, so the shared memory you allocate will probably stay allocated
until the process tree ends.
It is possible to change the strategy to delete unused arenas, though it's
unsure whether doing so has adverse consequences (such as making later
allocations costlier). It may make sense to only reclaim the larger arenas
(larger than 1MB perhaps?).
versions: +Python 3.8 -Python 3.5, Python 3.6
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list