<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Gllug] SWAP over NFS </TITLE>
</HEAD>
<BODY>
<BR>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Tethys [<A HREF="mailto:tet@accucard.com">mailto:tet@accucard.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: 09 April 2003 09:33</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>James Bromberger writes:</FONT>
</P>

<P><FONT SIZE=2>>I would think of a simple way to do it: mount a partition, make a file,</FONT>
<BR><FONT SIZE=2>>and then mount that via loopback (perhaps)? Sure, slow, but then again,</FONT>
<BR><FONT SIZE=2>>this is (a) NFS, and (b) Swap, so having a loopback in there probably</FONT>
<BR><FONT SIZE=2>>isnt going to be that big a percentage hinderance.</FONT>
</P>

<P><FONT SIZE=2>But that wouldn't work on a diskless workstation... In general, your</FONT>
<BR><FONT SIZE=2>capacity planning should come up with a suitable amount of memory to</FONT>
<BR><FONT SIZE=2>put on each workstation so that it doesn't swap. But what if it runs</FONT>
<BR><FONT SIZE=2>out of memory? It's usually better to swap over NFS, no matter how</FONT>
<BR><FONT SIZE=2>slow and potentially unreliable it may be, rather than to just OOM.</FONT>
</P>

<P><FONT SIZE=2>Tet</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
</P>

<P><FONT SIZE=2>Yes - absolutely! And as I didn't have any say in how much memory a Dreamcast has/had I cannot really be blamed for only having 16MB.</FONT></P>

<P><FONT SIZE=2>If I use a busybox based shell I have about 10 Megs free. If I use Debian and bash I can have only a few hundred K - hence the need to use swap.</FONT></P>

<P><FONT SIZE=2>So does anyone know how. So far I have tried this:</FONT>
</P>

<P><FONT SIZE=2>dd to make a 32Meg file</FONT>
<BR><FONT SIZE=2>mkswap to turn that into swap</FONT>
<BR><FONT SIZE=2>Edit fstab to put the swap partition in</FONT>
<BR><FONT SIZE=2>and swapon -a to try to mount it - but it fails with a variety of errors</FONT>
</P>

<P><FONT SIZE=2>istr that I need to mount something via loop - as I know someone else has done this (mounted swap via NFS on a Dreamcast) and he did that I am sure - but I cannot contact him at the moment, hence requests for general guidance.</FONT></P>

<P><FONT SIZE=2>Adrian</FONT>
</P>

</BODY>
</HTML>