1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re:  Ethernet NICS, maximum connections..mud testing. -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Sun, 9 Aug 1998 22:45:59 &#45;0700 -->
<!--X-Message-Id: 199808100545.XAA03269@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--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] Re:  Ethernet NICS, maximum connections..mud testing</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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="msg00612.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00614.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00608.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00616.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00613">Author</A>
&nbsp;|&nbsp;<A HREF="#00613">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00613">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</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] Re:  Ethernet NICS, maximum connections..mud testing.</LI>
<LI><em>From</em>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Sun, 9 Aug 1998 23:45:20 -0600</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>
[Ben Greear:]

 &gt;Try this:  write a 1 meg file to disk, 10 characters at a time, and
 &gt;do the same with 4k blocks.  Sending over a socket would be the
 &gt;should show the same graph.

Perhaps we should take this out of the MUD-Dev list.

ami-cg /home/cg % time a.out
Writing 16777216 bytes in 10 byte chunks
All done
0.78user 8.77system 0:09.74elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (63major+7minor)pagefaults 0swaps

ami-cg /home/cg % time a.out
Writing 16777216 bytes in 4096 byte chunks
All done
0.00user 0.27system 0:00.66elapsed 40%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (63major+7minor)pagefaults 0swaps

As expected, the larger writes are much faster. Note however that the
effort on the smaller writes is almost entirely CPU time. The perfmeter
goes up, and the CPU usage reported by 'time' is high. This is all as
expected.

The question I am asking has nothing to do with the speed of large
requests versus small requests. Obviously large requests are more
efficient. The question I am asking, and the point I am getting at,
is that my socket activities are showing, on average, less than 2%
CPU usage. There are no idle delays in either program, and the client
reads from the disk in 512 byte chunks. The physical disk is only
active for a very small part of the elapsed time, so I am not spending
time waiting for it.

The question is: why does my experiment run at such a low CPU utilization?
Not why is it slow, but why does it run with the CPU mostly idle? I
think you have been missing this point.

-- 
Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA


</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="00643" HREF="msg00643.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></strong>
<ul compact><li><em>From:</em> Ben Greear &lt;greear#cyberhighway,net&gt;</li></ul>
<li><strong><A NAME="00616" HREF="msg00616.html">[MUD-Dev] Re: Ethernet NICS, maximum connections..mud testing.</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#kanga,nu&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="msg00612.html">[MUD-Dev] Re: lurker emerges</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00614.html">[MUD-Dev] Re: lurker emerges</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00608.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00616.html">[MUD-Dev] Re: Ethernet NICS, maximum connections..mud testing.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00613"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00613"><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:  Ethernet NICS, maximum connections..mud testing.</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00597" HREF="msg00597.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 09 Aug 1998, 22:02 GMT
<UL>
<LI><strong><A NAME="00598" HREF="msg00598.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sun 09 Aug 1998, 22:15 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00605" HREF="msg00605.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 10 Aug 1998, 02:19 GMT
<UL>
<LI><strong><A NAME="00608" HREF="msg00608.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Mon 10 Aug 1998, 04:16 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00613" HREF="msg00613.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 10 Aug 1998, 05:45 GMT
<UL>
<LI><strong><A NAME="00616" HREF="msg00616.html">[MUD-Dev] Re: Ethernet NICS, maximum connections..mud testing.</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Mon 10 Aug 1998, 06:11 GMT
<UL>
<LI><strong><A NAME="00629" HREF="msg00629.html">[MUD-Dev] Re: Ethernet NICS, maximum connections..mud testing.</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Mon 10 Aug 1998, 14:55 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00643" HREF="msg00643.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Tue 11 Aug 1998, 02:34 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00562" HREF="msg00562.html">[MUD-Dev] Re: ADMIN: Advertising on MUD-Dev</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 08 Aug 1998, 19:40 GMT
</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>