From owner-freebsd-questions@FreeBSD.ORG Thu Jul 19 14:53:28 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0AC6116A400 for ; Thu, 19 Jul 2007 14:53:28 +0000 (UTC) (envelope-from linder@jeuxvideo.com) Received: from www.odyssee-interactive.com (vin-passion.com [217.174.215.94]) by mx1.freebsd.org (Postfix) with ESMTP id A3B6C13C4AA for ; Thu, 19 Jul 2007 14:53:27 +0000 (UTC) (envelope-from linder@jeuxvideo.com) Received: from [192.168.0.29] (odyssee-interactive.rain.fr [83.206.74.241]) (authenticated bits=0) by www.odyssee-interactive.com (8.12.10/8.12.10) with ESMTP id l6JErJpk019304; Thu, 19 Jul 2007 16:53:20 +0200 Message-ID: <469F7ADF.5030804@jeuxvideo.com> Date: Thu, 19 Jul 2007 16:53:19 +0200 From: Gabriel Linder User-Agent: Thunderbird 2.0.0.4 (X11/20070604) MIME-Version: 1.0 To: "[LoN]Kamikaze" References: <469F1ABC.6070503@jeuxvideo.com> <6.0.0.22.2.20070719091620.024d0518@mail.computinginnovations.com> <469F78BE.3040509@gmx.de> In-Reply-To: <469F78BE.3040509@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Derek Ragona Subject: Re: Swap size 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: Thu, 19 Jul 2007 14:53:28 -0000 [LoN]Kamikaze wrote: > Derek Ragona wrote: >> At 03:03 AM 7/19/2007, Gabriel Linder wrote: >>> Hi, >>> >>> I plan to setup FreeBSD 6.2-RELEASE on my Core Duo laptop with 1GB of >>> RAM. >>> >>> The handbook says "ideal swap size is 2xRAM", so should I use 2GB of >>> swap ? >> Yes unless you know how many applications will ever be run and their run >> size. The 2xRAM is so you can always have a reasonable performance >> allowing swap. You can still run out of swap, and this will cause a >> panic. With disks so cheap, why not use 2XRAM? > > Running out of swap doesn't cause a panic, it causes the largest process to be > killed. > > >>> This seems a bit huge to me, I never used more than 400MB on Linux. >>> If so, is there a limit of swap partition size (or number) on i386 >>> (for Linux it's 2GB per partition and 32 partitions max, but I don't >>> know for FreeBSD) ? > > For a Desktop System 400M should be enough, I don't remember my Desktop system > to ever use more than 1m of swap. However, the swap size should be large enough > for a dump during a panic. So if you want to be able to do some debugging if > you ever run into panics, your swap should be at least as large as your memory. > Assuming that you might add more memory one day something between 2 or 4GB of > swap look reasonable to me. Thanks for the precisions, I will go for 2xRAM so.