Date: Tue, 27 Nov 2001 10:45:01 +0100 From: "Anthony Atkielski" <anthony@freebie.atkielski.com> To: "Mike Meyer" <mwm@mired.org> Cc: <questions@freebsd.org> Subject: Re: Calculating swap file size Message-ID: <006101c17728$2fdfae30$0a00000a@atkielski.com> References: <15363.11945.410356.244254@guru.mired.org><003701c17725$8abc5c20$0a00000a@atkielski.com> <15363.24098.8617.782371@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
The FAQ says: "Note that while FreeBSD is proactive in this regard [swapping pages out in anticipation of a need for memory], it does not arbitrarily decide to swap pages when the system is truly idle." As far as I can tell, my lightly loaded system never uses the swap file at all: freebie# swapinfo Device 1K-blocks Used Avail Capacity Type /dev/ad0s1b 819072 0 819072 0% Interleaved So it would appear that the swap file is not touched below some threshold of system activity. ----- Original Message ----- From: "Mike Meyer" <mwm@mired.org> To: "Anthony Atkielski" <anthony@freebie.atkielski.com> Cc: <questions@freebsd.org> Sent: Tuesday, November 27, 2001 10:34 Subject: Re: Calculating swap file size > [Context recovered from top posting. > > Anthony Atkielski <anthony@freebie.atkielski.com> types: > > From: "Mike Meyer" <mwm@mired.org> > > > Anthony Atkielski <anthony@freebie.atkielski.com> types: > > > > Does FreeBSD resort to swap only when RAM is exhausted, or does it > > > > have to use the swap file all the time (as in a one-to-one VM > > > > mapping scheme)? > > > Neither. It doesn't do a ono-to-one VM scheme, but the system is > > > opportunistic about putting things on swap and tagging the page as > > > "free" if it can. > > If I understand you and others correctly, as long as all processes > > can be contained in RAM, swap space will never be used at all > > No, that's not the case, and I didn't say that was the case. Please > see the FAQ, section 13, question 1, for more information on that. > > <mike > -- > Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ > Q: How do you make the gods laugh? A: Tell them your plans. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006101c17728$2fdfae30$0a00000a>