1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: RE: [MUD&#45;Dev]  Re: MUD Development Digest -->
<!--X-From-R13: "Xhfgva [pYvaarearl" <klzbkNgbba.bet> -->
<!--X-Date: Sat, 04 Apr 1998 17:18:27 +0000 -->
<!--X-Message-Id: 000401bd5fe2$fe149010$243939cc#foghorn,toon.org -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199804041442.IAA05822#zoom,bga.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, RE: [MUD-Dev]  Re: MUD Development Digest</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:xymox#toon,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="msg00015.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00017.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00015.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00037.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00016">Author</A>
&nbsp;|&nbsp;<A HREF="#00016">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00016">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>RE: [MUD-Dev]  Re: MUD Development Digest</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: &lt;<A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A>&gt;</LI>
<LI><em>Subject</em>: RE: [MUD-Dev]  Re: MUD Development Digest</LI>
<LI><em>From</em>: "Justin McKinnerney" &lt;<A HREF="mailto:xymox#toon,org">xymox#toon,org</A>&gt;</LI>
<LI><em>Date</em>: Sat, 4 Apr 1998 11:01:56 -0500</LI>
<LI><em>Importance</em>: Normal</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
First, I agree with your first comment. I have heard people claim their
disk-based muds run faster than memory-based, but this all semantics. If a
disk-based game does run notably faster than it's memory-based equivilant,
it's simply due to the fact the operating system is doing a better job of
memory managment (perhaps doing cache alignment, for instance), which
wouldn't be suprising considering some of the code for MUDs I have seen.

I think you are on the right track with the concept of using multiple
processes. The alternative would be to use threads instead (ie: lightweight
processes), however, not only is this not supported under all UN*X (unless
you wanted to compile your own user-level thread library), but tends to be a
lot less clean and relies a great deal on the thread library you are using.
Of course, this is coming from someone who has exprienced re-entrancy
problems in such complex calls as sleep() &lt;grin&gt;. On the other hand, if you
ever want to port to NT, using threads would be highly recomended.

I agree with you that a RAID is a good thing to have, but I do not believe
that it will completely eliminate the possible need for a seprate process to
do disk IO on a large multiuser system. While it's true most RAID systems
have hardware level memory caching, the operating system still blocks all
accesses to the hardware. This causes a sleep state in your process, and if
you have enough access going on, even a large buffer can be heavily
burdened.

Going with a seprate process for all blocking IO guarentees that you will
not loose any processor cycles due to sleep states you did not design your
application to have. This enables you to continue executing, say, the
command of another user while disk IO relative to the first user is being
processed. Then once you've done your roundrobin queue (or however you set
it up) and come back to the first user, the disk IO should be ready.

And remember! Non-blocking syncronous IO is your friend. :)

	- Justin -

