Re: Page Replacement in 2.6.10

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

 



Hi Rik,

I was trying to understand the page replacement code on kernel 2.6.10. I was looking at the code for kswapd and from what i gather, it seems like kswapd is woken up only in low memory situations... am i right?


Yes.


Doesn't this make the page replacement policy NRU and *not* LRU?

Is Mel Gorman's documentation up to date with the 2.6 kernel yet ?

No it is not. It is for the 2.4.20 kernel.

I have also read Rik's doc on Page replacement in the 2.4 kernel, which talks of page aging. These 2 seem to contradict... :(


2.4-rmap and 2.6 use different methods of page replacement.

Realized that rather painfully :-P

from here on, i'll talk abt the 2.6.10 kernel MM
1. ok... so, when a page is allocated, it is placed on the incative list right? So when does this page move to the active list? I know mark_page_accessed() does this, but when? I see calls to this function from a whole lot of Filesystem code and from zap_pte_range().


2. Alternatively, when does the page return to the inactive list? Only when kswapd is woken up?

3. what is the direct reclaim path?

4. what is the difference between shrink_cache() and shrink_caches(). note the 's'

c'ya
rahul






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