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

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Monday 02 October 2006 09:14, Chuck Swiger wrote:

> The swap system knows how to interleave data between the additional swap
> areas relatively efficiently, 

Yes I discovered that. The additional swap space was instantly used as soon as 
I activated it; and the added swap improved things measurably. Does the swap 
system take into account current disk activity when it decides to use a 
particular swap?

> 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....
 
It is on order. 

The basis for my question about swap priority was based on an observation that 
the slowdown was due to swapping AND heavy disk usage. I noticed that when 
snapshots were being made on the main drive (the one I am using all the 
time), all other processes went to slow-mode. You see, the lack of enough 
memory caused the system to swap, and it swapped to the heaviest used raid 
array. I thought if I could force the system to swap to the other raid array 
(much less used) with the new swapfile, things would improve even more.

All will be cured when more ram is installed, but I thought it would be 
interesting playing with swap priority.
 
Bob
 



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200610021406.39143.bob>