Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 24814 invoked from network); 24 Aug 2005 16:07:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Aug 2005 16:07:39 -0000 Received: (qmail 82353 invoked by uid 500); 24 Aug 2005 16:07:36 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 82304 invoked by uid 500); 24 Aug 2005 16:07:35 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 82286 invoked by uid 99); 24 Aug 2005 16:07:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2005 09:07:35 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2005 09:07:52 -0700 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j7OG7UMv003345; Wed, 24 Aug 2005 12:07:30 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j7OG7TV11213; Wed, 24 Aug 2005 12:07:29 -0400 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.13.4/8.13.4/Submit) id j7OG7SDa006973; Wed, 24 Aug 2005 17:07:28 +0100 X-Authentication-Warning: radish.cambridge.redhat.com: jorton set sender to jorton@redhat.com using -f Date: Wed, 24 Aug 2005 17:07:28 +0100 From: Joe Orton To: Justin Erenkrantz Cc: dev@apr.apache.org Subject: Re: TCP_CORK in Linux 2.6: not broken, but it doesn't work with TCP_NODELAY Message-ID: <20050824160728.GA3988@redhat.com> Mail-Followup-To: Justin Erenkrantz , dev@apr.apache.org References: <20050822135238.GC25876@redhat.com> <20050822141958.GA26213@redhat.com> <20050823155152.GA20885@redhat.com> <6C417C800EAA4F6DADD718DC@st-augustin.ics.uci.edu> <20050823215947.GB9498@redhat.com> <1897CDD5F914EA0870B3F4D3@Justin-Erenkrantzs-Computer.local> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1897CDD5F914EA0870B3F4D3@Justin-Erenkrantzs-Computer.local> User-Agent: Mutt/1.4.2.1i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Wed, Aug 24, 2005 at 08:56:38AM -0700, Justin Erenkrantz wrote: > --On August 23, 2005 10:59:47 PM +0100 Joe Orton wrote: > > >The patch won't (shouldn't ;) make any difference to non-Linux > >platforms, since the autoconf test checks for TCP_CORK and TCP_NODELAY > >explicitly. I don't know whether FreeBSD has ever or does currently > >allow TCP_NOPUSH and TCP_NODELAY together, but it would be easy enough > >to adapt the code appropriately if someone tested that stuff out. > > Ah, right. So, the autoconf test will just fail on FreeBSD/Darwin due to > TCP_CORK not being present - thus, having no real change to that platform. > If we can figure out what FreeBSD/Darwin can do, we can then write some > m4-fu to try to optimize it if desired. yup. > Isn't there a test program somewhere that I could use to see what it'll do > in this scenario? You can start with the test program Brian wrote, I've uploaded it to http://people.apache.org/~jorton/sendfile.c but it would need to be adapted to either use APR directly and to test APR behaviour, or to use the FreeBSD sendfile() interface, TCP_NOPUSH, etc. (I may possibly write an APR-based test program to demonstrate the APR behaviour at some point and I'll post that if I do, but it might not be any time soon) joe