From owner-freebsd-questions@FreeBSD.ORG Tue Nov 1 15:50:44 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 4236816A41F for ; Tue, 1 Nov 2005 15:50:44 +0000 (GMT) (envelope-from fbsdlists@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5FFA43D45 for ; Tue, 1 Nov 2005 15:50:43 +0000 (GMT) (envelope-from fbsdlists@gmail.com) Received: by xproxy.gmail.com with SMTP id t13so1286526wxc for ; Tue, 01 Nov 2005 07:50:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lcvnQZVkCAG5tPH8J9kwOr1dKdKTpEW/UdzeAOvwo0m2G3HjCBLetSJR6p8AeLAFSr6G0jJ0ACCytykvOvkQFWyeC+hFrBNzYVZAxWa4EYX51jwnNIEAVt8MFbW1YKymv7GeUg0A0eMdnCV1yu2FxidmHabOr7quFGAswOf1Dv8= Received: by 10.65.73.6 with SMTP id a6mr1150855qbl; Tue, 01 Nov 2005 07:50:43 -0800 (PST) Received: by 10.64.150.16 with HTTP; Tue, 1 Nov 2005 07:50:43 -0800 (PST) Message-ID: <54db43990511010750m3ecb0702se3de2eafaaa9a7c5@mail.gmail.com> Date: Tue, 1 Nov 2005 10:50:43 -0500 From: Bob Johnson To: Ian Lord In-Reply-To: <6.2.3.4.2.20051101094812.030e2d20@pop.msdi.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6.2.3.4.2.20051101094812.030e2d20@pop.msdi.ca> Cc: freebsd-questions@freebsd.org Subject: Re: Swap space 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: Tue, 01 Nov 2005 15:50:44 -0000 On 11/1/05, Ian Lord wrote: > Hi, > > I just bought 4 servers with 4 gigs of ram, the documentation > proposes to use 2 to 3 times the amount of ram for swap... I don't > think 12 gigs of swap would be useful lol, but do I really need to > put 4 gigs of ram. (It might be useful for kernel dump but...) > That's the original reason for the suggestion. You need more than twice the amount of RAM if you need to capture a dump for debugging.=20 If you won't ever be doing that, you may not need so much swap. My experience is that if you have much more than twice the RAM size swapped out, things start to get so sluggish that it is better to find a way to reduce your memory requirement or provide more physical memory. Of course, that is characteristic of MY usage and may not apply at all to your usage, but it may be the reason that 3xRAM is the upper limit of what is routinely recommended. > What do you guys do with swap space in this scenario ? Provide what you think you will need. It depends on what you expect to be doing with your memory. A busy mail server that will be using huge amounts of temporary storage to manipulate the messages may not need a lot of swap, simply because you might prefer to throttle incoming mail when the system gets heavily loaded rather than get deep into swap and slow the system down. I configured my new 4GB servers with 4GB of swap. That's more than I expect to ever need, but I have oodles of disk space. If you have multiple drives, you may want to spread that out among the drives for more efficiency (but to do a dump you need enough contiguous space on one drive). - Bob