1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Introduction -->
<!--X-From-R13: pynjerapNphc.uc.pbz -->
<!--X-Date: from tacitus.globecomm.net [207.51.48.7] by mx01.ny.us.ibm.net id 863547093.76320&#45;1 Tue May 13 18:11:33 1997 -->
<!--X-Message-Id: 199705131809.LAA29713#xsvr3,cup.hp.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: fxcg1vtmmfx.fsf#phantasm,thekeep.org -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  Introduction</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:clawrenc#cup,hp.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="msg00435.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00437.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00440.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00457.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00436">Author</A>
&nbsp;|&nbsp;<A HREF="#00436">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00436">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  Introduction</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]  Introduction</LI>
<LI><em>From</em>: <A HREF="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</A></LI>
<LI><em>Date</em>: Mon, 12 May 97 11:04:26 -0700</LI>
<LI><em>Reply-to</em>: <A HREF="mailto:claw#null,net">claw#null,net</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
In &lt;<A HREF="msg00387.html">fxcg1vtmmfx.fsf#phantasm,thekeep.org</A>&gt;, on 05/11/97 
   at 08:26 PM, Dan Root &lt;dar#thekeep,org&gt; said:

&gt;Ling &lt;K.L.Lo-94#student,lut.ac.uk&gt; writes:

&gt;The other two code bases I was primarily interested in (UnterMUD and
&gt;UberMUD) were quite small as well, with most of the features I
&gt;wanted, but with quirky coding (MJR's code is beautiful... if you can
&gt;understand it) that made modifaction hard.

You bet.  Marcus Ranum's code is flat out gorgeous and damned
efficient.  Its a shame he dropped out of the field.

&gt;(FWIW, someone mentioned that process context switching was
&gt;expensive.  This is true, but your server is going to be switched out
&gt;anyways, as it's unlikely that nothing else is running on the machine
&gt;at all.)

Context switching is cheap if it does not become a significant part of
your total process expense (obviously).  Run a single process, or even
just a couple/few processes and is stays cheap.  Start running one
process for every connection or something else equally silly and of a
sudden context switches start becoming a major fraction of the total
expense of running your system.

Wanna try something?

Write a little program (shell script will do fine) that does nothing
but print out numbers and delay a couple seconds every now and then. 
Run a couple copies.  They'll run very nicely and very rapidly,  The
price of context switching between the simultaneously executing copies
is small.  Watch your CPU utilisation and it should stay quite low.

Now start up 300 instances of this little trivial program and watch
your system crawl into the drain.  Why?  The price of context
switching between your programs suddenly became a significant
percentage of the total work your CPU was doing.  (Graciously ignoring
swap, RAM etc aspects that also chime in here).

-- 
J C Lawrence                           Internet: claw#null,net
(Contractor)                           Internet: coder#ibm,net
---------------(*)               Internet: clawrenc#cup,hp.com
...Honorary Member 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="00457" HREF="msg00457.html">Re: [MUD-Dev]  Introduction</A></strong>
<ul compact><li><em>From:</em> Dan Root &lt;dar#thekeep,org&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00387" HREF="msg00387.html">Re: [MUD-Dev]  Introduction</A></STRONG>
<UL><LI><EM>From:</EM> Dan Root &lt;dar#thekeep,org&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00435.html">Re: [MUD-Dev]  Disk v. Mem</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00437.html">Re: [MUD-Dev] Introduction</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00440.html">Re: [MUD-Dev]  Introduction</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00457.html">Re: [MUD-Dev]  Introduction</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00436"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00436"><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>Re: [MUD-Dev]  Introduction</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00386" HREF="msg00386.html">Re: [MUD-Dev]  Introduction</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lut.ac.uk">K.L.Lo-94#student,lut.ac.uk</a>, Mon 12 May 1997, 08:49 GMT
<UL>
<LI><strong><A NAME="00387" HREF="msg00387.html">Re: [MUD-Dev]  Introduction</A></strong>, 
Dan Root <a href="mailto:dar#thekeep,org">dar#thekeep,org</a>, Mon 12 May 1997, 09:52 GMT
<UL>
<LI><strong><A NAME="00392" HREF="msg00392.html">Re: [MUD-Dev]  Introduction</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lut.ac.uk">K.L.Lo-94#student,lut.ac.uk</a>, Mon 12 May 1997, 13:33 GMT
<UL>
<LI><strong><A NAME="00440" HREF="msg00440.html">Re: [MUD-Dev]  Introduction</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 14 May 1997, 04:01 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00436" HREF="msg00436.html">Re: [MUD-Dev]  Introduction</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 14 May 1997, 01:11 GMT
<UL>
<LI><strong><A NAME="00457" HREF="msg00457.html">Re: [MUD-Dev]  Introduction</A></strong>, 
Dan Root <a href="mailto:dar#thekeep,org">dar#thekeep,org</a>, Wed 14 May 1997, 12:00 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00441" HREF="msg00441.html">Re: [MUD-Dev]  Introduction</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 14 May 1997, 04:03 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00403" HREF="msg00403.html">[MUD-Dev]  Introduction</A></strong>, 
Ross Nicoll <a href="mailto:rnicoll#lostics,thenet.co.uk">rnicoll#lostics,thenet.co.uk</a>, Mon 12 May 1997, 21:49 GMT
</LI>
<LI><strong><A NAME="00432" HREF="msg00432.html">Re: [MUD-Dev]  Introduction</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 14 May 1997, 00:58 GMT
</LI>
</UL>
</LI>
</ul>
</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>