From owner-freebsd-questions Thu Jul 22 8:58:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ingate.uk.neceur.com (ingate.uk.neceur.com [193.116.254.1]) by hub.freebsd.org (Postfix) with ESMTP id D935614D2D for ; Thu, 22 Jul 1999 08:58:25 -0700 (PDT) (envelope-from Jeff.Bond@nectech.co.uk) Received: from internal-mail.uk.neceur.com by ingate.uk.neceur.com id QAA28339; Thu, 22 Jul 1999 16:54:20 +0100 (BST) Received: from exchange.nectech.co.uk by internal-mail.uk.neceur.com id QAA11709; Thu, 22 Jul 1999 16:53:35 +0100 (BST) from exchange.nectech.co.uk (localhost [127.0.0.1]) id QAA11709 (2.4-8.8.8/3.1.31); Thu, 22 Jul 1999 16:53:35 +0100 (BST) Received: by exchange.nectech.co.uk with Internet Mail Service (5.0.1460.8) id <30ZXNL5S>; Thu, 22 Jul 1999 16:54:04 +0100 Message-ID: From: "Bond, Jeffery" To: "'Marius'" Cc: "'FreeBSD questions'" Subject: RE: Swap space in mfs? (was: vinval buf: dirty bufs) Date: Thu, 22 Jul 1999 16:53:58 +0100 X-Mailer: Internet Mail Service (5.0.1460.8) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Marius, I had a look at that URL, I guess you are referring to the bit that I attached at the end. I think you may have the wrong end of the stick, but I also think the wording here is not very clear. What it really means is that if you have loads of (real) swap space, ie. on a the hard disk, you can take advantage of some of that hard disk space by creating an mfs. In effect, anything you write to the mfs will quite quickly get swapped out onto the real hard disk swap partition, taking advantage of the large swap partition to store files. I think you have the exact opposite to what is suggested here, i.e. you have your swap space inside an mfs, where you should have the mfs inside the swap space! Hope this helps, Jeff options MFS Memory-mapped file system. This is basically a RAM disk for fast storage of temporary files, useful if you have a lot of swap space that you want to take advantage of. A perfect place to mount an MFS partition is on the /tmp directory, since many programs store temporary data here. To mount an MFS RAM disk on /tmp, add the following line to /etc/fstab and then reboot or type mount /tmp: /dev/wd1s2b /tmp mfs rw 0 0 Note: Replace the /dev/wd1s2b with the name of your swap partition, which will be listed in your /etc/fstab as follows: /dev/wd1s2b none swap sw 0 0 Note: Also, the MFS filesystem can not be dynamically loaded, so you must compile it into your kernel if you want to experiment with it. > -----Original Message----- > From: Marius [SMTP:MBKING0@VM.SC.EDU] > Sent: Thursday, July 22, 1999 4:32 PM > To: Bond, Jeffery > Subject: Re: Swap space in mfs? (was: vinval buf: dirty bufs) > > > Actually I am just following what it says to do in the handbook: > http://www.freeBSD.org/handbook/kernelconfig-config.html > > The section on memory file systems says to do exactly what I have done. > Just > as in does in "The Complete FreeBSD" by Greg L. Feel free to tell me if > I > am doing something idiotic. > > ---------------------------------------- > Marius > mbking0@vm.sc.edu > University of South Carolina, Columbia > "We will get along fine once you realize that I am almost always wrong." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message