On Dec 3, 2007 4:51 PM, Romanowski, John (OFT)
<[EMAIL PROTECTED]> wrote:
> Leland,
> If you're looking at code for that swapping algorithm:
> what happens when highest priority swap area (swap1) gets to the end,
> swap1 has free slots and the next higher priority swap area (swap2) has
> free clusters?
>  Does linux start over at the beginning of swap1 and fill swap1 before
> allocating from swap2?

That's the point of priority of the swap device. You make Linux re-use
swap1 before spilling to swap2. Note that Linux will not migrate back
from swap2 to swap1 when stuff is freed later.

Rob
-- 
Rob van der Heij
Velocity Software, Inc
http://velocitysoftware.com/

Reply via email to