From owner-freebsd-questions@FreeBSD.ORG Sun Jun 13 03:23:39 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 578A216A4CE for ; Sun, 13 Jun 2004 03:23:39 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FDFB43D58 for ; Sun, 13 Jun 2004 03:23:38 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i5D3LeNs035396; Sat, 12 Jun 2004 22:21:40 -0500 (CDT) (envelope-from dan) Date: Sat, 12 Jun 2004 22:21:40 -0500 From: Dan Nelson To: Chris Message-ID: <20040613032140.GA94119@dan.emsphone.com> References: <200406120750460729.2E42D6A3@coolarrow.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200406120750460729.2E42D6A3@coolarrow.com> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: swap size and 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: Sun, 13 Jun 2004 03:23:39 -0000 In the last episode (Jun 12), Chris said: > Looking at a web/email server with the following from "top" ... > > 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 > > 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. Sysinstall defaults to creating a swap partition that is 2x RAM, but for large-memory systems it's usually overkill (do you really plan on running 3gb worth of processes in a 1gb system?). 1x RAM is the minimum if you want to be able to save kernel crashdumps though, so it may be useful if you ever double the RAM in the box. > Also, I cannot seem to get rid of that zombie... it happens at boot time: > > root 0 0.0 0.0 0 0 ?? ZW - 0:00.00 (perl) Run ps axl, find the parent process (PPID column), and fix the bug in it :) -- Dan Nelson dnelson@allantgroup.com