From owner-freebsd-questions@FreeBSD.ORG Tue Nov 1 15:27:37 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 3152916A41F for ; Tue, 1 Nov 2005 15:27:37 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id E306F43D60 for ; Tue, 1 Nov 2005 15:27:36 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (cpe-66-91-226-109.san.res.rr.com [66.91.226.109]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id jA1FulHA014137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 1 Nov 2005 07:56:48 -0800 X-MailKey: purple frogs are falling from the sky Message-Id: <6.2.3.4.2.20051101072019.0363b220@cobalt.antimatter.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Tue, 01 Nov 2005 07:24:53 -0800 To: Vladimir Tsvetkov , Ian Lord From: Glenn Dawson In-Reply-To: <666bdb140511010713x1374bde5n@mail.gmail.com> References: <6.2.3.4.2.20051101094812.030e2d20@pop.msdi.ca> <666bdb140511010713x1374bde5n@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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:27:37 -0000 At 07:13 AM 11/1/2005, Vladimir Tsvetkov 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...) > > > > What do you guys do with swap space in this scenario ? > > >It depends on how big is the address space for your machines. >32-bit machines can address 4GB of memory, so it's reasonable to use 2 >or 3 times the amount of RAM space (if you hawe 256MB or 512MB - the >swap should be 768MB or 1GB), but if you have 32bit machines with 4GB >of memory there is no need to use more than 4GB for swap. That's not entirely true. Each process gets a 4GB (virtual) address space to operate in. With default settings, 1GB of that space is used for the kernel, and the remaining 3GB is available for the process to use. If you have several processes that require close to their 3GB limit, they could quite easily consume 4GB of swap, and more. -Glenn >64-bit machines can address 2^64 bytes which is a very big address >space, so you should use the guidelines in the documentation (FreeBSD >Handbook). > >Best regards, >Vladimir >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"