[zeromq-dev] How does Zeromq Scale ?

Pieter Hintjens ph at imatix.com
Fri Nov 11 08:47:36 CET 2011

On Wednesday, November 9, 2011, rahul r wrote:

> Just want to double check that I understood, your saying if i run zmq in
> ideal conditions , i will still have one worker thread for each CPU core.
> That is , if i have a dual core system i will have totally 2 worker
> threads each for one core. ?
Not quite. You're confusing worker threads and I/O threads.

You need 1 I/O thread for each gigabyte/second of data you're transferring
in or out of a process, roughly.

Then you can split the remaining cores among worker threads.

The context option sets the number of I/O threads, not worker threads.

Each process has its own I/O thread or threads.

It's unlikely you'll get real scaling on a 2-core box. Under 4 cores, use 1
I/O thread and a handful of worker threads.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111111/89234660/attachment.htm>

More information about the zeromq-dev mailing list