[zeromq-dev] How does Zeromq Scale ?

Martin Sustrik sustrik at 250bpm.com
Wed Nov 9 10:27:09 CET 2011

On 11/09/2011 10:11 AM, 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. ?

Yes. But you have to specify the number "2" by hand at the moment. Also, 
the worker threads have no affinity to CPU cores and we rely on the OS 
to use one thread per core rather than placing all the worker threads on 
the same CPU.

Note that this functionality is not implemented bacause AFAIK there's no 
POSIX interface for doing it. It would have to be done on OS-by-OS basis.

> So , if i have to only worry about hardware manifestation ( maximum
> utilization of all my cores ) and not manually assignment of worker
> thread to core. I dont have to make any changes in 0mq context ?

Yes, but with the above caveats.


More information about the zeromq-dev mailing list