Re: Re: Implementation of Virtual Memory on Linux

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

 



Hi Abu...

> How the used pages reclaimed? Say if there is no swap space.

Good question. I answer this because without looking at the codes:

If we don't enable swap, I think this will happen:

- If the page belongs to page cache, I think it will be discarded, but 
first the kernel will make sure the data is sync-ed to the backing file

- If the page has backing file (in case on mmaped file), the page will 
be discarded after its data have been sync-ed 

- If it is an anymous page, it will be kept on RAM unless the user 
explicitly ask it to be freed.

Guys, CMIIW...

regards,

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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