From owner-freebsd-questions@FreeBSD.ORG Mon Oct 2 13:14:57 2006 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 99AB816A4CE for ; Mon, 2 Oct 2006 13:14:57 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DCFA43D45 for ; Mon, 2 Oct 2006 13:14:39 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id BA3695EBD; Mon, 2 Oct 2006 09:14:38 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p7ajktAnZbUC; Mon, 2 Oct 2006 09:14:32 -0400 (EDT) Received: from [192.168.1.251] (pool-68-161-96-195.ny325.east.verizon.net [68.161.96.195]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id BBFC15DA1; Mon, 2 Oct 2006 09:14:32 -0400 (EDT) Message-ID: <452110B6.2010800@mac.com> Date: Mon, 02 Oct 2006 09:14:30 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Bob References: <200610020048.47955.bob@tania.servebbs.org> In-Reply-To: <200610020048.47955.bob@tania.servebbs.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: SWAP priority 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: Mon, 02 Oct 2006 13:14:57 -0000 Bob wrote: > It became obvious after a short while, that I had too little physical memory > (1GB), and I was using swap often. While swapping, things slowed down. So, I > added an additional 1GB of swap space (via swap file) on the secondary file > system. I did this as per the manual. > > I now have more swap; my question is this: How can I tell the OS to use the > new swap file BEFORE using the old one? Is there a way to tell the system to > prioritize the use of multiple swaps? The swap system knows how to interleave data between the additional swap areas relatively efficiently, but if your current workload is so demanding that you need to use more than 2GB of swapspace on a machine with 1GB of RAM, you should add more RAM, not more swapspace.... -- -Chuck