Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2001 12:32:21 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Andrei Popov <ceesaxp@m-net.arbornet.org>
Cc:        freebsd-questions@FreeBSD.ORG, freebsd-current@FreeBSD.ORG
Subject:   Re: Swap not used *at**all*
Message-ID:  <20011226183221.GA20596@dan.emsphone.com>
In-Reply-To: <20011226124857.A30355@m-net.arbornet.org>
References:  <20011226091540.A70996@m-net.arbornet.org> <20011226151905.GA84869@dan.emsphone.com> <20011226124857.A30355@m-net.arbornet.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Dec 26), Andrei Popov said:
> On Wed, Dec 26, 2001 at 09:19:05AM -0600, Dan Nelson wrote:
> > In the last episode (Dec 26), Andrei Popov said:
> > > Is this normal:
> > >
> > > Device          1K-blocks     Used    Avail Capacity  Type
> > > /dev/ad4s1b        525344        0   525344     0%    Interleaved
> > >=20
> > > This machine is running with 256MB RAM and a 512MB swap device.=20
> > > Swap usage is zero even when running X and postgress and
> > > aolserver with a running instance of OpenACS-4.
> >=20
> > Try this: dd if=3D/dev/zero of=3D/dev/null bs=3D192m count=3D1.  That
> > should force some swapping :)
>=20
> It sure does :)
>=20
> But the question still remains -- is it not odd that there's no
> swapping when running X, nor is there one when running fairly
> expenm=7Fsive Postgres selects et al?

Not necessarily.  It depends on your configuration.  If you tell
Postgres to use (say) 192MB of memory, then it will definitely swap,
just like the dd did.  If you only configure it for 64MB, then it could
easily coexist with X, Netscape, and other medium-memory-use
applications without swapping.  I wouldn't expect AOLServer to consume
much memory at all.

As comparison, I have a 512MB box that runs mysql (256MB), squid
(75MB), and roxen (20MB), and occasionally X+mozilla (64MB).  It has
30MB of swap used at the moment, which was probably just used once.

--=20
	Dan Nelson
	dnelson@allantgroup.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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