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

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Mon Nov 5 13:46:11 CST 2007


Great, I'm glad things are happier now!!

Doug

>You're right, and now that I'm setting it correctly performance is
>reasonable.
>
>Thanks for your help!
>
>On Nov 5, 1:44 pm, schm... at dre.vanderbilt.edu (Douglas C. Schmidt)
>wrote:
>> Hi,
>>
>> >My mistake, in this case it was actually calling send more than I
>> >thought it was (using strace to verify). Nagle's algorithm does seem
>> >the likely candidate.
>>
>> >I'm left wondering if I've failed to set TCP_NODELAY correctly:
>>
>> >int Param = 1;
>> >this->peer().set_option(0, TCP_NODELAY, &Param, sizeof(Param));
>>
>> >inside the constructor for the ACE_Svc_Handler?
>>
>> You seem to be setting this incorrectly.  Please see Chapter 3 of
>> C++NPv1 <www.cs.wustl.edu/~schmidt/ACE/book1/> for instructions on how
>> to do this or grep for TCP_NODELAY in the ACE tests and follow the
>> example there.
>>
>> 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