apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCarthaigh <c...@stdlib.net>
Subject Re: how to make apr_bucket_read() read only as much as I need?
Date Mon, 22 Aug 2005 13:51:12 GMT
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

View raw message