[zeromq-dev] How does Zeromq Scale ?
Antonio Teixeira
eagle.antonio at gmail.com
Wed Nov 9 10:22:30 CET 2011
Hello Martin & Others
So that means in python this should do it to enjoy the full multicore power
?
import zmq
from multiprocessing import cpu_count
zmq_context = zmq.context(cpu_count())
2011/11/9 rahul r <rahul8590 at yahoo.co.uk>
>
> Hey Martin,
>
>
> > When opening a 0mq context, you can specify the number of worker threads
> > to use. The idea is that there should be one worker thread per CPU core.
> >However, actual finding out of number of cores and assigning one worker
> >thread per core is not implemented yet -- feel free to try :)
>
> 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. ?
> 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 ?
>
>
> --Rahul
>
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111109/1885ff50/attachment.htm>
More information about the zeromq-dev
mailing list