1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Windows&#45;>Linux TCP/IP stack performance problems -->
<!--X-From-R13: X Q Znjerapr <pynjNhaqre.rate.ftv.pbz> -->
<!--X-Date: Thu, 10 Sep 1998 15:34:55 &#45;0700 -->
<!--X-Message-Id: 199809102234.PAA04923#under,engr.sgi.com -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Windows-&gt;Linux TCP/IP stack performance problems</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#under,engr.sgi.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg01008.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01010.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01044.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01011.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01009">Author</A>
&nbsp;|&nbsp;<A HREF="#01009">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01009">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Windows-&gt;Linux TCP/IP stack performance problems</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Windows-&gt;Linux TCP/IP stack performance problems</LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</A>&gt;</LI>
<LI><em>Date</em>: Thu, 10 Sep 1998 15:34:47 -0700</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>

The following came up as a result of DaveZ doing performance testing
on Apache.  I've encluded part of the original post below to provide
context for the technical assertions of the second.  Those that want
to find the entire original post as well as the rest of the thread are 
referred to the SVLUG archives at:

  <A  HREF="http://www.findmail.com/list/svlug/">http://www.findmail.com/list/svlug/</A>

------- Begin Forwarded Message

Date: Wed, 9 Sep 1998 09:49:01 -0700 (PDT)
From: Dave Zarzycki &lt;dave#c204500-a,frmt1.sfba.home.com&gt;
To: svlug#svlug,org
Subject: [svlug] HELP! Apache performance on a Compaq Presario

...deletia...

Setup:

Compaq Presario 4880 (400MHz PII)
192MB of RAM
10GB hard drive (IDE, this is a desktop machine from marketing)
10/100 EtherExpress
4 port 10/100 DEC 21140 card
Red Hat Linux 5.1 plus all updates

The performance is roughly 50 connections per second. I know linux can
go faster, so what gives? The load average never passes over one and
the idle time is always above 90%. I've tried both WebBench (on PCs,
yuk), and WebStone (running on AIX). I've tried both Apache 1.2.1,
which comes with Red Hat Linux 5.1, and Apache 1.3.1. I've even tried
the 2.1.119 kernel to see if that made things better, but it was no
different. Lastly, I tried a silly little web server that I wrote in a
few hundred lines of C, and it experianced the same problems. (In
other words, it's not the server...)

Does anybody have any idea what's going on? I don't think the sniffer
will tell me much. Are there any kernel options I can tweak?
...deletia...

------- End of Forwarded Message

The conclusion:

------- Begin Forwarded Message

Date: Thu, 10 Sep 1998 08:05:12 -0700 (PDT)
From: Dave Zarzycki &lt;dave#c204500-a,frmt1.sfba.home.com&gt;
To: svlug#svlug,org
Subject: [svlug] web server problem found

First of all, thanks is due to everyone who tried to help.

What went wrong:

Rhapsody, AIX, and appearantly Windoz behave like each other and
presume that the slow start feature of TCP will initially send two
segments. According to RFC 2001, TCP slow start should send only one
segment.  Linux follows this RFC and the following situation unfolds:

non-RFC OS     sends http request.
Linux          sends the first segment and waits for an ACK.
non-RFC OS     waits 200ms for the seconds segment.
non-RFC OS     gives up and sends ACK.
Linux          sends more data...

200ms is a long time for a machine that is less than 1 ms away. So the
only thing that Linux did wrong, was follow the standards, which, IMHO,
was the right thing to do. Some of my co-workers might blow this off as
reality vs. specs, but this is of course is what leads to incompatibilty
and is only one step away from a Microsoft mentality of "screw the
standards, we dominate enough of the market to *write* the standards
anyway we see fit." Oh well. 

I'm going to e-mail the netdev list to confirm my suspicions, and
hopefully get some insight in how this problem might be delt with.

davez

------- End of Forwarded Message

If he's right (I don't have any Windows boxes to test (but can confirm
that Irix does the right thing)) this is pretty critical, and
extremely &lt;insert choice of pejoritive&gt;.  RFC 2001
(<A  HREF="http://www.pasteur.fr/other/computer/RFC/20xx/2001">http://www.pasteur.fr/other/computer/RFC/20xx/2001</A>) is quite plainly
written and extremely clear about the correct behaviour for slow start
and congestion handling.

This may or may not affect your client operations.  Most likely it
wouldn't as most client designs use long term connections (ie the rate
of generating new connections is low) which is in direct contrast to
web servers (where this impacts hard).  

-- 
J C Lawrence                               Internet: claw#null,net
(Contractor)                               Internet: coder#ibm,net
---------(*)                     Internet: claw#under,engr.sgi.com
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="01011" HREF="msg01011.html">[MUD-Dev] Re: Windows-&gt;Linux TCP/IP stack performance problems</A></strong>
<ul compact><li><em>From:</em> Vadim Tkachenko &lt;vt#freehold,crocodile.org&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01008.html">[MUD-Dev] Re: Implementing god.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01010.html">[MUD-Dev] Re: [IDEAS] Starting from scratch</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01044.html">[MUD-Dev] Re: Windows-&gt;Linux TCP/IP stack performance problems</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01011.html">[MUD-Dev] Re: Windows-&gt;Linux TCP/IP stack performance problems</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01009"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01009"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: X, Y &amp; Z.</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="01016" HREF="msg01016.html">[MUD-Dev] Re: X, Y &amp; Z.</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 11 Sep 1998, 17:42 GMT
</LI>
<LI><strong><A NAME="01020" HREF="msg01020.html">[MUD-Dev] Re: X, Y &amp; Z.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Fri 11 Sep 1998, 22:53 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="01012" HREF="msg01012.html">[MUD-Dev] Re: Windows-&gt;Linux TCP/IP stack performance problems</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 11 Sep 1998, 02:42 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="01044" HREF="msg01044.html">[MUD-Dev] Re: Windows-&gt;Linux TCP/IP stack performance problems</A></strong>, 
Alex Stewart <a href="mailto:riche#crl,com">riche#crl,com</a>, Mon 14 Sep 1998, 17:10 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="01009" HREF="msg01009.html">[MUD-Dev] Windows-&gt;Linux TCP/IP stack performance problems</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Thu 10 Sep 1998, 22:34 GMT
<UL>
<LI><strong><A NAME="01011" HREF="msg01011.html">[MUD-Dev] Re: Windows-&gt;Linux TCP/IP stack performance problems</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Fri 11 Sep 1998, 02:35 GMT
<UL>
<LI><strong><A NAME="01014" HREF="msg01014.html">[MUD-Dev] Re: OT: Windows-&gt;Linux TCP/IP stack performance problems</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Fri 11 Sep 1998, 04:34 GMT
</LI>
<LI><strong><A NAME="01019" HREF="msg01019.html">[MUD-Dev] Off-topic! Re: Windows-&gt;Linux TCP/IP stack performance problems</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Fri 11 Sep 1998, 18:41 GMT
<UL>
<LI><strong><A NAME="01025" HREF="msg01025.html">[MUD-Dev] Re: Off-topic! Re: Windows-&gt;Linux TCP/IP stack performance problems</A></strong>, 
Jo Dillon <a href="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</a>, Sat 12 Sep 1998, 11:58 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>