From owner-freebsd-questions@FreeBSD.ORG Thu Jul 19 14:44:20 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 3512016A400 for ; Thu, 19 Jul 2007 14:44:20 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 8266013C4AA for ; Thu, 19 Jul 2007 14:44:19 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 19 Jul 2007 14:44:17 -0000 Received: from nat-wh-1.rz.uni-karlsruhe.de (EHLO mobileKamikaze.norad) [129.13.72.169] by mail.gmx.net (mp042) with SMTP; 19 Jul 2007 16:44:17 +0200 X-Authenticated: #5465401 X-Provags-ID: V01U2FsdGVkX1+vKHhvVESvKM5F2SI2n9lsWdVswNYy76z9fs3K5j WY/gJSfBf0XC7a Message-ID: <469F78BE.3040509@gmx.de> Date: Thu, 19 Jul 2007 16:44:14 +0200 From: "[LoN]Kamikaze" User-Agent: Thunderbird 2.0.0.4 (X11/20070616) MIME-Version: 1.0 To: Derek Ragona References: <469F1ABC.6070503@jeuxvideo.com> <6.0.0.22.2.20070719091620.024d0518@mail.computinginnovations.com> In-Reply-To: <6.0.0.22.2.20070719091620.024d0518@mail.computinginnovations.com> X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-questions@freebsd.org, Gabriel Linder 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:44:20 -0000 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.