From owner-freebsd-questions Wed Nov 28 0:33:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 73AFC37B41A for ; Wed, 28 Nov 2001 00:33:05 -0800 (PST) Received: from hades.hell.gr (patr530-a172.otenet.gr [212.205.215.172]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id fAS8Wx811069; Wed, 28 Nov 2001 10:32:59 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id fAS8WrP02066; Wed, 28 Nov 2001 10:32:53 +0200 (EET) (envelope-from charon@labs.gr) Date: Wed, 28 Nov 2001 10:32:52 +0200 From: Giorgos Keramidas To: Anthony Atkielski Cc: questions@FreeBSD.ORG Subject: Re: Calculating swap file size Message-ID: <20011128083251.GD1844@hades.hell.gr> References: <15363.24098.8617.782371@guru.mired.org> <006101c17728$2fdfae30$0a00000a@atkielski.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006101c17728$2fdfae30$0a00000a@atkielski.com> User-Agent: Mutt/1.3.23.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2001-11-27 10:45:01, Anthony Atkielski wrote: > 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. Well, not quite so. On my lightly' loaded machine, that runs a few services that are rarely (if ever) used, swap *is* being used: $ uptime 10:29AM up 2:52, 1 user, load averages: 0.17, 0.32, 0.50 $ swapinfo Device 1K-blocks Used Avail Capacity Type /dev/ad0s1b 1048448 5560 1042888 1% Interleaved Understanding how the virtual memory subsystem works in FreeBSD is a bit out of my reach right now, but I think that it will swap out idle processes after a while. Perhaps I'm wrong... -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message