httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: potential Apache performance problem: size of the TCP send buffer
Date Mon, 04 Nov 1996 08:32:47 GMT
Brian Behlendorf wrote:
> This patch looks good to me - a patch against the current cvs tree is appended.
> Any other +1's?

No doubt there'll be some portability issues, but +1 anyway.

Cheers,

Ben.

> 
> 	Brian
> 
> On Mon, 28 Oct 1996, John Heidemann wrote:
> > Apache-1.1.1 doesn't appear to set the size of the TCP send buffer.
> > On many systems the default send-buffer size is too small to support
> > full-rate transfer over high bandwidth-delay-product networks (such as
> > cross-US Internet traffic).  For example, a 100ms round-trip time
> > (typical cross-US latency) and a 4kB default buffer size (common to
> > many OSes such as SunOS) limit transfer rate to 40kB/s.
> > 
> > Much better cross-US transfer rates are possible between
> > well-connected hosts if the send buffer size is increased.  A patch at
> > <http://www.isi.edu/~johnh/SOFTWARE/APACHE/apache_1.1.1_isi_set_sndbuf.patch>
> > implements the SendBufferSize directive to allow Apache to have a
> > configurable buffer size.
> > 
> > A complete description of this directive is in the file
> > send_buffer_size.html which accompanies the patch.  For a pointer to
> > other patches, see <http://www.isi.edu/~johnh/SOFTWARE/APACHE>.  For
> > descriptions of the problems motivating these patches, see
> > <http://www.isi.edu/lsam/publications/phttp_tcp_interactions/>.  [For
> > those of you who have seen this web page before, there are some new
> > figures in ``The Performance Problems'' section and the buffer-size
> > problem is described under ``Other Problems'' there.]
> > 
> >    -John Heidemann
> >     USC/ISI
> > 
> > 
> > 
> > 
> > 
> 
> --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
> brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS
> 
> ---559023410-641078858-847061707=:29864
> Content-Type: TEXT/PLAIN; charset=US-ASCII; name=bufpatch
> Content-Transfer-Encoding: BASE64
> Content-ID: <Pine.SOL.3.93.961103145507.29864V@eat.organic.com>
> Content-Description: 
> 
> SW5kZXg6IGh0dHBfY29uZmlnLmMNCj09PT09PT09PT09PT09PT09PT09PT09
> PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0N
> ClJDUyBmaWxlOiAvZXhwb3J0L2hvbWUvY3ZzL2FwYWNoZS9zcmMvaHR0cF9j
> b25maWcuYyx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMzANCmRpZmYgLUMz
> IC1yMS4zMCBodHRwX2NvbmZpZy5jDQoqKiogaHR0cF9jb25maWcuYwkxOTk2
> LzExLzAzIDIwOjUyOjA5CTEuMzANCi0tLSBodHRwX2NvbmZpZy5jCTE5OTYv
> MTEvMDMgMjI6NTE6MzQNCioqKioqKioqKioqKioqKg0KKioqIDkxMSw5MTYg
> KioqKg0KLS0tIDkxMSw5MTkgLS0tLQ0KICANCiAgCWlmICh2aXJ0LT5rZWVw
> X2FsaXZlID09IC0xKQ0KICAJICAgIHZpcnQtPmtlZXBfYWxpdmUgPSBtYWlu
> X3NlcnZlci0+a2VlcF9hbGl2ZTsNCisgDQorIAlpZiAodmlydC0+c2VuZF9i
> dWZmZXJfc2l6ZSA9PSAwKQ0KKyAJCXZpcnQtPnNlbmRfYnVmZmVyX3NpemUg
> PSBtYWluX3NlcnZlci0+c2VuZF9idWZmZXJfc2l6ZTsNCiAgICAgIH0NCiAg
> fQ0KICANCkluZGV4OiBodHRwX2NvcmUuYw0KPT09PT09PT09PT09PT09PT09
> PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
> PT09PQ0KUkNTIGZpbGU6IC9leHBvcnQvaG9tZS9jdnMvYXBhY2hlL3NyYy9o
> dHRwX2NvcmUuYyx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNDENCmRpZmYg
> LUMzIC1yMS40MSBodHRwX2NvcmUuYw0KKioqIGh0dHBfY29yZS5jCTE5OTYv
> MTEvMDMgMjA6Mjk6MzkJ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ovDQogICAgICBpbnQga2VlcF9h
> bGl2ZTsJCS8qIE1heGltdW0gcmVxdWVzdHMgcGVyIGNvbm5lY3Rpb24gKi8N
> CisgICAgIGludCBzZW5kX2J1ZmZlcl9zaXplOyAgICAgICAvKiBzaXplIG9m
> IFRDUCBzZW5kIGJ1ZmZlciAoaW4gYnl0ZXMpICovDQogIA0KICAgICAgY2hh
> ciAqcGF0aDsJCQkvKiBQYXRobmFtZSBmb3IgU2VydmVyUGF0aCAqLw0KICAg
> ICAgaW50IHBhdGhsZW47CQkvKiBMZW5ndGggb2YgcGF0aCAqLw0K
> ---559023410-641078858-847061707=:29864--

-- 
Ben Laurie                Phone: +44 (181) 994 6435  Email: ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author

Mime
View raw message