Re: regarding Swap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/06/07, Erik Mouw <mouw@xxxxxxxxxxxx> wrote:
On Tue, Jun 05, 2007 at 03:44:02PM +0200, Devvrat Tripathi wrote:
> I dont exactly get the syscall swapon thing properly. Swap is supposed to be
> activated by the kernel right incase the main memory gets filled up. I dont
> understand how the kernel uses this system call as you cannot do system
> calls from kernel space or is there some daemon which is responsible to do
> this job.

"Activating swap" usually means enabling swap by pointing the kernel to
a swap partition or file to swap on, and that's what the swapon(2)
system call is used for.  What you probably mean is called "swapping
out".

Figuring out which pages can be swapped out is quite a hairy subject
and whatever algorithm you come up with, there will always be a corner
case where it will fail.  Here are some URLs to get you started:

- - Understanding the Linux Virtual Memory Manager:
  http://www.csn.ul.ie/~mel/projects/vm/guide/html/understand/
- - The Linux MM home page:
  http://linux-mm.org/

There are also useful documents to read in Documentation/vm/

--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux