From owner-freebsd-questions@FreeBSD.ORG Fri Aug 17 02:07:08 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69A9716A418 for ; Fri, 17 Aug 2007 02:07:08 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id E734213C469 for ; Fri, 17 Aug 2007 02:07:07 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so696093pyb for ; Thu, 16 Aug 2007 19:07:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=HQUMZTwXm7YHX1ocTFlUW4uhyPDXsMKoH3r/1hbAKQn8Gy7JRbvtuHkri/xeu5YJY56pmFBO9mi9ZPbKrkEu/Bzh5GQedApmpPVBKq9kTp1u10+tZ0Co0CfOPj4l3px2phB9bJpgzFs8bQWaPhsh3poxTqM98BThnhA874DL+KE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=GB+20tUIsR/SsnpgXbOh5xiEs/Pc7gP0hk98peUHTcup0dW1Sbsyyuc0ws5dpRMUCC7+l70ZrmDZtMpe3vsaoF6zeFM33pRdQXvFY/4RCljGHGElKOH+uMfX3Pmb15Or6RXK8ovJdPoHWOzZh+ybH1UFvyDiqImRC5c1FlDQVZw= Received: by 10.35.69.11 with SMTP id w11mr2707708pyk.1187316425842; Thu, 16 Aug 2007 19:07:05 -0700 (PDT) Received: from ?192.168.1.3? ( [209.240.66.157]) by mx.google.com with ESMTPS id v56sm2561819pyh.2007.08.16.19.07.03 (version=SSLv3 cipher=OTHER); Thu, 16 Aug 2007 19:07:04 -0700 (PDT) In-Reply-To: <098C8817-8D41-4D94-96E2-97D4310B0BAE@gmail.com> References: <098C8817-8D41-4D94-96E2-97D4310B0BAE@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Eric Crist Date: Thu, 16 Aug 2007 21:06:59 -0500 To: Nicholas Wieland X-Mailer: Apple Mail (2.752.3) Cc: freebsd-questions@freebsd.org 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: Fri, 17 Aug 2007 02:07:08 -0000 On Aug 16, 2007, at 7:05 PMAug 16, 2007, Nicholas Wieland wrote: > I was reading tuning(7), and I found that I should size my swap > double the size of my physical memory. > AFAIK that was true some years ago, when memory was not as cheap as > now, and following that guideline I should set my swap to 2GB, > which seems far too much for swap (at least to me ...). I will > never need this much memory as 1GB RAM and 2GB swap. > Is it still correct ? How can I resize with bsdlabel if I already > used all my disk space during install ? > > TIA, > ngw > From what I understand, the reasoning behind the math is that, if you have a kernel dump, there's enough room in swap to put the entire core into swap (so it's there when you've rebooted), and that there's enough room left in swap to allow the system to reboot, so you can debug. If you're not worried about your .core files, then I wouldn't worry about the math of 2xmemory. HTH ----- Eric F Crist Secure Computing Networks