lkml.org 
[lkml]   [2000]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: just a small VM idea
On Sun, 22 Oct 2000, Samium Gromoff wrote:

> Let`s imagine were having two mounted swap partitions.

swap partitions are never mounted, there is no swapfs for Linux (and it is
arguable whether we need one).


> Current situation, if im not going wrong is the next:
[nice, but a few years late :) ideas deleted]

you are in fact wrong. You can either check the source in mm/swapfile.c
or, even easier, read the manual page for swapon(2) which explains the use
of priorities, which was in Linux since the early days of 1.3.6 (i.e. many
years ago). Basically, you can add swap devices with multiple priorities
and then a highest priority one is exhausted before using a lower-priority
one. If all areas are the same priority, then pages are allocated using
round robin algorithm, i.e. alternating between them.

Regards,
Tigra



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.026 / U:16.920 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site