2000Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Processor Usage -->
<!--X-From-R13: Pra Uerrne <terrneoNpnaqryngrpu.pbz> -->
<!--X-Date: Fri, 03 Mar 2000 17:10:30 &#45;0800 -->
<!--X-Message-Id: 38C05BAF.94DC67D9#candelatech,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:greearb#candelatech,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="msg00527.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00524.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00521.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00529.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00526">Author</A>
&nbsp;|&nbsp;<A HREF="#00526">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00526">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>: Ben Greear &lt;<A HREF="mailto:greearb#candelatech,com">greearb#candelatech,com</A>&gt;</LI>
<LI><em>Date</em>: Fri, 03 Mar 2000 17:41:19 -0700</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>
Christopher Kohnert wrote:
&gt; 
&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.
&gt; 
&gt; Chris

Scry (though lightly populated) rarely gets above 5% CPU.  I would suspect
you have a busy-wait somewhere..or that you have an enormous amount of events
happening close together.  Scry isn't threaded (uses a while loop, waits for
max .25 secs on IO before looping again to do AI and other timer based
activities.)

Did you try running some kind of performance monitoring tool (gproff?)
to see where the program spends all of it's time?

Ben
&gt; 
&gt; _______________________________________________
&gt; MUD-Dev maillist  -  MUD-Dev#kanga,nu
&gt; <A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

-- 
Ben Greear (greearb#candelatech,com)  <A  HREF="http://scry.wanfear.com/~greear">http://scry.wanfear.com/~greear</A> 
Author of ScryMUD:  scry.wanfear.com 4444        (Released under GPL)
<A  HREF="http://scry.wanfear.com">http://scry.wanfear.com</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="msg00527.html">Re: [MUD-Dev] randomly dropped connections</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00524.html">Re: [MUD-Dev] Mud Network Setup</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00521.html">Re: [MUD-Dev] Processor Usage</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00529.html">Re: [MUD-Dev] Processor Usage</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00526"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00526"><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>
<LI><strong><A NAME="00615" HREF="msg00615.html">RE: [MUD-Dev] MUD timeline</A></strong>, 
Sellers, Michael <a href="mailto:MSellers#maxis,com">MSellers#maxis,com</a>, Wed 15 Mar 2000, 16:38 GMT
<UL>
<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>
</LI>
</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
</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>