msg00278.html

2000Q1/msg00278.html · 7.5 KB

From the archive 2000Q1.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Event Scheduling -->
<!--X-From-R13: X Q Znjerapr <pynjNxnatn.ah> -->
<!--X-Date: Tue, 08 Feb 2000 10:31:45 &#45;0800 -->
<!--X-Message-Id: 13568.950034699#kanga,nu -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 20000207131006.A26970#funky,monkey.org -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Event Scheduling</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#kanga,nu">
</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="msg00277.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00279.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00283.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00293.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00278">Author</A>
&nbsp;|&nbsp;<A HREF="#00278">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00278">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Event Scheduling</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] Event Scheduling </LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#kanga,nu">claw#kanga,nu</A>&gt;</LI>
<LI><em>Date</em>: Tue, 08 Feb 2000 10:31:39 -0800</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 Mon, 7 Feb 2000 13:10:06 -0500 
Phillip Lenhardt &lt;philen#funky,monkey.org&gt; wrote:

&gt; For those of you who have heavy-use event schedulers, what
&gt; algorithms are you using? 

Mine is written in C++, with a standard STL priority queue for
pending events in botht he Dispatchor and Executor, and short
circuit evaluation (ie never hits the priority queue) for those
incoming entries that are adjudged as being already ripe, or will be
ripe by the time they reach a waiting thread (if a thread is ready).
This saves the (occassionally) non-trivial insertion cost as well as 
lock contention on the queues.

&gt; I was wondering if anyone was getting significantly better
&gt; performance from their scheduler. 

I've had srtificial test cases which I know generated event rates
circa a few hundred thousand a minute (mostly things like mass
numbers of mobiles moving back and forth thru a door), bot the vast
majority of those event logs would have been short circuited
directly to the thread pool without ever really touching the queue
systems.

The general intent is that only a small minority of the total number 
of "events" will ever actually invoke the queing system, and that,
further, due to the size and processing capacity of the Executor's
thread pool, that the pool of events awaiting execution by threads,
will always be small.

My bottlenecks are on physical IO, not compute, so I don't tend to
worry much about these aspects too hard beyond chosing reasonable
algorithms.

-- 
J C Lawrence                                 Home: claw#kanga,nu
----------(*)                              Other: coder#kanga,nu
--=| A man is as sane as he is dangerous to his environment |=--


_______________________________________________
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>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00293" HREF="msg00293.html">Re: [MUD-Dev] Event Scheduling</A></strong>
<ul compact><li><em>From:</em> Phillip Lenhardt &lt;philen#funky,monkey.org&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00274" HREF="msg00274.html">[MUD-Dev] Event Scheduling</A></STRONG>
<UL><LI><EM>From:</EM> Phillip Lenhardt &lt;philen#funky,monkey.org&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00277.html">Re: [MUD-Dev] Event Scheduling</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00279.html">Re: [MUD-Dev] Semi-OT: Linux support in commercial MUDs?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00283.html">Re: [MUD-Dev] Event Scheduling</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00293.html">Re: [MUD-Dev] Event Scheduling</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00278"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00278"><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] Event Scheduling</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00276" HREF="msg00276.html">Re: [MUD-Dev] Event Scheduling</A></strong>, 
Hans-Henrik Staerfeldt <a href="mailto:hhs#cbs,dtu.dk">hhs#cbs,dtu.dk</a>, Tue 08 Feb 2000, 15:08 GMT
<UL>
<LI><strong><A NAME="00281" HREF="msg00281.html">Re: [MUD-Dev] Event Scheduling</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#zesoi,fer.hr">silovic#zesoi,fer.hr</a>, Tue 08 Feb 2000, 19:07 GMT
<UL>
<LI><strong><A NAME="00730" HREF="msg00730.html">Re: [MUD-Dev] Event Scheduling</A></strong>, 
Jp Calderone <a href="mailto:exarkun#flashmail,com">exarkun#flashmail,com</a>, Mon 27 Mar 2000, 17:37 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00283" HREF="msg00283.html">Re: [MUD-Dev] Event Scheduling</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Tue 08 Feb 2000, 22:01 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00278" HREF="msg00278.html">Re: [MUD-Dev] Event Scheduling</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Tue 08 Feb 2000, 18:31 GMT
<UL>
<LI><strong><A NAME="00293" HREF="msg00293.html">Re: [MUD-Dev] Event Scheduling</A></strong>, 
Phillip Lenhardt <a href="mailto:philen#funky,monkey.org">philen#funky,monkey.org</a>, Thu 10 Feb 2000, 17:23 GMT
<UL>
<LI><strong><A NAME="00294" HREF="msg00294.html">Re: [MUD-Dev] Event Scheduling</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Thu 10 Feb 2000, 18:09 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00286" HREF="msg00286.html">Re: [MUD-Dev] Event Scheduling</A></strong>, 
cg <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 09 Feb 2000, 04:38 GMT
<UL>
<LI><strong><A NAME="00287" HREF="msg00287.html">Re: [MUD-Dev] Event Scheduling</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Wed 09 Feb 2000, 04:53 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>

Site Stats

Snippets: 1791
Codebases: 571