[issue8426] multiprocessing.Queue fails to get() very large objects

Brian Cain report at bugs.python.org
Tue Apr 19 04:54:11 CEST 2011


Brian Cain <brian.cain at gmail.com> added the comment:

Please don't close the issue.

Joining aside, the basic point ("But when size = 7279, the data submitted
reaches 64k, so the writting thread blocks on the write syscall.") is not
clear from the docs, right?

IMO, it would be nice if I could ask my queue, "Just what is your capacity
(in bytes, not entries) anyways?  I want to know how much I can put in here
without worrying about whether the remote side is dequeueing."  I guess I'd
settle for explicit documentation that the bound exists.  But how should I
expect my code to be portable?  Are there platforms which provide less than
64k?  Less than 1k?  Less than 256 bytes?

----------
Added file: http://bugs.python.org/file21709/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8426>
_______________________________________
-------------- next part --------------
Please don&#39;t close the issue.<div><br></div><div>Joining aside, the basic point (&quot;<span class="Apple-style-span" style="font-family: monospace; font-size: 12px; line-height: 17px; white-space: pre-wrap; ">But when size = 7279, the data submitted reaches 64k, so the writting thread blocks on the write syscall.</span><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">&quot;) is not clear from the docs, right?</span></div>
<div><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px"><br></span></div><div><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">IMO, it would be nice if I could ask my queue, &quot;Just what is your capacity (in bytes, not entries) anyways?  I want to know how much I can put in here without worrying about whether the remote side is dequeueing.&quot;  I guess I&#39;d settle for explicit documentation that the bound exists.  But how should I expect my code to be portable?  Are there platforms which provide less than 64k?  Less than 1k?  Less than 256 bytes?</span></div>



More information about the Python-bugs-list mailing list