Hi all,

I've did some experimenting wirh socketpair (on Linux).

It turns out that the default size of the buffer is 120kB.

I can write 422 48-byte commands before it blocks.

Even if I shortened the command to 1 byte, still I could write at most 
422 commands before blocking.

Thus, socketpair looks to be pretty memory-inefficient: It uses ~300 
bytes of the buffer space per write, even though you write as little as 
1 byte.

That explains why the overflows happen rather often.

Thoughts?
Martin

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to