[zeromq-dev] Windows throughput perfomance. Once again.

Геннадий Казачёк gena.kazachek at gmail.com
Tue May 31 13:15:22 CEST 2011


31 мая 2011 г. 14:50 пользователь Martin Sustrik <sustrik at 250bpm.com>написал:

> On 05/31/2011 12:42 PM, Геннадий Казачёк wrote:
>
>  I tried to profile zmqlib, but spent only a couple of hours, so the only
>> thing I've found was:
>>
>
>  ELAPSED TIME (seconds)
>> zmq :: select_t :: loop - 225,44
>>
>
> This is an infinite loop.
>
>
>  zmq :: mailbox_t :: recv - 112,85
>>
>
> This is a blocking function. When nothing happens application threads sleep
> here.
>
>
>  I guess (correct me, if I wrong) that this means, that we are waiting
>> for something 1000 times longer then working.
>>
>
> Well. It looks like the application threads is waiting for 112.85 sec out
> of total 225.44 sec.
>
>
>  I can make another test, but don't know what exactly.
>>
>
> Try to find out what is the application thread actually waiting for and why
> it takes so long. Is it one 2 minute sleep or is it many small sleeps that
> add to 2 minutes? Etc.
>
> Martin
>
>
10000 packets
zmq :: mailbox_t :: recv     Hit count - 126.

50000 packets
zmq :: mailbox_t :: recv     Hit count - 611.

Linear dependency. I guess It's a bunch of small equal waits.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110531/4dd03309/attachment.htm 


More information about the zeromq-dev mailing list