1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re:  Ethernet NICS, maximum connections..mud testing. -->
<!--X-From-R13: Pra Uerrne <terrneNploreuvtujnl.arg> -->
<!--X-Date: Sun, 9 Aug 1998 12:17:33 &#45;0700 -->
<!--X-Message-Id: Pine.LNX.3.96.980809120353.6091C&#45;100000#shamen,cyberhighway.net -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199808090556.XAA02199@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--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:greear#cyberhighway,net">
</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="msg00590.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00592.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00575.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00597.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00591">Author</A>
&nbsp;|&nbsp;<A HREF="#00591">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00591">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>: Ben Greear &lt;<A HREF="mailto:greear#cyberhighway,net">greear#cyberhighway,net</A>&gt;</LI>
<LI><em>Date</em>: Sun, 9 Aug 1998 12:09:09 -0700 (MST)</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>
On Sat, 8 Aug 1998, Chris Gray wrote:

&gt; [Ben Greear:]
&gt; 
&gt;  &gt;Would anyone be interested in my java tester program?  I think it could
&gt;  &gt;be modified easily to work with most any MUD, providing you know something
&gt;  &gt;about programming and or java.
&gt; 
&gt; Yes! Although no hurry - I won't be ready for straight telnet-style
&gt; testing for a while.

Check my web page (see .sig at bottom).  Its on the Downloads link.

&gt; 
&gt; Which brings up a related technical question I've bumped into...
&gt; 
&gt; On the old Amiga version of my system, I used Amiga Exec messages for
&gt; communicating on the local machine between a client and the server.
&gt; Since the system has no VM, that was a pretty efficient mechanism.
&gt; 
&gt; On Linux, I'm using sockets. I have my simple client mostly working,
&gt; using the same old binary protocol as before (I'd like to stay
&gt; compatible). So, a big test is to use that client to build the scenario
&gt; from the 30,000 or so lines of scenario source. That works, but, the
&gt; kicker is that its *slow*! It's not that much faster on this 300 MHz
&gt; P-II than it was on a 25 MHz 68040. But, the CPU is mostly idle while
&gt; this is going on. My perfmeter shows nothing, and if I run 'top' or
&gt; 'ps' while the activity is going on, they show that the server and
&gt; the client together use under 2% of the CPU time, with very occasionally
&gt; going to nearly 20%. Now, I'm using a SCSI-II disk on an Ultra-SCSI
&gt; controller, and I can cat the sources to /dev/null in under a second
&gt; (presumeably from disk buffers), so the slowdown isn't disk I/O (the
&gt; disk light only very occasionally lights during the process). Using
&gt; 'time' on the server and client shows similar results - a very low
&gt; CPU usage, both for user time and system time.
&gt; 
&gt; I've added a bit of instrumentation to the server, by measuring the
&gt; time for the 'select' call, and comparing that against the requested
&gt; delay. It's never more than 1/100 second greater (that's the
&gt; resolution I use for queued events). So, what is happening? Does the
&gt; Linux kernel (I'm running 2.0.30) impose an artificial delay between
&gt; putting a message into one socket and reading it from another in another
&gt; process? If so, is there anything I can do about it?

Not that I know of.  You do know that select sleeps if there is
nothing available right?  Other than that, I don't know enough
about your code to make a better guess. 

Some questions:

How big are the packets you send between client and server?

Are you running between two machines?  If so, try to benchmark it
against bulk transfer (ftp).

Do check ping.

Try some other server/client interaction and see how it performs.
(ftp might work here as well, depending on your setup.) 

&gt; 
&gt; The only other measurement I can think of doing is to have a simple
&gt; 'ping' message from client to server, and time the round-trip. If that
&gt; is excessive, that would seemingly confirm the above. If something
&gt; like this is indeed the problem, what does it imply for packets coming
&gt; in from and going out to remote systems? Will they also have that
&gt; delay imposed on them? I was hoping that my server would be efficient
&gt; enough (it runs everything via an interpreted language) that network
&gt; stuff would be the bottleneck, but I wasn't expecting this kind of
&gt; bottleneck!
&gt; 
&gt; -- 
&gt; Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA
&gt; 
&gt; -- 
&gt; MUD-Dev: Advancing an unrealised future.
&gt; 


Ben Greear (greear#cyberhighway,net)  <A  HREF="http://www.primenet.com/~greear">http://www.primenet.com/~greear</A> 
Author of ScryMUD:  mud.primenet.com 4444
<A  HREF="http://www.primenet.com/~greear/ScryMUD/scry.html">http://www.primenet.com/~greear/ScryMUD/scry.html</A>





</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00575" HREF="msg00575.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></STRONG>
<UL><LI><EM>From:</EM> Chris Gray &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00590.html">[MUD-Dev] Re: ADMIN: Advertising on MUD-Dev</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00592.html">[MUD-Dev] Re: ADMIN: Advertising on MUD-Dev</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00575.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00597.html">[MUD-Dev] Re:  Ethernet NICS, maximum connections..mud testing.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00591"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00591"><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>
<ul compact>
<LI><strong><A NAME="00574" HREF="msg00574.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, 05:42 GMT
</LI>
<LI><strong><A NAME="00628" HREF="msg00628.html">[MUD-Dev] OT: Re: Ethernet NICS, maximum connections..mud testing.</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Mon 10 Aug 1998, 14:43 GMT
<UL>
<LI><strong><A NAME="00648" HREF="msg00648.html">[MUD-Dev] Re: OT: Re: Ethernet NICS, maximum connections..mud testing.</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Tue 11 Aug 1998, 03:20 GMT
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00575" HREF="msg00575.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, 06:00 GMT
<UL>
<LI><strong><A NAME="00591" HREF="msg00591.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, 19:17 GMT
</LI>
</UL>
</LI>
<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>
</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>