Antoine Pitrou <> 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 <>
Python-bugs-list mailing list

Reply via email to