1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Re: MUD Development Digest -->
<!--X-From-R13: @nguna T Kbfcr <lbfcrNunjnvv.rqh> -->
<!--X-Date: Mon, 06 Apr 1998 06:21:21 +0000 -->
<!--X-Message-Id: Pine.GSO.3.95q.980404081657.17890B&#45;100000@uhunix2 -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 000401bd5fe2$fe149010$243939cc#foghorn,toon.org -->
<!--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:yospe#hawaii,edu">
</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="msg00036.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00038.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00016.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00039.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00037">Author</A>
&nbsp;|&nbsp;<A HREF="#00037">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00037">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>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]  Re: MUD Development Digest</LI>
<LI><em>From</em>: Nathan F Yospe &lt;<A HREF="mailto:yospe#hawaii,edu">yospe#hawaii,edu</A>&gt;</LI>
<LI><em>Date</em>: Sun, 5 Apr 1998 20:24:17 -1000</LI>
<LI><em>Reply-To</em>: Nathan F Yospe &lt;<A HREF="mailto:yospe#hawaii,edu">yospe#hawaii,edu</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>
On Fri, 3 Apr 1998, Justin McKinnerney wrote:

: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.

Just to note that I use a mixed approach, with my own memory management... I
have not gotten enough of the engine done to give it a real test, but... it
seems that reliance of system paging is a doomed approach, unless you are
very careful about how you allocate memory. Likewise, writing small bits to
disk is going to slow everything down. This can be sidestepped by offloading
the writing of small bits to a seperate thread, but... writing big chunks is
nice.

: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'm not sure what version of UN*X you are using... or which version of NT,
for that matter! This is quite the opposite of my experiences with
commercial, network serving operating systems. The threads in IRIX 6.2 seem
to work quite well, as do these Solaris threads. Heck, even the ones in the
developer's version of Rhapsody I've testrun worked. The ones in NT 4.0 had
some itty bitty problems... like the eleventh thread and on never getting a
reasonable share of the processor, and in fact never getting ANY of it 
unless one of the others deliberately gives it up. But this is NOT the place
for an OS war... one simple statement should suffice: If you are on Solaris,
use threads. On IRIX, go ahead and use them, you might not be able to tell
if they are threads or processes (sorry, J C, but that's been my experience),
and on Linux... pray. Can't speak for the others.

: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.

There are non-blocking disk access calls for most flavors of unix...

: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. :)

True...
-- 

Nathan F. Yospe - Aimed High, Crashed Hard, In the Hanger, Back Flying Soon
Jr Software Engineer, Textron Systems Division (On loan to Rocketdyne Tech)
(Temporarily on Hold) Student, University of Hawaii at Manoa, Physics Dept.
yospe#hawaii.edu nyospe#premier.mhpcc.af.mil <A  HREF="http://www2.hawaii.edu/~yospe/">http://www2.hawaii.edu/~yospe/</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="00081" HREF="msg00081.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="00039" HREF="msg00039.html">RE: [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="00016" HREF="msg00016.html">RE: [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="msg00036.html">[MUD-Dev] GRUPMS?</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00038.html">Re: [MUD-Dev]  GRUMPS</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00016.html">RE: [MUD-Dev]  Re: MUD Development Digest</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00039.html">RE: [MUD-Dev]  Re: MUD Development Digest</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00037"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00037"><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>
<ul compact>
<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>
</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
<UL>
<LI><strong><A NAME="00088" HREF="msg00088.html">Re: [MUD-Dev] Re: MUD Development Digest</A></strong>, 
Alex Oren <a href="mailto:alexo#bigfoot,com">alexo#bigfoot,com</a>, Thu 09 Apr 1998, 11:31 GMT
</LI>
</UL>
</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>