1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: MUD Development Digest -->
<!--X-From-R13: "Re. Qng" <pngNotn.pbz> -->
<!--X-Date: Fri, 24 Apr 1998 15:31:22 &#45;0700 -->
<!--X-Message-Id: 199804242230.RAA24298#zoom,bga.com -->
<!--X-Content-Type: text -->
<!--X-Reference: 000001bd6f45$498e96f0$243939cc#foghorn,toon.org -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: MUD Development Digest</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cat#bga,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="msg00620.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00637.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00544.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00766.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00631">Author</A>
&nbsp;|&nbsp;<A HREF="#00631">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00631">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: MUD Development Digest</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: MUD Development Digest</LI>
<LI><em>From</em>: "Dr. Cat" &lt;<A HREF="mailto:cat#bga,com">cat#bga,com</A>&gt;</LI>
<LI><em>Date</em>: Fri, 24 Apr 1998 17:30:53 -0500 (CDT)</LI>
<LI><em>Delivery-date</em>: Fri Apr 24 15:31:22 1998</LI>
<LI><em>Delivery-date</em>: Fri, 24 Apr 1998 15:31:22 -0700</LI>
<LI><em>Envelope-to</em>: claw#kanga,nu</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: "Petidomo List Agent,,,," &lt;<A HREF="mailto:petidomo#kanga,nu">petidomo#kanga,nu</A>&gt;</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
&gt; Yet again it's one of your points that prompts me to actually post. Or mabie
&gt; I just like picking on you. The world may never know. ;)
&gt; 
&gt; But really, I see both sides of this particular argument. This is because I
&gt; can invision a game where 10,000 or even 100,000 people can play the game on
&gt; a single "server" (single world entity, don't pick my words apart, I know
&gt; it's possible to have a game distributed. But that's an argument for another
&gt; day)...

My server has been intended to handle those kinds of numbers since long 
before I even started coding it.  With my current architecture, though, 
there's only one component that needs to have information about all the 
players currently online.  My expectation is that it will have to be 
rewritten with better and better architecture, hardware, etc. over the 
years ahead as usage goes up by (hopefully) orders of magnitude.  It is 
the most failure-prone component of the system, and I'm certainly going 
to stay open to using "fancy" data structures, database programs, 
licensing something like Ichat's server that already does some of what I 
need, or just plain hiring someone else to program it for me.  :X)

Still, I think the map servers will stay very much like they are now, 
will comprise the bulk of the processing that's going on, and provide 
most of the fun.  And I think my current programming philosophy is 100% 
correct for them.  The interface between them and the central server 
process (or group of processes) will be kept as identical as possible 
every time I re-architect that monster, so they shouldn't have to 
change.  And if the thing gets slow sometimes, they're set up to have all 
the most speed-critical functionality (moving, talking to people around 
you), while the central process has stuff that you wouldn't mind waiting 
a few seconds for (list of which of your friends is online), and that you 
can still play the game without even if the thing crashes and burns.

I think as the usage gets up into thousands or tens of thousands I'll 
probably put an artificial limit on each local map, not allowing more 
than a few hundred people on each one.  Otherwise we'll probably have 
"flash crowds" that'll make things break.  I think my current code could 
handle 500 on a map pretty cleanly already, though it hasn't been tested 
above 80-90 or so.  The real bottleneck with the current code is how much 
I/O the machine it's on can handle, not CPU or disk, so the main issue is 
getting it onto better server hardware than the current donated Pentium 
100.  :X)

&gt; As a rule of thumb, on pretty much ANY O/S, you really don't want to have
&gt; more than 1/3 your memory be in swap.

We are in agreement here, but I'd go farther and say zero percent is what 
I really want.  As J. C. pointed out, I may have to look around for a 
Unix that doesn't assume things should be swapped out even when there's a 
surplus of RAM - or at least one that can be tweaked to act that way.

&gt; At the point where you exceed what physical memory you wish to use by a
&gt; significant amount (without having to add anymore), you do need to start
&gt; being smart about both how that memory is arranged relative to it's
&gt; utilization and exactly what data you decide to keep in memory.
&gt; 
&gt; This is where the 'fancy' memory algorithms come in.

