Dimitar Tasev added the comment:

If I understand correctly, there is no way to force the old behaviour in Python 
3.5, i.e. to use an anonymous memory mapping in multiprocessing.heap.Arena so 
that the memory can be shared between the processes instead of writing to a 
shared file?

The data sizes usually are, on average, 20 GB, and writing it out to a file is 
not desirable. As I understand from Gareth Rees' comment, ftruncate() will 
speed up initialisation, however any processing afterwards would be IO capped.

To shed more light to the processing going on, the data is handled as a 3D 
array, so each process gets a 2D array to operate on, and no information needs 
to be shared between processes.

If the anonymous memory mapping cannot be forced, then the multiprocessing 
module with a shared array becomes unusable for me. Are you aware of any way to 
use the multiprocessing module to run execution in parallel, that somehow 
doesn't use a shared array?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30919>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to