1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: MUD Development Digest -->
<!--X-From-R13: X Q Znjerapr <pynjNhaqre.rate.ftv.pbz> -->
<!--X-Date: Wed, 22 Apr 1998 11:40:29 &#45;0700 -->
<!--X-Message-Id: 199804221840.LAA177595#under,engr.sgi.com -->
<!--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, [MUD-Dev] Re: MUD Development Digest</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#under,engr.sgi.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="msg00674.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00773.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00073.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00346.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00762">Author</A>
&nbsp;|&nbsp;<A HREF="#00762">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00762">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>: J C Lawrence &lt;<A HREF="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</A>&gt;</LI>
<LI><em>Date</em>: Wed, 22 Apr 1998 11:40:15 -0700</LI>
<LI><em>Delivery-date</em>: Wed Apr 22 11:40:30 1998</LI>
<LI><em>Delivery-date</em>: Wed, 22 Apr 1998 11:40:30 -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>

On Sat, 4 Apr 1998 07:04:14 PST8PDT 
Cat &lt;cat#bga,com&gt; wrote:

&gt; I presume the comments about disk-based muds running faster than
&gt; memory-based ones are including the tacit assumption that one is
&gt; talking about muds that don't have the option of running on a
&gt; machine with a large surplus of RAM?  

Yes, but only just.

Aside: I've done a lot of work on large RAM machines (the machine I'm
typing on now has 256Meg RAM, which is piddley compared to the 32Gig
RAM sitting behind me).

Even given a technical surplus of RAM (ie physical RAM is larger than
total working set of system), many systems will continue to swap.
Why?  File/disk cacheing, long idle memory pages, etc -- the OS
typically thinks it knows better than mere applications where best
performance lies.  Yes, this can be turned off in a variety of
fashions.  The two most common means are to mark particular memory
pages as non-swappable (not supported by all OS'es), or to instruct
the entire OS not to swap (scalability and load problems).

However, a disk-based DB with intelligent cacheing can still
out-perform an all-in-RAM system in a few cases (highly dependant on
working set characteristics (no, this ain't common, but I've seen it
in practice)).  The base cause is still the same: memory page faults
-- except that this time the expense is not disk/swap IO, but memory
model context.  (The heap fragmentation you referred to later is a
prime form)  A well written cacheing system will keep all cached items
proximate in memory, thus minimising the memory context
shifts...(highly dependant on CPU and MMU memory architecture).

&gt; I run a commercial project,
&gt; and it seems the only option for really optimal performance is to
&gt; make sure you have enough RAM to keep everything in memory that you
&gt; need.  

&lt;nod&gt; 

In the general case I doubt that DB&lt;-&gt;server IO is the likely
bottleneck, especially given expectable 'net bandwidths to the
consumer in the next 5 years.  Physical IO to the machine is much more
likely to be the real plague.  (What!  You want X,000+ active socket
connections with good bandwidth to all?  Get an AS/400 or Sys360....It
still amazes me that commercial MUD offerings are even attempting to
build on PC hardware given its atrocious IO hardwre).

Its probably a safe prediction in a commercial setting that worlds and
world databases will grow large.  How large is LambdaMOO's core image
now?  (I have no idea).  Add a fully rendered world of many times that
size and I would have no problem seeing the core image exceeding
100Gig, and RAM remains expensive at those levels -- especially for a
startup.

&gt; I also don't do a bunch of dynamic stuff - I prefer to do all
&gt; mallocs and loading of maps and objects at startup, and keep it
&gt; there.  

Sooth.  Custom heap managers are your friend.  My own heap manager is
based in spirit on LanbdaMOO's:

  I pre-allocate large pools of memory blocks of sizes of various
powers of 2.  All later allocation requests are expanded to the next
larger or matching power of 2, and a free block from that pool is
handed back.  Minimum block size is 64 bytes (I think, could be 512).
Pools start by doubling their size when they run out of space, until
they reach a total of 1024 (actually its per-pool configurable)
allocations and then proceed to grow at a rate of 1024 blocks per
growth spurt (also configurable).

&gt; Anyway, my server can currently handle over 150 people quite well
&gt; with a memory footprint of under 32 megabytes.  

I would have expected world size to be the greater memory consumer.
Users merely consume IO.  How large is your world in terms of the time
required for a user to traverse its greatest dimension?  How detailed
is your world in terms of LOD?

&gt; I was planning
&gt; to set up a seperate process that does all disk writes, and have the
&gt; other processes dump data to it and then go on about their business.

Not a bad idea as it allows the maintenance of logical consistency for
the permanent storage to be extracted from and no longer dependant on
(per se) the main server.

&gt; But a friend of mine told me about how they eliminated their
&gt; disk-writing bottlenecks when they purchased a RAID array for the
&gt; server, which essentially does the same caching of writes into RAM,
&gt; only it's done for you, in hardware.

Be careful here. All RAID is not created equal.  All RAID adapators
and controllers are not created equal.  OS drivers for RAID hardware
(where applicable) are also often very unequal.

Some permutations:

  RAID in standalone hardware.  Good examples are HP's NIKE (Date
General) and Edison boxes.  To the outside world (ie your machine) its 
just a hoking big disk, or a collection of disks.  All the RAID
smarts are done in the disk tower, configured via serial terminal or
LCD panel.

  RAID in the SCSI adaptor.  DTK make the fastest, bar none, RAID SCSI
