From owner-freebsd-questions Fri Aug 30 1:47:31 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7443E37B400 for ; Fri, 30 Aug 2002 01:47:27 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 5597543E4A for ; Fri, 30 Aug 2002 01:47:26 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 2003 invoked from network); 30 Aug 2002 08:47:25 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 30 Aug 2002 08:47:25 -0000 Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id CBCA28A; Fri, 30 Aug 2002 10:47:24 +0200 (CEST) Date: Fri, 30 Aug 2002 10:47:24 +0200 From: Roman Neuhauser To: Joseph Lephan Cc: freebsd-questions@freebsd.org Subject: Re: Swap file never get used. period Message-ID: <20020830084724.GK21595@freepuppy.bellavista.cz> Mail-Followup-To: Joseph Lephan , freebsd-questions@freebsd.org References: <20020829171531.A1085@houston.rr.com> <20020830071538.GF21595@freepuppy.bellavista.cz> <20020830022915.A35824@houston.rr.com> <20020830075002.GJ21595@freepuppy.bellavista.cz> <20020830030349.A36577@houston.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020830030349.A36577@houston.rr.com> User-Agent: Mutt/1.5.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 > Date: Fri, 30 Aug 2002 03:03:49 -0500 > From: Joseph Lephan > To: freebsd-questions@freebsd.org > Subject: Re: Swap file never get used. period > > * Roman Neuhauser (neuhauser@bellavista.cz) wrote: > > > Date: Fri, 30 Aug 2002 02:29:15 -0500 > > > From: Joseph Lephan > > > Subject: Re: Swap file never get used. period > > > > > > * Roman Neuhauser (neuhauser@bellavista.cz) wrote: > > > > > From: Joseph Lephan > > > > > > > Upon recently installing FreeBSD, I was aware that i allocated > > > > > 1 GB to a swap partition. Now this is fine because that was > > > > > what i wanted, but it seems that when I type in 'top' at > > > > > console, my swap file was reported to at 100%, ie, none of was > > > > > being used, ever. > > > > > > > > interesting. if you see 100%, your swap is 100% *used* > > > > actual top output: > > > > > > You Know what i meant. Put simply, 100% of my swap is Available, > > > 0% used > > > > ok. next question would be: how much physical memory do you have? > > 512 Mbytes this most probably is *the* reason. > > this system has 256mb, and i run all sorts of stuf on it > > (apache+php, mysqld, tinydns+dnscache, ntpd, xfree86+blackbox > > [mozilla, loads of rxvt terminals, several gvims, ...], and it > > uses 7% of swap. A few megs of ram more, it'd be all free. > > > > but given you see 0% for everything in top, i'd say your kernel > > and world are out of sync as suggested by Edwin Groothuis. > > > > > > Mem: 156M Active, 21M Inact, 58M Wired, 11M Cache, 35M Buf, 2548K Free > > > > Swap: 1024M Total, 80M Used, 944M Free, 7% Inuse > > > > > I think that it's been clarified though. Swap is not used until > > > Mem is completely tied up. Thanx for the input though > > > > this is another possible cause > > If my kernel and world were out of sync, what are the recommended > steps that i must take? quote from the faq: * Your kernel and userland are not synchronized (i.e., you built a new kernel but did not do an installworld, or vice versa), and thus the symbol table is different from what the user application thinks it is. If this is the case, simply complete the upgrade process (see /usr/src/UPDATING for the correct sequence). recommended steps for updating the system are in the "cutting edge" section of the handbook. -- FreeBSD 4.6-STABLE 10:33AM up 9 days, 16:26, 11 users, load averages: 0.00, 0.00, 0.00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message