cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Kesselman <jef...@gmail.com>
Subject Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY
Date Thu, 26 Jan 2012 17:22:23 GMT
"
  To set or get a TCP socket option, call
*getsockopt<http://linux.about.com/library/cmd/blcmdl2_getsockopt.htm>
*(2) to read or
*setsockopt<http://linux.about.com/library/cmd/blcmdl2_setsockopt.htm>
*(2) to write the option with the option level argument set to *SOL_TCP.* In
addition, most *SOL_IP *socket options are valid on TCP sockets. For more
information see *ip <http://linux.about.com/library/cmd/blcmdl7_ip.htm>*(7).
   ...
*TCP_NODELAY* If set, disable the Nagle algorithm. This means that segments
are always sent as soon as possible, even if there is only a small amount
of data. When not set, data is buffered until there is a sufficient amount
to send out, thereby avoiding the frequent sending of small packets, which
results in poor utilization of the network. This option cannot be used at
the same time as the option *TCP_CORK."**http://bit.ly/zpvLbP*
*
*

On Thu, Jan 26, 2012 at 12:10 PM, ruslan usifov <ruslan.usifov@gmail.com>wrote:

>
>
> 2012/1/26 Jeffrey Kesselman <jeffpk@gmail.com>
>
>> Most operating systems have a way to do this at the OS level.
>>
>>
> Could you please provide this way for linux?, for particular application?
> Maybe some sysctl?
>
>
>>
>> On Thu, Jan 26, 2012 at 8:17 AM, ruslan usifov <ruslan.usifov@gmail.com>wrote:
>>
>>> Hello
>>>
>>> Is it possible set TCP_NODELAY on thrift socket in cassandra?
>>>
>>
>>
>>
>> --
>> It's always darkest just before you are eaten by a grue.
>>
>
>


-- 
It's always darkest just before you are eaten by a grue.

Mime
View raw message