From owner-freebsd-newbies Thu Aug 29 14:41:15 2002 Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4987D37B400 for ; Thu, 29 Aug 2002 14:41:12 -0700 (PDT) Received: from 72oot.net (72oot.net [216.122.237.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FA9943E3B for ; Thu, 29 Aug 2002 14:41:10 -0700 (PDT) (envelope-from freedom@72oot.net) Received: from 72oot.net (4.mug138.dtrt.sflmi01r1.dsl.att.net [12.242.138.4] (may be forged)) by 72oot.net (8.11.0/8.11.0) with ESMTP id g7TLeqP98903; Thu, 29 Aug 2002 21:40:55 GMT (envelope-from freedom@72oot.net) Message-ID: <3D6E32BD.9020506@72oot.net> Date: Thu, 29 Aug 2002 14:42:05 +0000 From: Ryan Merrick User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc3) Gecko/20020703 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joseph Lephan Cc: freebsd-newbies@FreeBSD.ORG Subject: Re: I've just recently install freebsd, but my swap partition doesn't work References: <20020829153137.A432@houston.rr.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Joseph Lephan wrote: > i've allocated 1GByte for swap, but for some reason, when i run '# top', my swap memory is still intact at 100%, while my physical memory is being drained. Now i have to reboot the system every few days, just to clear it up.. > Also, I was curious as to whether there was a command to 'flush' memory? > Thanks in advance > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-newbies" in the body of the message Hello, I know it looks funny but this is 'normal'. Swap is only used when almost all the memory is in use. Freebsd only frees memory when it needs more. Here is the memory and swap lines from my system's #top. Mem: 206M Active, 185M Inact, 90M Wired, 17M Cache, 61M Buf, 2108K Free Swap: 1024M Total, 16K Used, 1024M Free The 16K of swap will not be freed until more swap is requested. The same goes for the 185M in inactive. The system is "lazy". As for a flush command you could ask in questions@freebsd.org. Ryan Merrick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message