page replacement policy in the latest Linux kernel
From: Mulyadi Santosa <hidden>
Date: 2012-02-08 17:08:48
From: Mulyadi Santosa <hidden>
Date: 2012-02-08 17:08:48
Hi :) On Wed, Feb 8, 2012 at 13:24, Zheng Da [off-list ref] wrote:
Please read do_generic_file_read(). If a page doesn't exist in the page cache, it will load the page and add it to the page cache. In the same iteration of the for loop, mark_page_accessed() is called to mark it referenced. So UTLK isn't wrong. It's just a little misleading.
Looks like you're correct. UTLK is based on old version of linux kernel, so quite likely the current kernel release update the way it does page replacement. Like I said, it is dated :) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com