From owner-freebsd-net Thu Sep 27 10:15:36 2001 Delivered-To: freebsd-net@freebsd.org Received: from mrout2.yahoo.com (mrout2.yahoo.com [216.145.54.172]) by hub.freebsd.org (Postfix) with ESMTP id 130BD37B428 for ; Thu, 27 Sep 2001 10:15:32 -0700 (PDT) Received: from milk.yahoo.com (milk.yahoo.com [216.145.52.137]) by mrout2.yahoo.com (8.11.6/8.11.6/y.out) with ESMTP id f8RHEx911343; Thu, 27 Sep 2001 10:14:59 -0700 (PDT) Received: (from root@localhost) by milk.yahoo.com (8.11.0/8.11.0) id f8RHExg26899; Thu, 27 Sep 2001 10:14:59 -0700 (PDT) (envelope-from jayanth) Date: Thu, 27 Sep 2001 10:14:59 -0700 From: jayanth To: tsuchiya@flab.fujitsu.co.jp Cc: jayanth@yahoo-inc.com, net@FreeBSD.ORG, silby@silby.com Subject: Re: TCP performance question Message-ID: <20010927101459.A26671@yahoo-inc.com> References: <200109270652.PAA03232@const.kawasaki.flab.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200109270652.PAA03232@const.kawasaki.flab.fujitsu.co.jp>; from tsuchiya@flab.fujitsu.co.jp on Thu, Sep 27, 2001 at 03:52:15PM +0900 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Probably add a new flag TF_IDLE that is true, if there is more data to send when the connection was idle. This way the next time around the idle variable will be true if the TF_IDLE flag is true and if we can empty the socket buffer all the data will be sent. Will send you a patch soon. jayanth tsuchiya@flab.fujitsu.co.jp (tsuchiya@flab.fujitsu.co.jp) wrote: > > > This issue is a combination of mbuf cluster size and the > > TF_MORETOCOME flag. > > > if (len) { > > if (len == tp->t_maxseg) > > goto send; > > if (!(tp->t_flags & TF_MORETOCOME) && > > (idle || tp->t_flags & TF_NODELAY) && > > (tp->t_flags & TF_NOPUSH) == 0 && > > len + off >= so->so_snd.sb_cc) > > goto send; > > When I changed the condition, the problem we had did not occur. I am wondering > what is the right fix. > Yoshi > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message