Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2007 03:04:17 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        Zbigniew Szalbot <zbyszek@szalbot.homedns.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: virtual memory management
Message-ID:  <20070120080417.GA4365@xor.obsecurity.org>
In-Reply-To: <60131.192.168.11.7.1169279847.squirrel@lists.lc-words.com>
References:  <60131.192.168.11.7.1169279847.squirrel@lists.lc-words.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 20, 2007 at 08:57:27AM +0100, Zbigniew Szalbot wrote:
> Dear all,
>=20
> Is there a FBSD command to manage virtual memory? I think my swap size is
> now a bit too much used:
>=20
> last pid: 19824;  load averages:  0.06,  0.05,  0.02   up 50+10:00:17=20
> 08:54:00
> 230 processes: 1 running, 227 sleeping, 2 zombie
> CPU states:  0.0% user,  0.0% nice,  0.4% system,  0.8% interrupt, 98.8% =
idle
> Mem: 232M Active, 27M Inact, 91M Wired, 212K Cache, 60M Buf, 142M Free
> Swap: 512M Total, 482M Used, 29M Free, 94% Inuse
>=20
> The swap size usage grow so big probably because I started wget to
> download an iso image and then WinSCP to grab it from the FBSD machine to
> my laptop. When I started wget, the swap usage was around 19% and had been
> like that for many days.

That should not cause such a thing (wget does not try to fit the whole
file in memory, so it won't be pushing stuff out to swap).  Look at
the process sizes in top to see what is using the swap space -
something(s) that is still running is using that 482MB.

Probably you have one or more processes that are using a large amount
of virtual memory, which is too big to fit in RAM.  That's the
situation you need to address.

> Is there any way to handle swap size usage other than restarting the box?

kill(1).

Kris

--HlL+5n6rz5pIUxbD
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFsc0BWry0BWjoQKURAuZUAKCgH3EnF1Dz7DigQWUgLTAOZ5kAnACgi93V
RVjPtXEZG5JxPjy6fJc9dNE=
=2jg7
-----END PGP SIGNATURE-----

--HlL+5n6rz5pIUxbD--



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