Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Oct 2006 09:14:30 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Bob <bob@tania.servebbs.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: SWAP priority
Message-ID:  <452110B6.2010800@mac.com>
In-Reply-To: <200610020048.47955.bob@tania.servebbs.org>
References:  <200610020048.47955.bob@tania.servebbs.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?452110B6.2010800>