From owner-freebsd-questions Fri Jul 23 8: 9:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from VM.SC.EDU (vm.sc.edu [129.252.45.14]) by hub.freebsd.org (Postfix) with SMTP id 9F49514EA3 for ; Fri, 23 Jul 1999 08:09:25 -0700 (PDT) (envelope-from MBKING0@VM.SC.EDU) Received: by VM.SC.EDU (IBM VM SMTP V2R4a) via spool with SMTP id 4794 ; Fri, 23 Jul 1999 11:08:52 EDT Received: from UNIVSCVM (NJE origin MBKING0@UNIVSCVM) by VM.SC.EDU (LMail V1.2c/1.8c) with BSMTP id 0281; Fri, 23 Jul 1999 11:08:52 -0400 Date: Fri, 23 Jul 99 10:50:24 EDT From: M Organization: University of South Carolina Subject: RE: Swap space in mfs? (was: vinval buf: dirty bufs) To: "Bond, Jeffery" Cc: mail In-Reply-To: Your message of Thu, 22 Jul 1999 16:53:58 +0100 Message-Id: <19990723150926.9F49514EA3@hub.freebsd.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG After a little more testing, I still can't get the system to crash like it has been. The "panic: vinval buf: dirty bufs" just has not reared it's head. I am fairly certain that it was my mounting my swap space as a memory file system. Once I removed the mount, I was fine from then on. It has been suggested that I have been trying to apply the mfs wrong, and I would like to know if that is so. >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. > > 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 > > *snip* I am doing it backwards? Please tell me what I did wrong. I have a preexisting swap space of 80MB. I then compiled a new kernel with support for a mfs. After rebooting to the new kernel, I edit my /etc/fstab and mount thusly: /dev/wd1s2b /tmp mfs rw 0 0 (It just happens that my swap space is exactly where the manual suggests that it would be in the example.) So I add the above line to match all the others, but don't delete any other lines. (I leave the other reference to /dev/wd1s2b in there as swap space) I mount /tmp and everything seems fine. Do I really have it backwards? >> -----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." ---------------------------------------- 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