<DIV>This is a direct copy from doing 'man vmstat' on my rh9 box. Hope it helps you.</DIV>
<DIV>&nbsp;</DIV>
<DIV>FIELD DESCRIPTIONS<BR>&nbsp;&nbsp; Procs<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r: The number of processes waiting for run time.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b: The number of processes in uninterruptable sleep.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; w: The number of processes swapped out but otherwise runnable.&nbsp; This<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; field is calculated, but Linux never desperation swaps.</DIV>
<DIV>&nbsp;&nbsp; Memory<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; swpd: the amount of virtual memory used (kB).<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free: the amount of idle memory (kB).<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; buff: the amount of memory used as buffers (kB).</DIV>
<DIV>&nbsp;&nbsp; Swap<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; si: Amount of memory swapped in from disk (kB/s).<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; so: Amount of memory swapped to disk (kB/s).</DIV>
<DIV>&nbsp;&nbsp; IO<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bi: Blocks sent to a block device (blocks/s).<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bo: Blocks received from a block device (blocks/s).</DIV>
<DIV>&nbsp;&nbsp; System<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in: The number of interrupts per second, including the clock.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cs: The number of context switches per second.</DIV>
<DIV>&nbsp;&nbsp; CPU<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; These are percentages of total CPU time.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; us: user time<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sy: system time<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id: idle time</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR><B><I>Michael Neikes &lt;michael@neikes-net.de&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="Microsoft Word 11 (filtered medium)" name=Generator>
<STYLE>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</STYLE>
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:SmartTagType name="PersonName" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType>
<STYLE>
st1\:*{behavior:url(#default#ieooui) }
</STYLE>

<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
tt
        {font-family:"Courier New";}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>

<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi list,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">perhaps there is a misunderstanding because of my english knowlede.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Perhaps it is also a difference between MoH and CoD.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I run vmstats and do only see si and so (perhaps the s for suse!?), but I think it’s the same as pi and po.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have got a zero in there, so I am not swapping, right?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">“</SPAN></FONT><SPAN lang=EN-GB>doesnt take up any more RAM<BR>to run multiple installations”<FONT color=purple><SPAN style="COLOR: purple">-&gt;</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"> does not seems to work within MoH.<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: navy">I run multiple installations with all their pathes, etc.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: navy">e.g. every server takes 10% of RAM.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: navy">When I run one installation multiple times, I do also have multiple processess á 10% of RAM,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: navy">So it seems they are not “sharing” the same code of RAM.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: navy">Is it an issue from MoH?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: navy"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: navy">Sorry for a MoH issue at this list.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: navy"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN lang=EN-GB style="FONT-SIZE: 12pt; COLOR: navy">Michael<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Von:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Orr, Roland Cadet [mailto:orr@cadetmail.uscga.edu] <BR><B><SPAN style="FONT-WEIGHT: bold">Gesendet:</SPAN></B> Freitag, 14. Mai 2004 06:17<BR><B><SPAN style="FONT-WEIGHT: bold">An:</SPAN></B> <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:PersonName w:st="on">cod@icculus.org</st1:PersonName><BR><B><SPAN style="FONT-WEIGHT: bold">Betreff:</SPAN></B> RE: [cod] Multiple Servers on one box and PB</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">fascinating!!! thank you for that helpful insight!!! (feel free to send more emails on the intricate innerworkings of linux)</SPAN></FONT><o:p></o:p></P></DIV>
<BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt; MARGIN-RIGHT: 0cm">
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Mark J. DeFilippis [mailto:defilm@acm.org]<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, May 13, 2004 10:45 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <st1:PersonName w:st="on">cod@icculus.org</st1:PersonName><BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [cod] Multiple Servers on one box and PB</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">At 03:03 PM 5/10/2004, Andrew Urm wrote:<BR><BR><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Additional server instances don't take up more RAM? Really? Or were you&nbsp; saying something else?<BR><BR>Andrew<BR><BR>luke@techfreak.org wrote:<BR><BR><BR><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Of course, there is a more 'elegant' way, but the guy is trying to<BR>get his feet wet here. So, I suggested an easy method.<BR>Also, I have run test after test and it doesnt take up any more RAM<BR>to run multiple installations, as opposed to using base_path. Or are<BR>you taking about using disk space?<BR>Luke<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><BR><BR>Additional instances do not take up more ram because the first instance<BR>pulls the executable page code in to swap space in Unix/Linux. If you<BR>have enough RAM, (and that is critical, or it Unix/Linux will need to page<BR>swap, and there goes the lag game.. This falls on basic design theory for<BR>Unix... You can never have enough ram. You always want to have enough RAM<BR>to run your programs in ram, or you will page swap. Page swap = slow,<BR>without getting in to the nasty details).&nbsp; How can I tell if I am page swapping?<BR><BR>run " vmstat".&nbsp; Check the man page for vmstat.&nbsp; You will see a PI and PO,<BR>these should be zero. If not, you are swapping in pages of code to execute.<BR>Add more ram, and you may have to relink the kernel, but most Unix/Linux<BR>version support up to 4GB or more for 32 bit.<BR><BR>The way it works is this.... Code for each game will execute in
 ram, and<BR>share the page, but each will get their OWN data area's for Heap and<BR>Stack.<BR><BR>However, if one process (Game running) attempts to write to a code<BR>page, Linux will do a "Copy on Fork()". This is viewable in vmstat<BR>as well.&nbsp; Basically it means that "A copy using the shared code attempted<BR>to modify it, so it make a separate copy for the process that attempted to<BR>write to the code base".<BR><BR>Since this does not happen in COD, or most processes for that matter,<BR>they all share the same single image in Swap to load to ram, and the<BR>same single image of code in RAM.&nbsp; If you were to put the processes<BR>in debug, and look at the registers, you would see the code segment<BR>registers are all the same, but the data pointer registers are all different.<BR><BR>Check out vmstat, and read the man page. It is worth your time.<BR>It will give you some good insight on how the resources are allocated...<BR><BR>Nice huh?&nbsp; Someday Windows will really
 work like that, or maybe<BR>it will replace windows?&nbsp; {;-))<BR><BR>MFrag<BR>{TRv}Team-Ravage<BR>aka. Mark J. DeFilippis, Ph. D EE<BR><BR><BR><BR><o:p></o:p></SPAN></FONT></P><X-SIGSEP>
<P style="MARGIN-BOTTOM: 12pt"></X-SIGSEP><TT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">-------------------------------------------------------------------------------</SPAN></FONT></TT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><BR><TT><FONT face="Courier New">Mark J. DeFilippis&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defilm@acm.org</FONT></TT><BR><TT><FONT face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defilm@ieee.org</FONT></TT><BR><BR></SPAN></FONT><o:p></o:p></P></BLOCKQUOTE></DIV></BLOCKQUOTE>