Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2002 10:47:24 +0200
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        Joseph Lephan <mystical@houston.rr.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Swap file never get used. period
Message-ID:  <20020830084724.GK21595@freepuppy.bellavista.cz>
In-Reply-To: <20020830030349.A36577@houston.rr.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Fri, 30 Aug 2002 03:03:49 -0500
> From: Joseph Lephan <mystical@houston.rr.com>
> 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 <mystical@houston.rr.com>
> > > Subject: Re: Swap file never get used. period
> > > 
> > > * Roman Neuhauser (neuhauser@bellavista.cz) wrote:
> > > > > From: Joseph Lephan <mystical@houston.rr.com>
> > 
> > > > > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020830084724.GK21595>