1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Disk v. Mem -->
<!--X-From-R13: Rna Dbbg <qneNgurxrrc.bet> -->
<!--X-Date: from fabius.globecomm.net [207.51.48.6] by mx01.ny.us.ibm.net id 863547026.71698&#45;1 Tue May 13 18:10:26 1997 -->
<!--X-Message-Id: fxchgg74chp.fsf#phantasm,thekeep.org -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199705130518.TAA20541#mail,pixi.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  Disk v. Mem</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:dar#thekeep,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="msg00434.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00436.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00422.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00460.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00435">Author</A>
&nbsp;|&nbsp;<A HREF="#00435">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00435">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  Disk v. Mem</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]  Disk v. Mem</LI>
<LI><em>From</em>: Dan Root &lt;<A HREF="mailto:dar#thekeep,org">dar#thekeep,org</A>&gt;</LI>
<LI><em>Date</em>: 13 May 1997 11:29:06 -0400</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
"ashen" &lt;ashen#pixi,com&gt; writes:


&gt; let me stab in the dark:
&gt; do you really need to save that much memory? 
&gt; do you need it for something else? 

In a lot of cases your server is not the only one on the machine.  And
even it is, that machine may not be a dedicated mud machine.  The
server I'm developing runs on a machine that provides services to over
40 users, and has 4 to 10 people logged on all the time  (In addition,
it's the primary smtp, imap, afs, nfs, dns, time, and kerberos server
for this group of people).   Yeah, I need the memory.  :)


&gt; are objects so large that 40,000 of them fill mem quickly?

I'm implementing a design that stresses simplicty of the server, and
despite this, every object has a minimum of 40 bytes of overhead, even
empty.  That's 1.6Megs of data just for the overhead of tracking and
storing 40,000 empty objects.  Add (for sake of arguement) 1k of text
and code to each object, and you're now talking 40 megs of data, just
to hold it in memory.  (and most of my objects are going to be a lot
bigger than 1k).  

&gt; does too full a mem size inhibit the driver speed?
&gt; isn't it more costly in speed to write to disk? 

If you don't have physical memory to back it up, then you're going to
swap files anyway, in which case you now have the overhead of reading
all the objects in from disk, parsing them into memory, and then
writing them back out to the swap file so your OS has enough room to
be useful.


While it's true that on a reasonable OS a swap file is faster than
regular disk access, that's an awful lot of overhead to be dealing
with.

&gt; what kind of savings do you get versus this extra cost?

In general, you probably aren't using all 40,000 objects at one time.
Even if you have 30 people on line, you're probably only dealing with
a set of a couple of thousand objects at any one time.  You save the
overhead of not loading all the random things that are in areas that
aren't visited or not used.  It also means that your database is
updated fairly often, meaning less loss during a crash, and less time
stolen from the players to dump a gazillion megs of data out to disk.


	-DaR
--
Dan Root - dar#thekeep,org

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00422" HREF="msg00422.html">Disk v. Mem</A></STRONG>
<UL><LI><EM>From:</EM> "ashen" &lt;ashen#pixi,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00434.html">Re: [MUD-Dev] (fwd) Re: Issues from the digests and Wout's list</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00436.html">Re: [MUD-Dev]  Introduction</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00422.html">Disk v. Mem</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00460.html">Re: [MUD-Dev]  Disk v. Mem</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00435"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00435"><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: Introduction (Marian)</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00482" HREF="msg00482.html">Re: [MUD-Dev] Re: Introduction (Marian)</A></strong>, 
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Thu 15 May 1997, 23:20 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00454" HREF="msg00454.html">Re: [MUD-Dev]  Re: Disk v. Mem</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Wed 14 May 1997, 10:49 GMT
<LI><strong><A NAME="00451" HREF="msg00451.html">Mud tree</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Wed 14 May 1997, 10:39 GMT
<LI><strong><A NAME="00422" HREF="msg00422.html">Disk v. Mem</A></strong>, 
ashen <a href="mailto:ashen#pixi,com">ashen#pixi,com</a>, Tue 13 May 1997, 12:10 GMT
<UL>
<LI><strong><A NAME="00435" HREF="msg00435.html">Re: [MUD-Dev]  Disk v. Mem</A></strong>, 
Dan Root <a href="mailto:dar#thekeep,org">dar#thekeep,org</a>, Wed 14 May 1997, 01:10 GMT
</LI>
<LI><strong><A NAME="00460" HREF="msg00460.html">Re: [MUD-Dev]  Disk v. Mem</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Wed 14 May 1997, 14:58 GMT
</LI>
<LI><strong><A NAME="00486" HREF="msg00486.html">Re: [MUD-Dev]  Disk v. Mem</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Fri 16 May 1997, 01:12 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00448" HREF="msg00448.html">Re: Disk v. Mem</A></strong>, 
Cynbe ru Taren <a href="mailto:cynbe#laurel,actlab.utexas.edu">cynbe#laurel,actlab.utexas.edu</a>, Wed 14 May 1997, 09:48 GMT
<UL>
<LI><strong><A NAME="00475" HREF="msg00475.html">Re: [MUD-Dev]  Re: Disk v. Mem</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Thu 15 May 1997, 05:50 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>