[zeromq-dev] non-deterministic result of test/test_shutdown_stress

Chuck Remes cremes.devlist at mac.com
Wed Mar 2 17:44:42 CET 2011


On Mar 2, 2011, at 10:19 AM, Vick Khera wrote:

> While playing with the perl bindings, I was rebuilding zeromq-2.1.1.
> In fact, I rebuilt it several times :)
> 
> On occasion, make check will fail.  It will always fail only on the
> test_shutdown_stress test.  I tried this on two separate boxes: one is
> a VMware virtual machine (vk-dev below) and the other is a traditional
> hardware machine.  The major difference is the former is running
> FreeBSD 8.2 and the other 8.1.  I don't believe that to be of
> significance here.
> 
> I also fired up a CentOS 5 vm and it never fails the shutdown stress
> test program.

OSX suffers from the same issue. I believe it is due to the default size of the OS buffers used for socketpairs which 0mq uses extensively for internal signaling. On FreeBSD and OSX those buffers are too small to handle the "stress test.t"

Try bumping up these two sets of buffers and see if it ever fails:

  net.local.stream.sendspace=3000000
  net.local.stream.recvspace=3000000

Obviously, fill in whatever value you feel is sufficient.

cr




More information about the zeromq-dev mailing list