This translates in my mind to "You are right, Dr. Cat, you don't need 
those fancy memory management algorithms".  As I mentioned in an earlier 
post, it's my intention to make sure that I *don't* exceed the physical 
memory, ever.  I don't see any reason why I would have to.  With a fixed 
amount of memory allocated for each map server, and a fixed number of 
servers launched on each machine, the memory usage can't "catch me by 
surprise" and go over what I wanted it to, as it can on systems that 
allocate stuff dynamically.  More users and more player building just
means more map server processes, which means periodically buying more 
machines for the network to stay ahead of demand.  As for the cost of 
RAM, (plus the cost of the CPUs, hard drives and other things that have to 
be connected to that RAM to make it do anything useful...)  Well, under 
any business model that brings in any significant amount of 
revenues-per-user, I can't see where it would be it being any kind of 
problem affording plenty of RAM-per-user.

If I had any interest in setting up a game with thousands of simultaneous 
users that generated no revenue, I'm sure I'd rush right out and study up 
on all the latest data structures and memory management techniques.  For 
now I'll stay mostly with my old friend the array.  Kinda like I used in 
BASIC in 1978, only with more datatypes available.  :X)  They're not 
elegant and beautiful and graceful like triple-sideways-linked-lists of 
handles to structures...  But like an old reliable car, or an old 
reliable horse, they get the job done.  We've got about 400,000 player 
hours logged on our server now so far, and it's rolling along pretty 
smoothly most of the time.

*-------------------------------------------**-----------------------------* 
   Dr. Cat / Dragon's Eye Productions       ||       Free alpha test:
*-------------------------------------------**  <A  HREF="http://www.bga.com/furcadia">http://www.bga.com/furcadia</A>
  Furcadia - a new graphic mud for PCs!     ||  Let your imagination soar!
*-------------------------------------------**-----------------------------*

P.S.  The real trick is figuring out what parts would contribute the most 
towards "making the game fun", and then *only* implementing those parts.  
If you take any other approach, odds are good you'll never get your game 
done - indeed, most people that try to make a game never do get one done.

-- 
MUD-Dev: Advancing an unrealised future.
</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="00766" HREF="msg00766.html">[MUD-Dev] Re: MUD Development Digest</A></strong>
<ul compact><li><em>From:</em> "Justin McKinnerney" &lt;xymox#toon,org&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00544" HREF="msg00544.html">[MUD-Dev] Re: MUD Development Digest</A></STRONG>
<UL><LI><EM>From:</EM> "Justin McKinnerney" &lt;xymox#toon,org&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00620.html">[MUD-Dev] (fwd) AD: [custom graphical] whitestar Crossfire MUD</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00637.html">[MUD-Dev] Re: (fwd) AD: [custom graphical] whitestar Crossfire MUD</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00544.html">[MUD-Dev] Re: MUD Development Digest</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00766.html">[MUD-Dev] Re: MUD Development Digest</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00631"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00631"><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: MUD Development Digest</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00498" HREF="msg00498.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Fri 24 Apr 1998, 04:11 GMT
<UL>
<LI><strong><A NAME="00515" HREF="msg00515.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
Dr. Cat <a href="mailto:cat#bga,com">cat#bga,com</a>, Fri 24 Apr 1998, 04:44 GMT
<UL>
<LI><strong><A NAME="00533" HREF="msg00533.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Fri 24 Apr 1998, 05:51 GMT
</LI>
<LI><strong><A NAME="00544" HREF="msg00544.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
Justin McKinnerney <a href="mailto:xymox#toon,org">xymox#toon,org</a>, Fri 24 Apr 1998, 05:55 GMT
<UL>
<LI><strong><A NAME="00631" HREF="msg00631.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
Dr. Cat <a href="mailto:cat#bga,com">cat#bga,com</a>, Fri 24 Apr 1998, 22:31 GMT
<UL>
<LI><strong><A NAME="00766" HREF="msg00766.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
Justin McKinnerney <a href="mailto:xymox#toon,org">xymox#toon,org</a>, Mon 27 Apr 1998, 07:59 GMT
<UL>
<LI><strong><A NAME="00788" HREF="msg00788.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
Dr. Cat <a href="mailto:cat#bga,com">cat#bga,com</a>, Tue 28 Apr 1998, 03:45 GMT
<UL>
<LI><strong><A NAME="00283" HREF="msg00283.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Thu 30 Apr 1998, 21:26 GMT
<UL>
<LI><strong><A NAME="00286" HREF="msg00286.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
Matt Chatterley <a href="mailto:matt#mpc,dyn.ml.org">matt#mpc,dyn.ml.org</a>, Thu 30 Apr 1998, 23:01 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</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>