Re: regarding Swap

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

 



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.

Devvrat

On 6/5/07, Erik Mouw <mouw@xxxxxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jun 05, 2007 at 03:03:09PM +0200, Devvrat Tripathi wrote:
> can anyone explain me how exactly is swap activated and what all is done
> during the process. It will be helpful if you can point out the code in the
> source which does the task.

swapon(2) system call, which calls sys_swapon() in mm/swapfile.c


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)

iD8DBQFGZWWh/PlVHJtIto0RAqHtAJ4qNvtYnPxOkq8Bxzc1VHNiJUWh3wCdEake
tvEp8rCmnCsq87uHhjSLHVQ=
=+nbY
-----END PGP SIGNATURE-----


[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