Apologies for adding to my own post. <code><span>multiprocessing</span><span>.</span><span>Array</span><span>(</span><span>...) <font face="arial,helvetica,sans-serif">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  </font></span></code><code><span>multiprocessing</span><span>.</span><span>Array</span><span> <font face="arial,helvetica,sans-serif">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.</font></span></code><br>
<br><div class="gmail_quote">On Mon, Apr 11, 2011 at 12:42 PM, srean <span dir="ltr"><<a href="mailto:srean.list@gmail.com">srean.list@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi everyone,<br><br>  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 that<code><span> multiprocessing</span><span>.</span><span>Array</span><span>(</span><span>...) <font face="arial,helvetica,sans-serif">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 </font></span></code><code><span>multiprocessing</span><span>.</span><span>Array</span><span>(</span><span>...)<font face="arial,helvetica,sans-serif"> over simple numpy mmaped arrays.<br>

<br>Regards<br>  srean<br></font></span></code><code><span></span></code>
</blockquote></div><br>