From owner-freebsd-questions Wed Mar 22 17:27:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 78ADD37BF2E for ; Wed, 22 Mar 2000 17:27:54 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e2N1pK924879; Wed, 22 Mar 2000 17:51:20 -0800 (PST) Date: Wed, 22 Mar 2000 17:51:20 -0800 From: Alfred Perlstein To: Joe McGuckin Cc: questions@FreeBSD.ORG Subject: Re: Is swap space ever reclaimed? Message-ID: <20000322175120.G21029@fw.wintelcom.net> References: <200003230006.QAA90221@monk.via.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200003230006.QAA90221@monk.via.net>; from joe@via.net on Wed, Mar 22, 2000 at 04:06:59PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Joe McGuckin [000322 16:39] wrote: > > I wrote a quick program to allocate a bunch of memory (and write to every page) > and then the process exits. > > pstat shows the swap space growing, but after the test program terminates, > pstat still shows the swap space as allocated. > > Will freebsd ever reclaim unused, previously allocated swap space? Of course, the reason you still see swap allocated is that _your_ program forced _other_ programs out of memory, pages of thiers are still in swap. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message