Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 82946 invoked from network); 22 Aug 2005 13:51:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2005 13:51:25 -0000 Received: (qmail 74596 invoked by uid 500); 22 Aug 2005 13:51:23 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 74396 invoked by uid 500); 22 Aug 2005 13:51:19 -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 74323 invoked by uid 99); 22 Aug 2005 13:51:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2005 06:51:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [82.195.144.76] (HELO loughan.stdlib.net) (82.195.144.76) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2005 06:51:33 -0700 Received: from colmmacc by loughan.stdlib.net with local (Exim 4.50) id 1E7Chl-00058b-08 for dev@apr.apache.org; Mon, 22 Aug 2005 14:51:13 +0100 Date: Mon, 22 Aug 2005 14:51:12 +0100 From: Colm MacCarthaigh To: APR Development Subject: Re: how to make apr_bucket_read() read only as much as I need? Message-ID: <20050822135112.GA18391@stdlib.net> Reply-To: colm@stdlib.net References: <43053503.8020709@stason.org> <20050819062900.GB26855@redhat.com> <43058539.7080501@stason.org> <20050819082116.GA29545@redhat.com> <4306477E.30204@stason.org> <20050822125627.GB25876@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050822125627.GB25876@redhat.com> User-Agent: Mutt/1.5.9i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Mon, Aug 22, 2005 at 01:56:27PM +0100, Joe Orton wrote: > > Also while we are at it, do you remember why 8000 was chosen as the size > > of the buffer (I remember why it wasn't 8K, but I wonder why not 2k or > > 4k?) is it because it perfectly fits the memory page? but how do you > > ensure that it always starts at the page boundary and not hanging over the > > end of the previous page? > > IIRC 8000 was picked because you can about that much in a single jumbo > ethernet frame on a gigE network, something like that. Hmmm, 8000 isn't a very good value if that was the reasoning. Most jumboframe deployments are 9000 bytes end to end (based on Cisco's choice of supporting 9128 bytes at transit level, and Broadcom's 9000 bytes at the lower end), giving payloads of 8944 bytes (assuming IPv4 and TCP). Jumboframe deployments of 16k arn't uncommon (Most Intel kit supports 16k for example) either, though not on the Internet. -- Colm MacC�rthaigh Public Key: colm+pgp@stdlib.net