&gt; -----Original Message-----
&gt; From: mud-dev [<A  HREF="mailto:mud-dev#null,net]On">mailto:mud-dev#null,net]On</A> Behalf Of Dr. Cat
&gt; Sent: Saturday, April 04, 1998 2:04 AM
&gt; To: mud-dev#null,net
&gt; Subject: [MUD-Dev] Re: MUD Development Digest
&gt;
&gt;
&gt; I presume the comments about disk-based muds running faster than
&gt; memory-based ones are including the tacit assumption that one is talking
&gt; about muds that don't have the option of running on a machine with a
&gt; large surplus of RAM?  I run a commercial project, and it seems the only
&gt; option for really optimal performance is to make sure you have enough
&gt; RAM to keep everything in memory that you need.  I also don't do a bunch
&gt; of dynamic stuff - I prefer to do all mallocs and loading of maps and
&gt; objects at startup, and keep it there.  I always believe malloc and free
&gt; are the devil's tools for fragmenting heaps and bloating memory usage,
&gt; if used during runtime rather than only at startup and shutdown.
&gt;
&gt; Anyway, my server can currently handle over 150 people quite well with a
&gt; memory footprint of under 32 megabytes.  I don't see any reason why I
&gt; should ever be experiencing a significant number of page faults.  Disk
&gt; reads consist pretty much of just the character name/password file,
&gt; which I presume the OS has mostly in its cache most of the time.
&gt; Writing out logfile info, and maps when a builder uploads a new one,
&gt; both can generate some overhead.  I was planning to set up a seperate
&gt; process that does all disk writes, and have the other processes dump
&gt; data to it and then go on about their business.  But a friend of mine
&gt; told me about how they eliminated their disk-writing bottlenecks when
&gt; they purchased a RAID array for the server, which essentially does the
&gt; same caching of writes into RAM, only it's done for you, in hardware.
&gt;
&gt; I realize that purchasing a RAID array isn't an option for most hobby
&gt; projects.  Still, I would think that disk-based servers would be faster
&gt; for some muds, not for all muds.  (Depending on memory footprint,
&gt; configuration of the machine in question, and whether it's running other
&gt; things besides the mud or not.)
&gt;
&gt; *-------------------------------------------**--------------------
&gt; ---------*
&gt;    Dr. Cat / Dragon's Eye Productions       ||       Free alpha test:
&gt; *-------------------------------------------**
&gt; <A  HREF="http://www.bga.com/furcadia">http://www.bga.com/furcadia</A>
&gt;   Furcadia - a new graphic mud for PCs!     ||  Let your imagination soar!
&gt; *-------------------------------------------**--------------------
&gt; ---------*
&gt;


</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="00075" HREF="msg00075.html">Re: [MUD-Dev] Re: MUD Development Digest</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#under,engr.sgi.com&gt;</li></ul>
<li><strong><A NAME="00037" HREF="msg00037.html">Re: [MUD-Dev]  Re: MUD Development Digest</A></strong>
<ul compact><li><em>From:</em> Nathan F Yospe &lt;yospe#hawaii,edu&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00015" HREF="msg00015.html">Re: MUD Development Digest</A></STRONG>
<UL><LI><EM>From:</EM> "Dr. Cat" &lt;cat#bga,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00015.html">Re: MUD Development Digest</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00017.html">GRUMPS</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00015.html">Re: MUD Development Digest</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00037.html">Re: [MUD-Dev]  Re: MUD Development Digest</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00016"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00016"><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] GRUMPS</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00087" HREF="msg00087.html">Re: [MUD-Dev] GRUMPS</A></strong>, 
maddog <a href="mailto:maddog#best,com">maddog#best,com</a>, Thu 09 Apr 1998, 05:50 GMT
<UL>
<LI><strong><A NAME="00110" HREF="msg00110.html">Re: [MUD-Dev] GRUMPS</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 10 Apr 1998, 00:24 GMT
<UL>
<LI><strong><A NAME="00112" HREF="msg00112.html">Re: [MUD-Dev] GRUMPS</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Fri 10 Apr 1998, 01:37 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</ul>
</LI>
<LI><strong><A NAME="00015" HREF="msg00015.html">Re: MUD Development Digest</A></strong>, 
Dr. Cat <a href="mailto:cat#bga,com">cat#bga,com</a>, Sat 04 Apr 1998, 14:42 GMT
<UL>
<LI><strong><A NAME="00016" HREF="msg00016.html">RE: [MUD-Dev]  Re: MUD Development Digest</A></strong>, 
Justin McKinnerney <a href="mailto:xymox#toon,org">xymox#toon,org</a>, Sat 04 Apr 1998, 17:18 GMT
<UL>
<LI><strong><A NAME="00037" HREF="msg00037.html">Re: [MUD-Dev]  Re: MUD Development Digest</A></strong>, 
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Mon 06 Apr 1998, 06:21 GMT
<UL>
<LI><strong><A NAME="00039" HREF="msg00039.html">RE: [MUD-Dev]  Re: MUD Development Digest</A></strong>, 
Justin McKinnerney <a href="mailto:xymox#toon,org">xymox#toon,org</a>, Mon 06 Apr 1998, 12:31 GMT
<UL>
<LI><strong><A NAME="00082" HREF="msg00082.html">Re: [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 09 Apr 1998, 02:22 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00081" HREF="msg00081.html">Re: [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 09 Apr 1998, 01:48 GMT
</LI>
</UL>
</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>