Re: regarding Swap

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I leave quotations after my reply?

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/


Erik

- -- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGZW7R/PlVHJtIto0RAhOQAJ9z+4gQLrOISVuiQuuRi7y8d1H77ACfQMW8
ni7E5g7Rpo0rsCJgnjexVh4=
=a4J1
-----END PGP SIGNATURE-----

--
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