From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 9 22:38:49 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A031216A4CE; Tue, 9 Dec 2003 22:38:49 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACA0343D2B; Tue, 9 Dec 2003 22:38:48 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id hBA6ckH1052369; Wed, 10 Dec 2003 00:38:46 -0600 (CST) (envelope-from dan) Date: Wed, 10 Dec 2003 00:38:46 -0600 From: Dan Nelson To: nbari@unixmexico.com Message-ID: <20031210063845.GG2435@dan.emsphone.com> References: <20571.148.243.211.1.1071036438.squirrel@mail.unixmexico.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20571.148.243.211.1.1071036438.squirrel@mail.unixmexico.com> X-OS: FreeBSD 5.2-BETA X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: freebsd-isp@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: adding more ram X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2003 06:38:49 -0000 In the last episode (Dec 10), nbari@unixmexico.com said: > I have a server with 1GB of RAM and a swap partition of 2GB i will > upgrade the memory server to 2GB so my questions are: > > should i fix the swap partition to have now 4GB of space ? Depends. Have you ever used up that 2gb of swap? If not, you'll probably never consume 4gb either :) If this is a database server, or something similar where a few processes allocate large amounts of memory, you don't need much swap anyway, since if any of those processes actually has to swap, you end up thrashing the system as it tries to swap 500mb processes in and out of memory. I really can't think of a system that would still perform well with 2 or 3GB of process space in swap. At the 2gb RAM point, you usually have a system where any swapping == bad news. -- Dan Nelson dnelson@allantgroup.com