From owner-freebsd-questions@FreeBSD.ORG Sat Jan 20 08:04:22 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D80C316A404 for ; Sat, 20 Jan 2007 08:04:22 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id C484613C441 for ; Sat, 20 Jan 2007 08:04:22 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 9A1221A3C1C; Sat, 20 Jan 2007 00:04:22 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 47C0F516FA; Sat, 20 Jan 2007 03:04:18 -0500 (EST) Date: Sat, 20 Jan 2007 03:04:17 -0500 From: Kris Kennaway To: Zbigniew Szalbot Message-ID: <20070120080417.GA4365@xor.obsecurity.org> References: <60131.192.168.11.7.1169279847.squirrel@lists.lc-words.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: <60131.192.168.11.7.1169279847.squirrel@lists.lc-words.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: virtual memory management X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 08:04:22 -0000 --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--