Date: Tue, 11 Feb 1997 14:17:50 -0800 (PST) From: Doug White <dwhite@gdi.uoregon.edu> To: "K.J.Koster" <kjk1@ukc.ac.uk> Cc: freebsd-questions@freebsd.org Subject: Re: MFS config and disk usage Message-ID: <Pine.BSI.3.94.970211141323.506D-100000@localhost> In-Reply-To: <Pine.SV4.3.95.970211110909.1116I-100000@kestrel.ukc.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 11 Feb 1997, K.J.Koster wrote: > I though I understood how MFS uses diskspace, but I was wrong. Please help > me out. MFS using diskspace is an oxymoron. MFS = memory filesystem. > I have two swap partitions, one on /dev/sd0s2b and one on /dev/sd1s2b, > each about 50Mb. Since I wanted to use MFS (very large performance > increase!), I mounted the /dev/sd1s2b partition as an MFS disk on /tmp, > leaving /dev/sd0s2b as a normal swap partition. This works fine and fast. > > Trouble starts when I put substantial amounts of stuff in /tmp. As far as > I can make out, mount_mfs process grows to 50Mb as /tmp fills up, eating > my swap space. That's what's supposed to happen. > My question (finally) is: Why do I give mount_mfs the 50Mb /dev/sd1s2b > partition, if that disk space is not used to swap the information into? Are you trying to mount this memory space as SWAP or /tmp? You have it mounted as /tmp, using the traditional swap partition (b). You can't have both. > How can I best combine the two swap partitions and an MFS disk? Is there a > way that I can explain to mount_mfs that it can use all available swap > space, and have both /dev/sd0s2b and /dev/sd1s2b as swap partitions? Save the swap for disks. Making MFS swap is doing memory->memory transfers and isn't helping you at all, in fact it's hurting you. Use the MFS for /tmp space if you're finding your system pounds on it a bunch. Naturally, if you put a limit on the MFS that's greater than physical memory, it'll swap, and your system will come to a screeching halt. I'm not that experienced with MFSs (I don't use them), but I'd think you'd want it's max size < max available memory. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.970211141323.506D-100000>