Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BD5B297B6 for ; Thu, 26 Jan 2012 17:22:53 +0000 (UTC) Received: (qmail 6062 invoked by uid 500); 26 Jan 2012 17:22:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 6022 invoked by uid 500); 26 Jan 2012 17:22:50 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 6014 invoked by uid 99); 26 Jan 2012 17:22:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2012 17:22:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FRT_STOCK2 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jeffpk@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-we0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2012 17:22:45 +0000 Received: by werm10 with SMTP id m10so703798wer.31 for ; Thu, 26 Jan 2012 09:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lQ8+huBriKSVrDXou9ua+akoaKFmfDZMwq+Ce2BQicc=; b=Tq6SgDjmVFbyda5SYVKH2CMyUP2G56haGn58Cxjqy19LryXFP6UEQEOrG7+bOYFh/C FP8HC6A0bf72e6L/aBFjhnNm33Df2TqYXI2EBCxpRcad98mFwS1FcA3ZZ0TtoEz4WTm0 hlZ3Qi3oGR0m6J6tvArz/P/NHq4PJ1EdqBPtI= MIME-Version: 1.0 Received: by 10.216.133.132 with SMTP id q4mr1539968wei.12.1327598543816; Thu, 26 Jan 2012 09:22:23 -0800 (PST) Received: by 10.216.90.142 with HTTP; Thu, 26 Jan 2012 09:22:23 -0800 (PST) In-Reply-To: References: Date: Thu, 26 Jan 2012 12:22:23 -0500 Message-ID: Subject: Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY From: Jeffrey Kesselman To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016e6dd96e59bc90c04b7719fad --0016e6dd96e59bc90c04b7719fad Content-Type: text/plain; charset=ISO-8859-1 " To set or get a TCP socket option, call *getsockopt *(2) to read or *setsockopt *(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 *(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 wrote: > > > 2012/1/26 Jeffrey Kesselman > >> 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 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. --0016e6dd96e59bc90c04b7719fad Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable "
To set or get a TCP socket option, call=A0getsockopt(2) = to read or=A0setsockopt(2) to write the option with the = option level argument set to=A0SOL_TCP.= =A0In addition, most=A0SOL_IP=A0socket op= tions are valid on TCP sockets. For more information see=A0ip(7)= .
...

TCP_NODELAY
If set, disable the Nagle algorithm. This means that segments are always se= nt 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, t= hereby avoiding the frequent sending of small packets, which results in poo= r utilization of the network. This option cannot be used at the same time a= s the option=A0TCP_CORK."
http://bit.l= y/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 f= or linux?, for particular application? Maybe some sysctl?
=A0
<= br>
On Thu, Jan 26, 2012 at 8:17 AM, ruslan usifo= v <ruslan.usifov@gmail.com> wrote:
Hello

Is it possible set TCP_NODELAY = on thrift socket in cassandra?



<= font color=3D"#888888">--
It's always darkest just before you are e= aten by a grue.




--
It's alw= ays darkest just before you are eaten by a grue.
--0016e6dd96e59bc90c04b7719fad--