2000Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Processor Usage -->
<!--X-From-R13: "Rbzvavp X. Svqfba" <fnhebaNgur&#45;vasvavgr.bet> -->
<!--X-Date: Fri, 03 Mar 2000 17:10:35 &#45;0800 -->
<!--X-Message-Id: Pine.LNX.4.10.10003031309001.11969&#45;100000#morannon,kdi.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 38BF63ED.5107F365#mail,uccs.edu -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Processor Usage</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:sauron#the-infinite,org">
</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="msg00524.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00522.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00526.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00516.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00529">Author</A>
&nbsp;|&nbsp;<A HREF="#00529">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00529">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Processor Usage</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>: Re: [MUD-Dev] Processor Usage</LI>
<LI><em>From</em>: "Dominic J. Eidson" &lt;<A HREF="mailto:sauron#the-infinite,org">sauron#the-infinite,org</A>&gt;</LI>
<LI><em>Date</em>: Fri, 3 Mar 2000 13:43:25 -0600 (CST)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#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 Fri, 3 Mar 2000, Christopher Kohnert wrote:

&gt; Am I simply missing something, or do all these engines that report low
&gt; processor usage (5-10% peak) not have a pseudo-real-time event
&gt; scheduling mechanism?  I can sleep, waiting for both events and input
&gt; from sockets, and not get it to drop below an average of 80%.  Does
&gt; anyone have any ideas as to how other systems can claim these low
&gt; usages?  No, I don't have any specific examples, (I can't remember them)
&gt; I've just seen them float by on messages here and there, reporting this
&gt; wonderful feat.

What percentage CPU utilisation you have, largely relies on what kind of
machine you run the engine on - my current project-in-the-works was using
approx. 3-7% CPU on our server machine (K6-2/300MHz) while processing in
the range of 400-450 events/second (and waiting for socket input), whereas
I suspect if I tried to run the same test on my home gateway box (p166),
it would consume quite a bit more CPU.

To say something about the test scenario - upon boot, I spawn off 20000
events scheduled to be ripe between 30 and 60 seconds (N) into the future.
Each event, upon execution, reissues itself for another N seconds into the
future.

What the events do is fairly simple - half of them move an object (Bouncy
the ball) from one room to a random adjacent room, the other half moved an
NPC (Clancy the clown) to a random adjacent room.

The event system I use, is a slightly modified version of Jon Leonard's
implementation that he uses for devmud, (<A  HREF="http://frost.slimy.com/devmud/">http://frost.slimy.com/devmud/</A>)
and uses a heap to store the events on. (Since I'm still working on
understanding priority queues et al, I'll nochalantly step back and let
those who are more familiar with it take over...)


Cheers,
-- 
Dominic J. Eidson
                                         "Baruk Khazad! Khazad ai-menu!" - Gimli
--------------------------------------------------------------------------------
<A  HREF="http://www.the-infinite.org/">http://www.the-infinite.org/</A>               <A  HREF="http://www.the-infinite.org/~dominic/">http://www.the-infinite.org/~dominic/</A>




_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</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="00517" HREF="msg00517.html">[MUD-Dev] Processor Usage</A></STRONG>
<UL><LI><EM>From:</EM> Christopher Kohnert &lt;cjkohner#brain,uccs.edu&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00524.html">Re: [MUD-Dev] Mud Network Setup</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00522.html">Re: [MUD-Dev] (fwd) MU* hiasb#cc,gatech.edstory?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00526.html">Re: [MUD-Dev] Processor Usage</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00516.html">[MUD-Dev] Re: MUD-Dev digest, Vol 1 #298 - 11 msgs</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00529"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00529"><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] MUD timeline</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00617" HREF="msg00617.html">RE: [MUD-Dev] MUD timeline</A></strong>, 
Matthew Mihaly <a href="mailto:diablo#best,com">diablo#best,com</a>, Thu 16 Mar 2000, 02:15 GMT
</LI>
</ul>
</ul>
</LI>
<LI><strong><A NAME="00517" HREF="msg00517.html">[MUD-Dev] Processor Usage</A></strong>, 
Christopher Kohnert <a href="mailto:cjkohner#brain,uccs.edu">cjkohner#brain,uccs.edu</a>, Fri 03 Mar 2000, 16:52 GMT
<UL>
<LI><strong><A NAME="00521" HREF="msg00521.html">Re: [MUD-Dev] Processor Usage</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Sat 04 Mar 2000, 00:12 GMT
</LI>
<LI><strong><A NAME="00526" HREF="msg00526.html">Re: [MUD-Dev] Processor Usage</A></strong>, 
Ben Greear <a href="mailto:greearb#candelatech,com">greearb#candelatech,com</a>, Sat 04 Mar 2000, 01:10 GMT
</LI>
<LI><strong><A NAME="00529" HREF="msg00529.html">Re: [MUD-Dev] Processor Usage</A></strong>, 
Dominic J. Eidson <a href="mailto:sauron#the-infinite,org">sauron#the-infinite,org</a>, Sat 04 Mar 2000, 01:10 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00516" HREF="msg00516.html">[MUD-Dev] Re: MUD-Dev digest, Vol 1 #298 - 11 msgs</A></strong>, 
Dr. Cat <a href="mailto:cat#realtime,net">cat#realtime,net</a>, Fri 03 Mar 2000, 16:52 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00561" HREF="msg00561.html">RE: [MUD-Dev] Re: MUD-Dev digest, Vol 1 #298 - 11 msgs</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Mon 06 Mar 2000, 18:58 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00511" HREF="msg00511.html">[MUD-Dev] (fwd) MU* hiasb#cc,gatech.edstory?</A></strong>, 
claw <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Fri 03 Mar 2000, 06:07 GMT
<UL>
<LI><strong><A NAME="00522" HREF="msg00522.html">Re: [MUD-Dev] (fwd) MU* hiasb#cc,gatech.edstory?</A></strong>, 
adam <a href="mailto:adam#treyarch,com">adam#treyarch,com</a>, Sat 04 Mar 2000, 01:10 GMT
</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>