Apologies for adding to my own post. multiprocessing.Array(...) uses an
anonymous mmapped file. I am not sure if that means it is resident on RAM or
the swap device. But my original question remains, what are the pros and
cons of using it versus numpy mmapped arrays. If  multiprocessing.Array is
indeed resident in memory (subject to swapping of course) that would still
be advatageous compared to a file mapped from a on-disk filesystem.

On Mon, Apr 11, 2011 at 12:42 PM, srean <srean.l...@gmail.com> wrote:

> Hi everyone,
>
>   I was looking up the options that are available for shared memory arrays
> and this thread came up at the right time. The doc says thatmultiprocessing
> .Array(...) gives a shared memory array. But from the code it seems to me
> that it is actually using a mmap. Is that correct a correct assessment, and
> if so, is there any advantage in using multiprocessing.Array(...) over
> simple numpy mmaped arrays.
>
> Regards
>   srean
>
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to