adaptors for PC's (cf SmartRaid).  Their SmartCache cards are no
slouches either.  In this model configuration of the card or its
drivers via software on the host is resposible for the RAID model.
Outside the card its just a bunch of dumb disks.  DTK's OS/2 drivers
positively scream.  I assume their MS drivers are of comparable
quality.  The Linux, *BSD, UnixWare and SCO drivers however are so
poor as to be pathetic.  Buslogic's RAID cards, which otheriwse don't
compare to DTK's, far outperform DTK under Linux due to driver
quality.

  RAID in software.  You use a dumb SCSI card, and dumb disks, and
then use intelligence in the SCSI drivers to do RAID via software on
the host.  Linux supports this fairly well.  There are obvious
performance and stability penalties.

Cost generally decreases as you descend the above list.

There are also various forms of RAID each with their own performance
characteristics, from RAID 0 (simple mirroring which offers the
fastest possible read/write speeds), to RAID 5 (striping with parity)
which tends to give fair read speeds, but very poor write speeds.
Other RAID levels have other characteristics.  

Cacheing can be thrown at the problem at any level, from caches on the 
physical drive  (the HP C3010 drives I'm trying to shift now (got 100
of them) have 256K of dual ported cache on the actual drive) to cache
on the RAID box (a typical NIKE will have 32Meg of cache or more),
cache on the SCSI adaptor (DTK cards can carry up to 64Meg of cache),
or OS/driver level caching using main system RAM.

&lt;chortle&gt; I spent 18 months at HP working on their HA products, RAID
arrays (NIKE, Edison, Icicle etc), EMC towers (anybody want 40
terrabytes in a box the size of a 'fridge?) etc.

&gt; I realize that purchasing a RAID array isn't an option for most
&gt; hobby projects.  

RAID is getting cheaper.  DTK continues to make the fastest RAID (and
non-RAID) cards for PC's, bar none (SmartRAID and SmartCache
respectively).  Drives are now almost throw-away items:  I have stacks 
and stacks of 2Gig HP C3010's I'm shifting for $75ea...  They make
cute fast little RAID towers.

&gt; Still, I would think that disk-based servers would
&gt; be faster for some muds, not for all muds.  (Depending on memory
&gt; footprint, configuration of the machine in question, and whether
&gt; it's running other things besides the mud or not.)

True.

-- 
J C Lawrence                               Internet: claw#null,net
(Contractor)                               Internet: coder#ibm,net
---------(*)                     Internet: claw#under,engr.sgi.com
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...

-- 
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="00346" HREF="msg00346.html">[MUD-Dev] Re: MUD Development Digest</A></strong>
<ul compact><li><em>From:</em> Ben Greear &lt;greear#cyberhighway,net&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="msg00674.html">[MUD-Dev] Re: [Fwd: Re: Grids and curvature of a sphere]</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00773.html">[MUD-Dev] Re: [Fwd: Re: Grids and curvature of a sphere]</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00073.html">Re: [MUD-Dev] Re: MUD Development Digest</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00346.html">[MUD-Dev] Re: MUD Development Digest</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00762"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00762"><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] Re: MUD Development Digest</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<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>
</ul>
<LI><strong><A NAME="00075" HREF="msg00075.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>, Wed 08 Apr 1998, 20:23 GMT
<UL>
<LI><strong><A NAME="00086" HREF="msg00086.html">Re: [MUD-Dev] Re: MUD Development Digest</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Thu 09 Apr 1998, 05:48 GMT
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00073" HREF="msg00073.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>, Wed 08 Apr 1998, 18:22 GMT
</LI>
<LI><strong><A NAME="00762" HREF="msg00762.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>, Wed 22 Apr 1998, 18:40 GMT
<UL>
<LI><strong><A NAME="00346" HREF="msg00346.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Thu 23 Apr 1998, 02:56 GMT
<UL>
<LI><strong><A NAME="00360" HREF="msg00360.html">[MUD-Dev] Re: MUD Development Digest</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Thu 23 Apr 1998, 05:58 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00014" HREF="msg00014.html">OT: This is a test of a system config change.</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Sat 04 Apr 1998, 05:40 GMT
<LI><strong><A NAME="00008" HREF="msg00008.html">Monthly FAQ Posting</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lboro.ac.uk">K.L.Lo-94#student,lboro.ac.uk</a>, Thu 02 Apr 1998, 14:27 GMT
</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>