From owner-freebsd-questions@FreeBSD.ORG Sat Jun 12 04:50:38 2004 Return-Path: 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 6245E16A4CE for ; Sat, 12 Jun 2004 04:50:38 +0000 (GMT) Received: from ylpvm43.prodigy.net (ylpvm43-ext.prodigy.net [207.115.57.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id C652F43D2F for ; Sat, 12 Jun 2004 04:50:37 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (adsl-63-207-60-35.dsl.lsan03.pacbell.net [63.207.60.35])i5C4nfqE010095; Sat, 12 Jun 2004 00:49:42 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id BE7B1516F9; Fri, 11 Jun 2004 21:49:40 -0700 (PDT) Date: Fri, 11 Jun 2004 21:49:40 -0700 From: Kris Kennaway To: Chris Message-ID: <20040612044940.GA35250@xor.obsecurity.org> References: <200406112310500382.2C66D1E7@coolarrow.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <200406112310500382.2C66D1E7@coolarrow.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: swap size and a zombie X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2004 04:50:38 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 11, 2004 at 11:10:50PM -0500, Chris wrote: > *This message was transferred with a trial version of CommuniGate(tm) Pro* >=20 >=20 > Looking at a web/email server with the following from "top" ... >=20 >=20 > last pid: 29494; load averages: 0.00, 0.00, 0.00 up 85+12:33:05 23= :07:44 > 39 processes: 1 running, 37 sleeping, 1 zombie > CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% = idle > Mem: 197M Active, 545M Inact, 176M Wired, 51M Cache, 112M Buf, 33M Free > Swap: 2048M Total, 184K Used, 2048M Free >=20 >=20 > Does it look like the swap file is way too big? The box has been > online for awhile, yet it seems like the swap file is not utilized > very much at all. For that matter, the server is clearly overpowered > for what it does, but better than underpowered I suppose. It's only too much until you actually need to use it ;-) For example, if you have 2GB of memory then you need a 2GB swap file in order to take a kernel crash dump, if you ever run into a kernel bug. You only have ~1GB of RAM in that machine at the moment, so you might be tempted to conclude that you have 1GB too much swap, but what if you decide to add another 1GB of RAM in 6 months time? You'd have to reinstall that disk to make room. Kris P.S. Please wrap your lines at 70 characters so your emails may be easily read. --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAyotkWry0BWjoQKURAqDgAJ4rQX98ZcydrbI9KYl1/mublRqptACgro83 dpT5kT1zXsOe99q/8+ivOkM= =vG5k -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--