[Ace-users] [ace-users] Using ACE_Svc_Handler::msg_queue() for buffering is slow

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Sun Nov 4 09:38:25 CST 2007


Hi,

>None, i.e. ACE_NULL_MUTEX

Ok, great.  One more question - what's the size of the data that
you're sending with each approach, i.e., are you sending an 8k
buffer at one time with the first approach and 10 byte buffers at a
time with the other?  I recommend you use strace or ethereal to see
what's going on wrt the data entering/leaving your machine.

Thanks,

        Doug

On Nov 3, 11:59 pm, schm... at dre.vanderbilt.edu (Douglas C. Schmidt)
>wrote:
>> Hi,
>>
>> > No, it uses the reactor the same amount. The ACE_Message_Queue is
>> > used as a fallback if the ACE_Message_Block gets full. If the
>> > 'buffer gets full it just puts all the data in the queue, when
>> > handle_output is called it sends all the data it can from both the
>> > buffer and the queue. handle_output is called the same number of
>> > times regardless of method used.
>>
>> Ok, so what type of synchronization are you using for the ACE_Message_Queue?
>>
>> Thanks,
>>
>>         Doug
>> --
>> Dr. Douglas C. Schmidt                       Professor and Associate Chair
>> Electrical Engineering and Computer Science  TEL: (615) 343-8197
>> Vanderbilt University                        WEB:www.dre.vanderbilt.edu/~schmidt
>> Nashville, TN 37203                          NET: d.schm... at vanderbilt.edu
>
>


-- 
Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu



More information about the Ace-users mailing list